You have local music files that you prefer over the ones exported from Google Play Music? Likely some FLACs and some MP3s that are not well-sorted and not all are tagged correctly? That's one of the main reasons why this script exists. My usage: PLAYLISTS_PATH = os.path.normpath('N:\Files\Backups\GPM_export\Takeout\Google Play Music\Playlists') MUSIC_PATH Where your Google Play Music Takeout export resides, so that their weird csv folder structure is there. My usage: MOVE_FILES_INSTEAD_OF_DELETION=os.path.normpath('N:\Temp\GPM_Deletion') PLAYLISTS_PATH As a safety measure, files that would be deleted by virtue of DELETE_REDUNDANT_FILES_IN_MUSIC_PATH are instead moved to that path so you can manually review them before deletion. If False, nothing will be deleted MOVE_FILES_INSTEAD_OF_DELETION Should have no effect if said option is not set to True. If True, any files with the same hash will be deleted except for one each - the one which is used in the generated playlists thanks to REDUCE_PLAYLIST_REDUNDANCIES. DELETE_REDUNDANT_FILES_IN_MUSIC_PATHĭefault True. ![]() This file is not further used by the script, it's just for you. Writes the found redundancies as a JSON object to a file in the OUTPUT_PLAYLIST_DIR. DUMP_REDUNDANCIES_AS_JSON_TO_OUTPUT_PLAYLIST_DIRĭefault True. If False, the script will finish faster, but other options become unusable. This means deduplication becomes possible. Increases runtime by about 3 Minutes to compute hashes of all files in MUSIC_PATH and only reference one of those with equal hashes. REDUCE_PLAYLIST_REDUNDANCIESĭefault True. If False no absolute playlist files will be generated. If False, no relative playlist files will be generated. IGNORE_MUSIC_FOLDERSĭefault os.path.basename(OUTPUT_PLAYLIST_DIR_RELATIVE)] ignores synology indexing files and the relative playlist directory when collecting a list of all locally stored music files. Their referenced music files will be relative to this directory. Where the playlist files are to be stored. The playlist versions with absolute paths will be generated here. You can specify also an absolute path instead. ![]() OUTPUT_PLAYLIST_DIRĭefault output_playlists relative to the current working dir. ![]() The "Thumbs up" playlist has a different format and hence must be handled differently. If True, the script will perform some fuzzy matching that is likely to yield wrong results, but at least they are results and don't require manual intervention. REDUCE_PLAYLIST_REDUNDANCIES and DELETE_REDUNDANT_FILES_IN_MUSIC_PATHĭefault False.OUTPUT_PLAYLIST_DIR_RELATIVE and MAKE_PLAYLISTS_RELATIVE_TO_OUTPUT_PLAYLIST_DIR.I advise to have a look at all of them, but you must modify at least these: The following options can and/or should be set near the top of the file by modifying the script before you run it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |