Headphones : Music albums and artists auto download program

Got a program that plays well with SABnzbd? Share it here!
al1937
Newbie
Newbie
Posts: 44
Joined: November 25th, 2009, 2:49 am

Re: Sickbeard for Music albums and artists

Post by al1937 »

Hi rembo10

Thanks for the fix, it worked fine, but I have another for you.

I got the following error when I tried to download.  Using Sab 0.6.2 and latest headphones.

500 Internal Server Error

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

Traceback (most recent call last):
 File "M:\Headphones\cherrypy\_cprequest.py", line 645, in respond
   response.body = self.handler()
 File "M:\Headphones\cherrypy\lib\encoding.py", line 188, in __call__
   self.body = self.oldhandler(*args, **kwargs)
 File "M:\Headphones\cherrypy\_cpdispatch.py", line 29, in __call__
   return self.callable(*self.args, **self.kwargs)
 File "M:\Headphones\webServer.py", line 275, in queueAlbum
   searcher.searchNZB(AlbumID)
 File "M:\Headphones\searcher.py", line 95, in searchNZB
   urllib.urlopen(saburl)
 File "C:\Python2.7\lib\urllib.py", line 84, in urlopen
   return opener.open(url)
 File "C:\Python2.7\lib\urllib.py", line 205, in open
   return getattr(self, name)(url)
 File "C:\Python2.7\lib\urllib.py", line 342, in open_http
   h.endheaders(data)
 File "C:\Python2.7\lib\httplib.py", line 937, in endheaders
   self._send_output(message_body)
 File "C:\Python2.7\lib\httplib.py", line 797, in _send_output
   self.send(msg)
 File "C:\Python2.7\lib\httplib.py", line 759, in send
   self.connect()
 File "C:\Python2.7\lib\httplib.py", line 740, in connect
   self.timeout, self.source_address)
 File "C:\Python2.7\lib\socket.py", line 553, in create_connection
   for res in getaddrinfo(host, port, 0, SOCK_STREAM):
IOError: [Errno socket error] [Errno 11004] getaddrinfo failed

OK I shutdown headphones and tried again and now I get returned to the list of albums and no download. ??
Last edited by al1937 on May 25th, 2011, 3:16 pm, edited 1 time in total.
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Sickbeard for Music albums and artists

Post by rembo10 »

Does the status change from "Skipped" to "Wanted"? It could just be that there were no results.

I'm trying it out on Win7 now - seems ok, and is sending to Sab (latest 0.6.2) correctly.

Can you try another album you know is posted and let me know what happens? I will work on the issue of having to restart after making changes to settings. The only thing that should require a restart is changing the headphones host/port/username/password.
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Sickbeard for Music albums and artists

Post by rembo10 »

For some reason new settings won't take effect til a restart. I added a note on the settings page to reflect this.

Latest version at:
http://github.com/rembo10/headphones

or you can clone via git:
git://github.com/rembo10/headphones.git
aaearon
Release Testers
Release Testers
Posts: 10
Joined: September 9th, 2008, 8:32 pm

Re: Sickbeard for Music albums and artists

Post by aaearon »

Really loving the concept of this. Great idea and I never thought of something like this until I was linked this project.

I ran into some issues and went ahead and posted them on git. I won't be around past today due to the memorial day weekend but I tried to include as much information as I possibly good.  Hopefully this helps. Keep up the good work.
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Sickbeard for Music albums and artists

Post by rembo10 »

I added support for Newznab & NZBs.org.

Not sure if NZBs.org is working because I don't have an account (I just modified some of the Sickbeard code). So if someone could test this out that would be great. Also let me know what the NZBs.org categories for Lossless & mp3 albums are, that would be awesome.

As always, get the latest at http://github.com/rembo10/headphones

P.S. You may need to dump your config.ini file if upgrading so it can write the new categories. I will fix this soon.
aaearon
Release Testers
Release Testers
Posts: 10
Joined: September 9th, 2008, 8:32 pm

Re: Sickbeard for Music albums and artists

Post by aaearon »

Definitely have to nuke your existing config. I tried NZBs.org and set it as my only provider but it doesn't seem to work. I'm not sure what feedback I can provide beyond that since I don't see anything coming up in the log.

In terms of lossless/mp3 album categories for nzbs.org, what do you mean?
xplizion
Newbie
Newbie
Posts: 4
Joined: August 3rd, 2010, 5:35 am

Re: Sickbeard for Music albums and artists

Post by xplizion »

This is awesome :)

Just downloaded and playing a bit with it.
What would be great is to be able to just give him a folder where all my music is to index, instead of an iTunes library.

I'll be following this one up for sure.
al1937
Newbie
Newbie
Posts: 44
Joined: November 25th, 2009, 2:49 am

Re: Sickbeard for Music albums and artists

Post by al1937 »

Hi rembo10

There only seems to be two selectable categories: mp3 and video.  Lossless is not mentioned anywhere.
I've not been able to determine if it works properly or not as yet.
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Sickbeard for Music albums and artists

Post by rembo10 »

al1937 wrote: Hi rembo10

There only seems to be two selectable categories: mp3 and video.  Lossless is not mentioned anywhere.
I've not been able to determine if it works properly or not as yet.
Ah - good to know - thanks!
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Sickbeard for Music albums and artists

Post by rembo10 »

xplizion wrote: This is awesome :)

Just downloaded and playing a bit with it.
What would be great is to be able to just give him a folder where all my music is to index, instead of an iTunes library.

I'll be following this one up for sure.
I will implement this asap.
blancNoir
Newbie
Newbie
Posts: 1
Joined: May 24th, 2011, 3:55 pm

Re: Sickbeard for Music albums and artists

Post by blancNoir »

Rembo I'm very Intruiged by this.  I haven't cloned the report yet but was just wondering what api are you using for artist data,. Last. Fm? My only concern would be the overall availability of less known band's back catalog on usenet.  In your, and other users, experience how often are you able to find what you're looking for? Again this looks really cool. I can't wait to try it out.
Last edited by blancNoir on May 30th, 2011, 8:48 pm, edited 1 time in total.
bry
Newbie
Newbie
Posts: 3
Joined: May 31st, 2011, 10:32 am

Re: Sickbeard for Music albums and artists

Post by bry »

rembo,

what kind of post processing are you looking to add? Right now I use media monkey post processing for all my music.

you may want to look into that software for some possible features you can add.
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Sickbeard for Music albums and artists

Post by rascalli »

@Rembo , this looks very nice ..

I set an album to wnated that I know is on nzbmatrix .. when does it look for this ? Is there a  log somewhere ?
compcentral
Newbie
Newbie
Posts: 8
Joined: May 5th, 2011, 2:43 pm

Re: Sickbeard for Music albums and artists

Post by compcentral »

I too am developing a solution like yours called Audio-Matic (http://www.audio-matic.com/About.php).  Just to give you a heads up, post-processing with music can get interesting.  I finally have mine working fairly well now.  What are you doing for reading tag information contained in files (ie. ID3, APE, etc.)? 
Last edited by compcentral on June 2nd, 2011, 10:28 am, edited 1 time in total.
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Sickbeard for Music albums and artists

Post by rembo10 »

Hey sorry - been out of town for a few days.

I'm using MusicBrainz as my api. As for the usenet availability it really just depends - but MusicBrainz is pretty good about having lesser known bands' information.

I've been looking into using Beets as a post-processing add-on. It's written in Python so it would be pretty easy to integrate I think https://github.com/sampsyo/beets

He's also using MusicBrainz to get the metadata.

As for looking for albums, right now it searches it right away if you set anything to wanted, then it does a backlog search every 12 hours - I'll make this all customizable in settings.

I wonder why it's not finding your album - I actually set an album size limit if you leave the FLAC option unchecked (just because FLAC albums are sometimes posted in the mp3 album category). Kind of a quick workaround that I'm planning on improving. Logging would definitely help though :-p . It will be added soon. If you want to PM me what you're looking for I can try to figure out why it's not finding it.

Audio-matic looks awesome. Would love to chat about how yours works. I think Beets uses mutagen to read and write tags, so i'll probably just integrate the same backend.
Post Reply