Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib2.URLError #11

Open
SHxKM opened this issue May 21, 2017 · 3 comments
Open

urllib2.URLError #11

SHxKM opened this issue May 21, 2017 · 3 comments

Comments

@SHxKM
Copy link

SHxKM commented May 21, 2017

I installed this in a virtualenv, but it's giving me this error right after it says * Finding metadata from Spotify. * Could not find metadata from spotify, trying something else.:

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1240, in https_open
    context=self._context)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>
@kalbhor
Copy link
Owner

kalbhor commented May 21, 2017

Try using python 3 instead. I think I removed support for python 2 because it was obfuscating the codebase.

@kumarp26
Copy link

kumarp26 commented Oct 1, 2017

Getting an error for Spotify authentication when using --album.
Songs download works normally.
Excellent work btw!

` File "/Users/../anaconda/lib/python3.5/site-packages/spotipy/client.py", line 119, in _internal_call
r.raise_for_status()
File "/Users/../anaconda/lib/python3.5/site-packages/requests/models.py", line 862, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.spotify.com/v1/search?q=album%3Arise+of+nations&type=track&offset=0&limit=1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/../anaconda/bin/musicnow", line 11, in
sys.exit(main())
File "/Users/../anaconda/lib/python3.5/site-packages/musicnow/command_line.py", line 224, in main
tracks = get_tracks_from_album(album_name)
File "/Users/../anaconda/lib/python3.5/site-packages/musicnow/command_line.py", line 89, in get_tracks_from_album
album = spotify.search(q='album:' + album_name, limit=1)
File "/Users/../anaconda/lib/python3.5/site-packages/spotipy/client.py", line 339, in search
return self._get('search', q=q, limit=limit, offset=offset, type=type, market=market)
File "/Users/../anaconda/lib/python3.5/site-packages/spotipy/client.py", line 146, in _get
return self._internal_call('GET', url, payload, kwargs)
File "/Users/../anaconda/lib/python3.5/site-packages/spotipy/client.py", line 124, in _internal_call
headers=r.headers)
spotipy.client.SpotifyException: http status: 401, code:-1 - https://api.spotify.com/v1/search?q=album%3Arise+of+nations&type=track&offset=0&limit=1:
No token provided`

@kalbhor
Copy link
Owner

kalbhor commented Oct 1, 2017

I haven't updated this project in quite a while. I plan to use musictools to handle almost everything in this project. (Send a PR maybe?).

Anyhow, I'll get around to fixing this broken project once I have some time. Till then, as you said that it is downloading the songs properly but not adding metadata, you should try using musicrepair to add metadata to those files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants