invicnaper / spotify-dl

a script that allows you to download spotify songs or playlists , written in python
323 stars 40 forks source link

Problem with non English characters #8

Open SamuelM333 opened 7 years ago

SamuelM333 commented 7 years ago

Hey, I was trying to download a song with a Ñ on it and the script fails. Here's the output.

[samuel@samuel-desktop Arjona]$ spotify-dl --track 2Wcgaqmt7jbs0EfTSnfCzf --dl youtube
@ spotify-dl.py version 0.0.1
@ author : Naper
@ Designed for OSx/linux

[+]  getting track name
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2088  100  2088    0     0   1849      0  0:00:01  0:00:01 --:--:--  1851
[+] name is Señorita
/usr/lib/python2.7/urllib.py:1299: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  return ''.join(map(quoter, s))
[+] An HTTP error occurred
SamuelM333 commented 7 years ago

Song with tilde characters on its name won't work either (i.e. Ó)

invicnaper commented 7 years ago

I'll try to fix that, Thank you for the bug report

SohnyBohny commented 6 years ago

Any news?