Headphones : Music albums and artists auto download program

Got a program that plays well with SABnzbd? Share it here!
pducharme
Newbie
Newbie
Posts: 12
Joined: December 17th, 2011, 11:37 am

Re: Headphones : Music albums and artists auto download prog

Post by pducharme »

rembo: Does "Headphones" can Automatically Import song to iTunes when download is complete ? I just get a iTunes Match account and would like to automatically download albums that will be automatically imported into iTunes (and then be available on all our stuff here 2 x iphones, ipad, imac and Macbook Air that all use the iTunes match).

Thank you, great software !
jabbathewocket
Newbie
Newbie
Posts: 1
Joined: December 25th, 2011, 8:48 am

Re: Headphones : Music albums and artists auto download prog

Post by jabbathewocket »

Yes you can if you want to simply have itunes do the postprocessing have the files download into a temp directory/download directory but set the itunes "automatically add to itunes" folder as the "move files to this directory" location (unchecking all the other post processing options such as rename files, correct metadata etc..

If you want headphones to do the postprocessing just turn on the bits you want it to do (but still point it at the automatically add to itunes folder)
cbloss
Newbie
Newbie
Posts: 1
Joined: December 26th, 2011, 6:17 pm

Re: Headphones : Music albums and artists auto download prog

Post by cbloss »

I'm getting the following errors when adding an artist(tried with newzbin configured and not configured):

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "/opt/headphones/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/opt/headphones/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/opt/headphones/cherrypy/_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "/opt/headphones/headphones/webserve.py", line 47, in artistPage
return serve_template(templatename="artist.html", title=artist['ArtistName'], artist=artist, albums=albums)
TypeError: 'NoneType' object is unsubscriptable

and errors in logs...
2011-12-26 16:13:03 WARNING Attempt to retrieve information from MusicBrainz for release group "81d8967b-0f9a-3191-96b9-5039e9f6c338" failed. Sleeping 5 seconds
2011-12-26 16:12:58 WARNING Attempt to retrieve information from MusicBrainz for release group "81d8967b-0f9a-3191-96b9-5039e9f6c338" failed. Sleeping 5 seconds

ideas?
dodgeboy
Newbie
Newbie
Posts: 2
Joined: December 29th, 2011, 7:02 pm

Re: Headphones : Music albums and artists auto download prog

Post by dodgeboy »

Is there a way to point Headphones to a Musicbrainz mirror? I've been running into a lot of timeout/failures with musicbrainz due to their throttling. I just setup a mirror and I'd like to point headphones at it. I can't find the appropriate reference to the musicbrainz server in any of the application files. All I found is the portion where it presents the href link in the web page to musicbrainz for the artist.

Thanks in advance!
dodgeboy
Newbie
Newbie
Posts: 2
Joined: December 29th, 2011, 7:02 pm

Re: Headphones : Music albums and artists auto download prog

Post by dodgeboy »

dodgeboy wrote:Is there a way to point Headphones to a Musicbrainz mirror? I've been running into a lot of timeout/failures with musicbrainz due to their throttling. I just setup a mirror and I'd like to point headphones at it. I can't find the appropriate reference to the musicbrainz server in any of the application files. All I found is the portion where it presents the href link in the web page to musicbrainz for the artist.

Thanks in advance!
I've modified the host name in webservice.py (lib/), compiled it, and it is still making connections to stimpy.musicbrainz.org. Any help would be greatly appreciated.
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Headphones : Music albums and artists auto download prog

Post by FlexibleToast »

I'm trying to get this to move my files properly. I renames the files, and cleans up stuff nice, but won't move it into my library. I have my directory temporarily setup like this:

Downloads go:
/USB/Music/
Library is:
/USB/Music/Joseph/
File structure is:
/USB/Music/Joseph/<Artist>/<Album><Year>/<Tracks>

Whenever Headphones processes the downloaded album I end up with this:
/USB/Music/<Artist> - <Album> <Year>/<Tracks>
It's not moving it into my library in "Joseph" and is not making the album a sub directory of the artist. My current settings are:
Music Download Dir: /USB/Music/
Path to Destination folder: /USB/Music/Joseph/
Folder Format: artist/album [year]

To me that sounds like it should move from the download dir (Music) to the library (Joseph) with the file structure of <Artist>/<Album>. What am I missing? Thanks.
rosarch
Newbie
Newbie
Posts: 17
Joined: March 21st, 2010, 5:23 am

Re: Headphones : Music albums and artists auto download prog

Post by rosarch »

I installed this yesterday on a Qnap - once installed updated the commits, having some issues so decided to do a simple artist add, added Adele and Mumford and Sons, seemed to add ok but issues with getting album content back:

15-Jan-2012 12:42:47 - INFO :: Thread-305 : Now adding/updating: Adele
15-Jan-2012 12:42:49 - INFO :: Thread-305 : Unable to get release information for 19 - there may not be any official releases in this release group
15-Jan-2012 12:42:49 - WARNING :: Thread-305 : Attempt to retrieve information from MusicBrainz for release group "e4174758-d333-4a8e-a31f-dd0edd51518e" failed. Sleeping 5 seconds
15-Jan-2012 12:42:55 - WARNING :: Thread-305 : Attempt to retrieve information from MusicBrainz for release group "e4174758-d333-4a8e-a31f-dd0edd51518e" failed. Sleeping 5 seconds
15-Jan-2012 12:43:01 - INFO :: Thread-305 : Unable to get release information for 21 - there may not be any official releases in this release group
15-Jan-2012 12:43:01 - INFO :: Thread-305 : Updating complete for: Adele
15-Jan-2012 12:51:06 - WARNING :: CP Server Thread-2 : Attempt to query MusicBrainz for mumford failed: HTTP Error 503:
15-Jan-2012 12:51:31 - INFO :: Thread-309 : Now adding/updating: Mumford & Sons
15-Jan-2012 12:51:32 - WARNING :: Thread-309 : Attempt to retrieve information from MusicBrainz for release group "e098b168-2395-4be9-9bfa-ed6e8b488182" failed. Sleeping 5 seconds
15-Jan-2012 12:51:40 - INFO :: Thread-309 : Unable to get release information for Sigh No More - there may not be any official releases in this release group
15-Jan-2012 12:51:40 - INFO :: Thread-309 : Updating complete for: Mumford & Sons
DGMayor
Newbie
Newbie
Posts: 1
Joined: January 8th, 2012, 7:59 pm

Re: Headphones : Music albums and artists auto download prog

Post by DGMayor »

MusicBrainz is currently blocking api requests from headphones, so it's pretty much broken for everyone at the moment.
Ken S
Newbie
Newbie
Posts: 4
Joined: January 19th, 2012, 11:54 am

Re: Headphones : Music albums and artists auto download prog

Post by Ken S »

Hi, is there anyway to get around this? I just started using sabnzbd yesterday - this was a major reason yikes.
Messiadbunny
Newbie
Newbie
Posts: 1
Joined: January 26th, 2012, 2:51 am

Re: Headphones : Music albums and artists auto download prog

Post by Messiadbunny »

I'm having a lot of issues with getting info from MusicBrainz at the moment, it seems to only grab a few of the CDs for an artist/musician. I keep seeing errors along these lines "Attempt to retrieve information from MusicBrainz for release group "blablabla" failed. Sleeping 5 seconds" in the log.
Inflatablemouse
Newbie
Newbie
Posts: 11
Joined: April 15th, 2010, 5:50 am

Re: Headphones : Music albums and artists auto download prog

Post by Inflatablemouse »

Is there any update? I asume my issues are due to Musicbrainz blocking headphones?

Why isn't headhpones using other sources for scraping music information? Last.fm comes to mind but also allmusic.com, musicinformationdatabase.com and discogs.com but there are more.

Code: Select all

2012-01-27 18:18:33	INFO	Updating complete for: Afro Celt Sound System
2012-01-27 18:18:32	INFO	Unable to get release information for Volume 5: Anatomic - there may not be any official releases in this release group
2012-01-27 18:18:31	INFO	Unable to get release information for Seed - there may not be any official releases in this release group
2012-01-27 18:18:23	WARNING	Attempt to retrieve information from MusicBrainz for release group "94d51904-4b88-38b9-8fdf-2270f714aca3" failed. Sleeping 5 seconds
2012-01-27 18:18:17	WARNING	Attempt to retrieve information from MusicBrainz for release group "94d51904-4b88-38b9-8fdf-2270f714aca3" failed. Sleeping 5 seconds
2012-01-27 18:18:12	WARNING	Attempt to retrieve information from MusicBrainz for release group "3bffc828-fed5-3a1e-8591-b50edca76172" failed. Sleeping 5 seconds
2012-01-27 18:18:06	WARNING	Attempt to retrieve information from MusicBrainz for release group "3bffc828-fed5-3a1e-8591-b50edca76172" failed. Sleeping 5 seconds
2012-01-27 18:18:01	WARNING	Attempt to retrieve information from MusicBrainz for release group "3bffc828-fed5-3a1e-8591-b50edca76172" failed. Sleeping 5 seconds
2012-01-27 18:17:56	WARNING	Attempt to retrieve information from MusicBrainz for release group "3bffc828-fed5-3a1e-8591-b50edca76172" failed. Sleeping 5 seconds
2012-01-27 18:17:50	WARNING	Attempt to retrieve information from MusicBrainz for release group "3bffc828-fed5-3a1e-8591-b50edca76172" failed. Sleeping 5 seconds
2012-01-27 18:17:50	INFO	Unable to get release information for Volume 2: Release - there may not be any official releases in this release group
2012-01-27 18:17:42	INFO	Now adding/updating album: Volume 1: Sound Magic
2012-01-27 18:17:37	INFO	Now adding/updating: Afro Celt Sound System
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Headphones : Music albums and artists auto download prog

Post by rembo10 »

I've added a few fixes in there already basically to limit the amount of requests headphones makes to musicbrainz. Unfortunately people running the older versions are still hitting the servers quite a bit so until more people update, we'll keep seeing the 503 error. Hopefully only a few more days

I might just ask them to block all requests coming from the old user agent so the people who have updated will be able to use the program again.

Longer term though, I'm working on some better solutions, and if there are any perl hackers that want to help with the musicbrainz rss feed, head on over to #musicbrainz-devel on freenode
ebbandflow
Newbie
Newbie
Posts: 4
Joined: February 5th, 2012, 5:30 pm

Re: Headphones : Music albums and artists auto download prog

Post by ebbandflow »

Gee, it'd be *great* if this issue got solved! Being new to headphones over the last week, it's disappointing that I can't even get the artists' discographies to successfully populate. ???
tranceology3
Newbie
Newbie
Posts: 3
Joined: January 31st, 2012, 12:51 am

Re: Headphones : Music albums and artists auto download prog

Post by tranceology3 »

I found this in the xbmc forums, for setting up headphones. It works for me!

MusicBrainz has done some changes to their scraping policies, and we're now forced to connect to other servers. This is how you correct this.
1. Find the Headphones Directory. It can be placed under for example "C:\Program Files(x86)HeadPhones"
2. Browse to the folder "\lib\musicbrainz\
3. Edit the file "webservice.py"
4. Make sure you use a program that does not remove the formating of the file. Like Notepad ++
5. Search for the class "WebService(IWebService)"
6. A few lines under this, you'll see host= and port= on the same line.
7. Replace the content with host='tbueter.com' and port=3000
8. Go to Settings and select Restart
ebbandflow
Newbie
Newbie
Posts: 4
Joined: February 5th, 2012, 5:30 pm

Re: Headphones : Music albums and artists auto download prog

Post by ebbandflow »

On the Mac-end at least, the folder was \lib\musicbrainz2

But other than that anomaly, it worked great - thanks!!! Awesome! ;D :D
Post Reply