norbeyandresg / hades

This script takes a Spotify playlist, list and search each track on YouTube and download it to the specified path with the script root path as parent
164 stars 29 forks source link

Ascii parsing not working correctly #14

Closed tomasmaillo closed 3 years ago

tomasmaillo commented 3 years ago

When downloading songs such as De mon âme à ton âme - KOMPROMAT feat. Adèle Haenel with a lot of strange characters, these get encoded into utf-8 like so De+mon+\xc3\xa2me+\xc3\xa0+ton+\xc3\xa2me+KOMPROMAT which ends up producing a pretty useless search url https://www.youtube.com/results?search_query=b'De+mon+\xc3\xa2me+\xc3\xa0+ton+\xc3\xa2me+KOMPROMAT' (no results) no results are found on YouTube so the song is skipped from being downloaded

This kind of encoding doesn't affect songs without strange characters