Headphones : Music albums and artists auto download program

Got a program that plays well with SABnzbd? Share it here!
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Headphones : Music albums and artists auto download program

Post by rembo10 »

splnut wrote: Yes. I have the api's for sab and nzbmatrix. I tried deleteing config.ini and setting it back up again and also restarting the app numerous times.
Might just be that the album is not available - if it finds a match the status will change to snatched. What provider are you using? I'm still not sure if NZBs.org is working 100%

I'm going to add a force check option & interval option in settings. For now you can click retry and it will do another search. I'm going to put up a more functional version in the next few days which should have everything working and better searching, and better MusicBrainz integration.
splnut
Newbie
Newbie
Posts: 35
Joined: February 21st, 2011, 8:46 pm

Re: Headphones : Music albums and artists auto download program

Post by splnut »

I am using NZBMatrix. I first searched for the Album on Nzbmatrix to make sure it was available. I changed the status to wanted but nothing happens.

I.e. -
Artist - Common
Album - Electric Circus
Status in headphones is Wanted
History and Upcoming tabs are empty
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Headphones : Music albums and artists auto download program

Post by rascalli »

Maybe an option to let it show the results ?  (audio-matic does this & lets you choose what nzb you want)
Phunky
Newbie
Newbie
Posts: 3
Joined: January 30th, 2010, 6:46 am

Re: Headphones : Music albums and artists auto download program

Post by Phunky »

So how stable would you say this is? Just finished setting up my local NAS and stumbled on this, sounds really up my street but if it's still in early development it might not be worth it just yet.
timmyb12345
Newbie
Newbie
Posts: 1
Joined: June 11th, 2011, 10:05 am

Re: Headphones : Music albums and artists auto download program

Post by timmyb12345 »

So I've stumbled across this and am extremely interested in it.

I have SABnzbd automation with Movies and TV Series (With Sickbeard) and now i'm looking to get all my music collection automated.

I cannot get this to run on my Windows 7 64bit Python32 3.2 setup however, It just doesn't seem to want to run. Stack Trace below:

Traceback (most recent call last):
  File "headphones.py", line 2, in
    import cherrypy
  File "D:\Systems\Headphones\rembo10-headphones-bd3a173 (2)\rembo10-headphones-
bd3a173\cherrypy\__init__.py", line 65, in
    from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect
  File "D:\Systems\Headphones\rembo10-headphones-bd3a173 (2)\rembo10-headphones-
bd3a173\cherrypy\_cperror.py", line 344
    except ValueError, x:

Not sure if that helps. What interests me is the ability for this to hook up into an iTunes library. With the introduction of iOS5 in the Fall - i am looking to centralize my Itunes library in the home.

- Web Interface is a 100% must, so thank you for making this. Audio Matic is available I know but this doesn't come with a web interface.
- Do you think there is a possibility of introducing some way of forcing an iTunes update? Once an album has downloaded for example?
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Headphones : Music albums and artists auto download program

Post by rascalli »

Would it be an option to build in logging ?

As some how headphones only imports 3 of my artists I have in my share.
And those are not even the first 3

The are in the middle  M & N   .. any idea ?

---

I also get this error if I do not go to another page after clicking submit :

Code: Select all

Traceback (most recent call last):
  File "/share/HDA_DATA/headphones/cherrypy/_cprequest.py", line 645, in respond
    response.body = self.handler()
  File "/share/HDA_DATA/headphones/cherrypy/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/share/HDA_DATA/headphones/cherrypy/_cpdispatch.py", line 29, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/share/HDA_DATA/headphones/webServer.py", line 326, in importItunes
    itunesimport.itunesImport(path)
  File "/share/HDA_DATA/headphones/itunesimport.py", line 34, in itunesImport
    artist = ws.Query().getArtistById(artistid, inc)
  File "/share/HDA_DATA/headphones/musicbrainz2/webservice.py", line 972, in getArtistById
    result = self._getFromWebService('artist', uuid, include)
  File "/share/HDA_DATA/headphones/musicbrainz2/webservice.py", line 1179, in _getFromWebService
    stream = self._ws.get(entity, id_, includeParams, filterParams)
  File "/share/HDA_DATA/headphones/musicbrainz2/webservice.py", line 285, in get
    raise WebServiceError(str(e), e)
WebServiceError: HTTP Error 403: Forbidden
Last edited by rascalli on June 11th, 2011, 12:56 pm, edited 1 time in total.
baz
Newbie
Newbie
Posts: 8
Joined: December 4th, 2010, 2:50 pm

Re: Headphones : Music albums and artists auto download program

Post by baz »

W7 64-bit... I get this error with python 3.2 (32-bit & 64-bit), any ideas? SB and CP work great.

Code: Select all

C:\Program Files (x86)\Headphones>\Python32\python.exe headphones.py
Traceback (most recent call last):
  File "headphones.py", line 2, in <module>
    import cherrypy
  File "C:\Program Files (x86)\Headphones\cherrypy\__init__.py", line 65, in <mo
dule>
    from cherrypy._cperror import HTTPError, HTTPRedirect, InternalRedirect
  File "C:\Program Files (x86)\Headphones\cherrypy\_cperror.py", line 344
    except ValueError, x:
                     ^
SyntaxError: invalid syntax

C:\Program Files (x86)\Headphones>

Thanks!
baz
Newbie
Newbie
Posts: 8
Joined: December 4th, 2010, 2:50 pm

Re: Headphones : Music albums and artists auto download program

Post by baz »

baz wrote: W7 64-bit... I get this error with python 3.2 (32-bit & 64-bit), any ideas? SB and CP work great.
Thanks!
Nevermind... just needed to install Python 2.7.
baz
Newbie
Newbie
Posts: 8
Joined: December 4th, 2010, 2:50 pm

Re: Headphones : Music albums and artists auto download program

Post by baz »

rascalli wrote: Would it be an option to build in logging ?
+1 for logging... I tried to request an album I know is on nzbmatrix but it never makes it to Sabnzb

Thx
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Headphones : Music albums and artists auto download program

Post by rembo10 »

Logging coming asap. I'm just out of town til Thursday so I haven't really been able to work on it much, but I'm keeping an eye on the thread and will work out all the bugs and add in more of the backend functionality as soon as I get back.
timmyb12345 wrote:
Not sure if that helps. What interests me is the ability for this to hook up into an iTunes library. With the introduction of iOS5 in the Fall - i am looking to centralize my Itunes library in the home.

- Web Interface is a 100% must, so thank you for making this. Audio Matic is available I know but this doesn't come with a web interface.
- Do you think there is a possibility of introducing some way of forcing an iTunes update? Once an album has downloaded for example?
iTunes integration was a big one for me too. I know a lot of people don't use iTunes though so I want to make it completely optional. Maybe just have one button with 'Enable iTunes integration' and that would take care of importing downloaded albums to iTunes, mirroring your iTunes library artists, etc.

@rascalli - the 403 forbidden error is something to do with MusicBrainz - I know they upgraded their API so there may be some issues with that. I'll get in touch with them to see if I need to make any changes.

As for showing the results - that's not a bad idea. Would that just be if you're setting an album to wanted manually? Or maybe have a list of pending downloads in the 'Manage' section, with options to select which one you want?

In either case, I'll be back to work on this by the weekend and will hopefully get out something a little more robust by Sunday or Monday
Last edited by rembo10 on June 13th, 2011, 4:39 am, edited 1 time in total.
User avatar
rascalli
Moderator
Moderator
Posts: 656
Joined: January 18th, 2008, 12:30 am
Location: Bossche bollen land

Re: Headphones : Music albums and artists auto download program

Post by rascalli »

@Rembo10 , I would say show result when you manually set an album to wanted

But your other idea to have them IN manage is also very good
rembo10
Jr. Member
Jr. Member
Posts: 56
Joined: April 26th, 2011, 2:29 am

Re: Headphones : Music albums and artists auto download program

Post by rembo10 »

Added in force checking for wanted albums and force updating active artists (under Manage->Force Search)

Latest @ http://github.com/rembo10/headphones

Next up is logging.....


@rascalli - I'm going to go through your artist list to see if there are any problems with the MB query - hopefully I can get a fix up soon
jdwoods
Newbie
Newbie
Posts: 7
Joined: January 25th, 2011, 12:07 pm

Re: Headphones : Music albums and artists auto download program

Post by jdwoods »

This looks cool.
Has anybody successfully gotten this to work on Mac?
I'd love to try it out as I have CouchPotato and SickBeard running. Would love to add something like this.
User avatar
nomar383
Release Testers
Release Testers
Posts: 221
Joined: April 14th, 2010, 1:34 am
Location: Rexburg, ID
Contact:

Re: Headphones : Music albums and artists auto download program

Post by nomar383 »

jdwoods wrote: This looks cool.
Has anybody successfully gotten this to work on Mac?
I'd love to try it out as I have CouchPotato and SickBeard running. Would love to add something like this.
Works fine on my mac. Similar to SickBeard.
SABCommand for iPad Developer
SABConnect for Safari 5 Developer

Bug Tracking:
http://redmine.kalenhansen.com

Twitter:
http://twitter.com/SABCommand
jdwoods
Newbie
Newbie
Posts: 7
Joined: January 25th, 2011, 12:07 pm

Re: Headphones : Music albums and artists auto download program

Post by jdwoods »

I have headphones up and running. I have added a few artists in. I have selected a number of their albums as wanted. I have conifigred Sab and NzbMatrix similar to how I have configured SickBeard.
I have not gotten a single album to download yet though. I have tried to force the application to search for albums and receive the following error:
500 Internal Server Error

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

Traceback (most recent call last):
  File "/path/_cprequest.py", line 645, in respond
    response.body = self.handler()
  File "/path/lib/encoding.py", line 188, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "/path/_cpdispatch.py", line 29, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/path/webServer.py", line 341, in forceSearch
    searcher.searchNZB()
  File "path/searcher.py", line 179, in searchNZB
    urllib.urlopen(saburl)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 87, in urlopen
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 203, in open
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib.py", line 338, in open_http
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 868, in endheaders
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 740, in _send_output
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 699, in send
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py", line 683, in connect
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 512, in create_connection
IOError: [Errno socket error] [Errno 61] Connection refused
This is pretty odd considering in Terminal when I type Python, I receive this:

Code: Select all

Python 2.7.1 (r271:86882M, Nov 30 2010, 09:39:13) 
[GCC 4.0.1 (Apple Inc. build 5494)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 
Any input on this?
Post Reply