Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid path somewhere.... #4

Open
boydkelly opened this issue Feb 15, 2021 · 1 comment
Open

invalid path somewhere.... #4

boydkelly opened this issue Feb 15, 2021 · 1 comment
Labels
awaiting-info waiting for reply by OP question Further information is requested

Comments

@boydkelly
Copy link

boydkelly commented Feb 15, 2021

Hi. are you able to point me in the right direction. I have run your script but getting this output:

You entered an invalid path SPECIFY_PATH_HERE
You entered an invalid path SPECIFY_PATH_HERE
You entered an invalid path SPECIFY_PATH_HERE
Need more inputs in file _missing_matches.json!
Press ENTER when ready!

I have been know to make typos, but I have checked and double checked the config. I am getting this in the out.txt

Reading GPM  Problèmes d'adultes by Sexion d'Assaut.
Reading GPM  My love by Sidiki Diabaté.
Reading GPM  Gobe by Davido.

Submatched Songs: 
set()
#End List of Submatched Songs

Unmatched Songs: 
{SongInfo(title='#PTD', artist='Dadju', liked=True, album='Gentleman 2.0', title_stripped='#PTD'),
 SongInfo(title='Wake Me Up (Avicii By Avicii)', artist='Avicii', liked=True, album='True: Avicii By Avicii', title_stripped='Wake Me Up (Avicii By Avicii)'),

The one path I was not sure about was this:

COPY_FALLBACKS_TO_PATH=os.path.normpath(os.path.join(MUSIC_PATH, "2020", "gpm-migration"))
I manually created /home/me/Music/2020/gpm-migration

Any idea which variable/path is not correct?

OUTPUT_PLAYLIST_DIR=os.path.normpath('/var/home/bkelly/LIVECD/output_playlists')                                                                 
OUTPUT_PLAYLIST_DIR_RELATIVE=os.path.normpath('/var/home/bkelly/')
# Not ignoring the OUTPUT_PLAYLIST_DIR_RELATIVE is risky if you activated DELETE_REDUNDANT_FILES_IN_MUSIC_PATH because itmight delete generated p
IGNORE_MUSIC_FOLDERS=['@eaDir', os.path.basename(OUTPUT_PLAYLIST_DIR_RELATIVE)]
MAKE_PLAYLISTS_RELATIVE_TO_OUTPUT_PLAYLIST_DIR=True
SAVE_ABSOLUTE_PLAYLISTS=True # No harm done in always keeping this True
REDUCE_PLAYLIST_REDUNDANCIES=True
DUMP_REDUNDANCIES_AS_JSON_TO_OUTPUT_PLAYLIST_DIR=True
# setting this to True only makes sense with REDUCE_PLAYLIST_REDUNDANCIES.
DELETE_REDUNDANT_FILES_IN_MUSIC_PATH=True-
# set this to False or None if you trust deletion, otherwise specify a trash bin directory for later manual deletion
MOVE_FILES_INSTEAD_OF_DELETION=os.path.normpath('/var/home/bkelly/LIVECD/gpm-delete')

# Path to "Takeout / Google Play Music / Playlists" as obtained from takeout.google.com
PLAYLISTS_PATH = os.path.normpath('/var/home/bkelly/LIVECD/Google Play Music/Playlists')
if DEBUG_LINUX:
    print("WARNING: Debug flag is set to true!", file=sys.stderr)
    PLAYLISTS_PATH = os.path.normpath('/var/home/bkelly/LIVECD/Google Play Music/Playlists')

# Path to where the local music resides. This will be recursively indexed using os.walk
# No idea if that follows symlinks.
MUSIC_PATH = os.path.normpath('/var/home/bkelly/Music')
if DEBUG_LINUX:
    MUSIC_PATH = os.path.normpath('/var/home/bkelly/Music')
COPY_FALLBACK_GPM_MUSIC=True
COPY_FALLBACKS_TO_PATH=os.path.normpath(os.path.join(MUSIC_PATH, "2020", "gpm-migration"))


@lucidBrot
Copy link
Owner

lucidBrot commented Feb 15, 2021

Hi! It's been a while and I don't have everything on the top of my mind right now. But very quick guess:

You should have now a _missing_matches.json in your OUTPUT_PLAYLIST_DIR ('/var/home/bkelly/LIVECD/output_playlists'). Open it in Notepad++ or some other text editor. There is probably some informaion missing that the script was not able to guess on its own, so you can manually specify the paths in that file and then run it again or continue running it with ENTER.

See also the section in the README:

If the script prompts you in the terminal to provide information, you'll have to open the file _missing_matches.json in the current working directory and insert the paths that should be used for those files. They may lie outside of MUSIC_PATH and if COPY_FALLBACK_GPM_MUSIC is set to True (default) they will be copied over to the MUSIC_PATH. Note that a json path needs to have backslashes escaped, so the lines may look something like this:

"SongInfo(title='Grey', artist='Meinhard', liked=True, album='', title_stripped='Grey')": "N:\\Files\\Musik\\2020\\april\\Meinhard Grey_LalU7ej8Kwk.mp3",
If a path is invalid or inexistent, the program will tell you. Just save the file, then press ENTER in the Terminal. When done, it will say Thanks!.

Let me know if I need to dive deeper!

@lucidBrot lucidBrot added question Further information is requested awaiting-info waiting for reply by OP labels Feb 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-info waiting for reply by OP question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants