Simple utility script to import txt based playlist to google music based on https://github.com/simon-weber/gmusicapi
Reason - creating playlist using Google Music UI is not convenient
Unzip gmusic_import_txt_playlist.zip
pip install -r requirements.txt
gmusic_import_txt_playlist [Path to text file containing desired playlist]
Display help message
Enable verbose output
Specify Google e-mail as an argument
Name of playlsit you want to change/replace
Fix format for parsing lines in txt file. {Artist}, {Album}, {Song} variables could be used. By default the following formats are checked.
{Artist} - {Album}
{Artist} - {Song}
{Album}
{Song}
{Artist}
If several formats could apply you will be explicitly asked.
Possible options:
-
substring - line may contain only substring of variable format
-
exact_match - exact match required
If several songs match the requested line they will be sorted in order of (artist name, album year, track number).
If playlist with requested name already exists you will be asked to specify what action (overwrite/append/cancel) with it explicitly.