glyr
glyr copied to clipboard
discogs fails to fetch covers
When trying to fetch a cover, discogs returns a 401 error:
% glyrc cover --from discogs --album oomph --artist oomph -v 4
- Artist : oomph
- Album : oomph
- Language : fr
- Type : cover
---- Triggering: discogs
-
Trying 70.103.226.21...
-
Connected to api.discogs.com (70.103.226.21) port 80 (#0)
GET /database/search?type=release&q=oomph HTTP/1.1 Host: api.discogs.com User-Agent: libglyr/1.0-6 (Raving Raven) +https://www.github.com/sahib/glyr Accept: / Accept-Encoding: gzip
-
The requested URL returned error: 401 Unauthorized
-
Closing connection 0
-
glyr: Downloaderror: HTTP response code said error [errno:22] On URL: http://api.discogs.com/database/search?type=release&q=oomph
It seems discogs requires authentication for their service now:
https://github.com/sampsyo/beets/issues/1027
This will be rather hard to fix, since one has to use OAuth and some other difficulties. So the discogs provider will be probably disabled soon.
...Or maybe not. There is also some basic auth supported.
It should work as of commit 167d047eadb48e5e01f8a910c747efea5b89d320 again. With small images for now only though.