sigma67 / spotify_to_ytmusic

Clone a Spotify playlist to YouTube Music
MIT License
791 stars 65 forks source link

not able to import from a text file #14

Closed droopanu closed 1 year ago

droopanu commented 3 years ago

I am trying to import from a text file and I get the following error:

$ python3 YouTube.py playlist.txt -n TEst -i Test Could not get Spotify playlist. Please check the playlist link. Error: IndexError('list index out of range')

This is the file I'm trying to import:

System Olympia - Okay Nature
Towa Tei & Bebel Gilberto - Technova (Many Hands Cherry Blossom Chop Chop)
Beringei - Hearts
Gavsbourg - Domestic Termites Love Rock Music
E. Geddes - Old Pan Version
Androo - Sync Dancehall
Rockers HiFi - More & More (The Hidden Persuader)
Apiento - Things You Do For Love (Machine Mix)
System Olympia ft. P.Nut - Falling In Love
Wajeed - Jeedo Suave
Marvin Gaye - Running From Love (Version 1)
Edits Des Amateurs - Spliff Dub
El Guiri - El Gitano En Nueva York (Radio edit)
Simone - Mebsouta
Bobo & Agony - Soca Taliban (MH BSMNT version)
Angelique Kidjo - Batonga (The Jungle Club Mix)
Ed Longo & The Applied Arts Ensemble - Palm In The Closet
Scan Man - Arabian (inst)
Modern Artifacts - Din Daa Daa
Futura 2000 - Escapades Dub
Bobby Cash Redd - Skate Party People
Modula - Robotic Body Shake (7" mix)
Igor Jadranin - Heavy In Stereo
Local Artist - Dancer
Peter Britto - I Want Your Love
Hector Plimmer - Step (Daz I Kue radio mix)
Emma-Jean Thackray - Movement
Str4ta - Vision9 (Delfonic Rework)
Duke Hugh ft. Renato Paris - Common Ground
Donny Hathaway - Valdez In The Country
sigma67 commented 3 years ago

Hey, sorry about that. The text file approach was an old feature with Google Play Music, but it's not really compatible with the song matching anymore as it's based on metadata from Spotify now. I added the metadata because matching based on titles doesn't work very well with YouTube Music search, especially for edge cases. The results are generally much better now based on metadata (artist, duration, album) than with Google Play Music where it didn't use meta data

Feel free to check out the old text file approach and adapt it to YouTube, but don't expect great results:

https://github.com/sigma67/spotifyplaylist_to_ytmusic/blob/ccc9fe638c34b6fc86a4fa8e90933829cc57ad71/GoogleMusic.py#L121-L129