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
170 stars 29 forks source link

Correct ascii parsing #15

Closed tomasmaillo closed 3 years ago

tomasmaillo commented 3 years ago

This would fix #14

The strange characters are encoded by urllib to produce a correct search URL for YouTube

e.g. for De mon âme à ton âme before: https://www.youtube.com/results?search_query=b'De+mon+\xc3\xa2me+\xc3\xa0+ton+\xc3\xa2me+KOMPROMAT' after: https://www.youtube.com/results?search_query=De%2Bmon%2B%C3%A2me%2B%C3%A0%2Bton%2B%C3%A2me%2BKOMPROMAT