This would let users enter a GP playlist URL, which Osiris would then track and update locally on command.
Code flow was worked out as follows.
Usage:
user enters command: save URL [name]
fetches info, passes URL to downloader and starts it
MP uses method get_gp_playlist_song_paths() that checks a GP playlist, returns all the song names as their presumed download paths.
MP compiles them into a standard playlist, then saves that (synced playlists are marked by having names that end with ".GP", and have the URL to the playlist as their first entry or something similar
user can now call the default playlist operations
Updating:
on some command, either simple "rf" or some "gprf", MP goes through all the playlists it marked as GP-synchronised. For each:
MP uses get_gp_playlist_song_paths(), compares them to what is currently locally stored as a playlist. If they match, continue, otherwise:
This would let users enter a GP playlist URL, which Osiris would then track and update locally on command. Code flow was worked out as follows.
Usage:
Updating: