bunnykek / jiosaavn-dl

Music, Album and Playlist downloader for JioSaavn
39 stars 9 forks source link

Issue with songs with "" in their name #2

Closed greyhenna closed 2 years ago

greyhenna commented 2 years ago

Downloading : 160. Koodamela Koodavechi (From "Rummy")... Traceback (most recent call last): File "C:\Users\G\Downloads\jiosaavn-dl-main\jiosaavn.py", line 247, in playlist_json_handler(playlist_json, playlist_path) File "C:\Users\G\Downloads\jiosaavn-dl-main\jiosaavn.py", line 60, in playlist_json_handler download_song(json['songs'].index( File "C:\Users\G\Downloads\jiosaavn-dl-main\jiosaavn.py", line 92, in download_song with open(song_path, "wb") as f: OSError: [Errno 22] Invalid argument: 'C:\Users\G\Downloads\jiosaavn-dl-main\Downloads\Playlist - sss\160. Koodamela Koodavechi (From "Rummy").m4a'

I think, As "" is not allowed in filename, script throws the upshown error.

bunnykek commented 2 years ago

yeah lol. I have now fixed it. Do git clone again and pip install -r requirements.txt and then try downloading.

greyhenna commented 2 years ago

Thanks for resolving! @bunnykek