Headphones - Music albums & artists auto download program

  Thread Rating:
  • 6 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
HarryRosen Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 0
Post: #51
will that script work on a windows box?
find quote
Mar2zz Offline
Senior Member
Posts: 195
Joined: Mar 2008
Reputation: 0
Location: Ned'r Landum
Post: #52
AlbumIdentify works with bashscripts so I don't think so. If you could find a windows commandline tagger it could be used together with a windows batchscript I think, but I'm afraid you'd have to write that yourself.

There is an extensive python based tagging library, which maybe could be integrated into headphones... I think with this is the most cross-platform way it could be build...

https://code.google.com/p/mutagen/
find quote
HarryRosen Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 0
Post: #53
would it be possible to make it a exe like sickbeards?
find quote
Mar2zz Offline
Senior Member
Posts: 195
Joined: Mar 2008
Reputation: 0
Location: Ned'r Landum
Post: #54
You could try, looks not that complicated:

http://logix4u.net/Python/Tutorials/How_...cript.html

http://www.programmersheaven.com/article.../info.aspx
find quote
HarryRosen Offline
Senior Member
Posts: 255
Joined: Dec 2009
Reputation: 0
Post: #55
ok cool will check that out
find quote
bean_ian Offline
Senior Member
Posts: 168
Joined: Mar 2010
Reputation: 15
Location: Ireland
Post: #56
@Mar2zz Great script have it up an running on my box Smile
Question: Is there a way to tell albumidentify to prefer releases on musicbrainz that have album art attached? A few of my albums were tied to releases with no cover art which destroys my Shelf view in xbmc. Each of these releases had other versions that were the same only they had the cover art.
find quote
Mar2zz Offline
Senior Member
Posts: 195
Joined: Mar 2008
Reputation: 0
Location: Ned'r Landum
Post: #57
I don't know, that's outside the scope of my scripts and not ontopic with Headphones. I think you need to request such a thing @ albumidentify.git
find quote
mcorcoran Offline
Member
Posts: 53
Joined: Aug 2008
Reputation: 1
Post: #58
First off great program. I'm having in issue with it scraping my files however. I point headphones at my albums folder (All directories inside this folder at set up as "Artist - Album\Track # - Title") and it starts chugging along but after a while it produces this error message:

Code:
Traceback (most recent call last):
  File "/home/media/.headphones/cherrypy/_cprequest.py", line 645, in respond
    response.body = self.handler()
  File "/home/media/.headphones/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/home/media/.headphones/cherrypy/_cpdispatch.py", line 29, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/media/.headphones/webServer.py", line 329, in importItunes
    itunesimport.itunesImport(path)
  File "/home/media/.headphones/itunesimport.py", line 35, in itunesImport
    artist = ws.Query().getArtistById(artistid, inc)
  File "/home/media/.headphones/musicbrainz2/webservice.py", line 972, in getArtistById
    result = self._getFromWebService('artist', uuid, include)
  File "/home/media/.headphones/musicbrainz2/webservice.py", line 1179, in _getFromWebService
    stream = self._ws.get(entity, id_, includeParams, filterParams)
  File "/home/media/.headphones/musicbrainz2/webservice.py", line 285, in get
    raise WebServiceError(str(e), e)
WebServiceError: HTTP Error 403: Forbidden

Not sure what's up with it, It has added about 55 artist but there should be a few hundred more.
find quote
Mar2zz Offline
Senior Member
Posts: 195
Joined: Mar 2008
Reputation: 0
Location: Ned'r Landum
Post: #59
I think, but it's a wild guess, too many connections hammering musicbrainz so it blocks your ip for a short while, giving back a 403 as error.

The same happened to me. Big library's can't be added this way (mine has over 200 artists in it, compilations not counted), so I gave up and I am adding now only artists by hand (through the search option)


I just wrote two short guides on how to postprocess musicfiles headphones sends to sabnzbd (linux only):
https://github.com/rembo10/headphones/wiki
(This post was last modified: 2011-06-24 21:30 by Mar2zz.)
find quote
rembo10 Offline
Senior Member
Posts: 125
Joined: Jun 2011
Reputation: 1
Post: #60
mcorcoran Wrote:First off great program. I'm having in issue with it scraping my files however. I point headphones at my albums folder (All directories inside this folder at set up as "Artist - Album\Track # - Title") and it starts chugging along but after a while it produces this error message:

Code:
Traceback (most recent call last):
  File "/home/media/.headphones/cherrypy/_cprequest.py", line 645, in respond
    response.body = self.handler()
  File "/home/media/.headphones/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/home/media/.headphones/cherrypy/_cpdispatch.py", line 29, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/media/.headphones/webServer.py", line 329, in importItunes
    itunesimport.itunesImport(path)
  File "/home/media/.headphones/itunesimport.py", line 35, in itunesImport
    artist = ws.Query().getArtistById(artistid, inc)
  File "/home/media/.headphones/musicbrainz2/webservice.py", line 972, in getArtistById
    result = self._getFromWebService('artist', uuid, include)
  File "/home/media/.headphones/musicbrainz2/webservice.py", line 1179, in _getFromWebService
    stream = self._ws.get(entity, id_, includeParams, filterParams)
  File "/home/media/.headphones/musicbrainz2/webservice.py", line 285, in get
    raise WebServiceError(str(e), e)
WebServiceError: HTTP Error 403: Forbidden

Not sure what's up with it, It has added about 55 artist but there should be a few hundred more.

Do you have the latest version from github? There was a problem when Headphones was trying to get album information for 'Various Artists'. That's what threw back the 403 Forbidden error.

Number of artists shouldn't matter, since it's pausing between queries.

If you do have the latest version which fixes this issue, PM me so I can take a look at your artist list.
find quote
Post Reply