•   
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 98
  •   
Headphones - Music albums & artists auto download program
#46
I'm getting the same locked message when trying to add a new artist:

Quote:Traceback (most recent call last):
File "/mnt/disk/downloads/opt/unRAID/headphones/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/mnt/disk/downloads/opt/unRAID/headphones/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/mnt/disk/downloads/opt/unRAID/headphones/cherrypy/_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "/mnt/disk/downloads/opt/unRAID/headphones/webServer.py", line 209, in addArtist
c.execute('INSERT INTO artists VALUES( ?, ?, ?, CURRENT_DATE, ?)', (artistid, artist.name, artist.sortName, 'Active'))
OperationalError: database is locked

on linux, an unRAID server to be specific and python 2.6.5

I also noticed that the "Music Download Directory:" text box in "Download Settings" has a size limit, my absolute directory is above that limit
Reply
#47
I created a new root folder for my music with just a couple of artists inside. I am able to add a new artist w/o a problem. When I select "want" for an album, this is the error I receive:

500 Internal Server Error

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

Traceback (most recent call last):
File "/mnt/cache/.custom/headphones/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/mnt/cache/.custom/headphones/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/mnt/cache/.custom/headphones/cherrypy/_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "/mnt/cache/.custom/headphones/webServer.py", line 281, in queueAlbum
searcher.searchNZB(AlbumID)
File "/mnt/cache/.custom/headphones/searcher.py", line 180, in searchNZB
urllib.urlopen(saburl)
File "/usr/lib/python2.6/urllib.py", line 86, in urlopen
return opener.open(url)
File "/usr/lib/python2.6/urllib.py", line 205, in open
return getattr(self, name)(url)
File "/usr/lib/python2.6/urllib.py", line 344, in open_http
h.endheaders()
File "/usr/lib/python2.6/httplib.py", line 904, in endheaders
self._send_output()
File "/usr/lib/python2.6/httplib.py", line 776, in _send_output
self.send(msg)
File "/usr/lib/python2.6/httplib.py", line 735, in send
self.connect()
File "/usr/lib/python2.6/httplib.py", line 716, in connect
self.timeout)
File "/usr/lib/python2.6/socket.py", line 514, in create_connection
raise error, msg
IOError: [Errno socket error] [Errno 111] Connection refused
Reply
#48
@r3v0ss: The new code will allow multiple newznab servers. I've been working on it the last couple days to make it a lot more stable :-)

@compcentral: I'm adding threading in the new version so you won't have any trouble adding new artist while it's loading your library, but for now it might be problematic. Also, it doesn't scan the songs but I'm going to add it in for sure.

@Dezie: No problem - I will make sure to let a lot of the post-processing be configurable.

@joelones: Are you trying to add an artist while your library is loading? Maybe just let that process run for now so there are no conflicts. Will be fixed soon. I'll also remove that path limit and get that up tonight

@indy5: Try removing the 'http://' from your SAB host and do a reset. I'll fix this soon to automatically format the hostname - for now it automatically adds "http://"
Reply
#49
Great app, love it allready, though it's highly alpha. I really miss debuglogs, but opened an issue for it on github.

I made a textbased installer for Headphones on Ubuntu-based servers, works also on XBMC Live machines.
Get it here:
Code:
wget http://dl.dropbox.com/u/18712538/LaSi/LaSi.sh
sudo chmod +x LaSi.sh
./LaSi.sh

And follow instructions in terminal. It has optional daemonized install and configuration of port/username/password before first start.

Keep up the great work.

Edit:
For people that want to postprocess all downloaded albums:
I also have a script that installs AlbumIdentify, also provided as an option in the above textbased installer. After install make sure Headphones uses a category in Sabnzbd that loads SabtoAlbum.sh, and your music will be tagged according to Musicbrainzstandards when the albums are found on MB (which is most likely cause Headphones also searches there). You can also set your own preferred namingscheme. As cherry on top it also replaygains your music (optional, but healthy for ears and speakers Wink )
Reply
#50
Mar2zz Wrote:For people that want to postprocess all downloaded albums:
I also have a script that installs AlbumIdentify, also provided as an option in the above textbased installer. After install make sure Headphones uses a category in Sabnzbd that loads SabtoAlbum.sh, and your music will be tagged according to Musicbrainzstandards when the albums are found on MB (which is most likely cause Headphones also searches there). You can also set your own preferred namingscheme. As cherry on top it also replaygains your music (optional, but healthy for ears and speakers Wink )

I second that, see my post earlier for more info on AlbumIdentify. I'm using this combo already. Cool
Reply
#51
will that script work on a windows box?
Reply
#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/
Reply
#53
would it be possible to make it a exe like sickbeards?
Reply
#54
You could try, looks not that complicated:

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

http://www.programmersheaven.com/article.../info.aspx
Reply
#55
ok cool will check that out
Reply
#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.
Reply
#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
Reply
#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.
Reply
#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
Reply
#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.
Reply
  •   
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 98
  •   



Logout Mark Read Team Forum Stats Members Help
Headphones - Music albums & artists auto download program9
This forum uses Lukasz Tkacz MyBB addons.