Headphones : Music albums and artists auto download program

Got a program that plays well with SABnzbd? Share it here!
brianafischer
Newbie
Newbie
Posts: 2
Joined: October 1st, 2010, 8:08 pm

Re: Headphones : Music albums and artists auto download prog

Post by brianafischer »

I have a large library that I would like to manage with headphones. I think headphones is great for showing current and upcoming albums. I get most of my music from the Amazon MP3 store and had a few questions:

1. What determines the order that the music directory is scanned? When looking at the logs, it does not seem to propagate in alphabetical order. Is there a way to display some more details on what the scanner is doing?

2. How long should a scan take (on a per album basis)? I have about 800 artists processed over 12 hours.

3. Is there a way to prevent various artist compilations from adding all individual artists? It would be preferred if a compilation shows up under a special category.
MrHaugen
Newbie
Newbie
Posts: 28
Joined: July 2nd, 2011, 1:13 pm

Re: Headphones : Music albums and artists auto download prog

Post by MrHaugen »

rascalli wrote:Were those files in the folder before ? Or did HP download them ?

Do your logs tell you anything ?
This albums were not anywhere on my drives before. They was downloaded in another temp directory with SABnzbd, and moved to HP's complete folder, witch I presume is used for processing and moving files to the destination folder. I'll check the logs when I can. I've been away from my setup for a while. If I remember correctly there was no log entries after the NZB's was returned to the "processing" folder.

Just to be totally sure here.... Headphones does not have problems with Mapped drives does it? I entered a problem with this on another app a few days ago.
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 prog

Post by rascalli »

HP does not look in a folder automaticly for new downloads , you need to manual start this.

It does auto post-process downloads it send itself to sabnzbd+
sunnyd76
Newbie
Newbie
Posts: 1
Joined: September 25th, 2011, 2:11 pm

Re: Headphones : Music albums and artists auto download prog

Post by sunnyd76 »

hi

Just wondering if anyone else is having the same problem. I've setup Headphones to download to SABNzbd but nothing is being received by SABNzbd. I've set up SAB API key, password, etc.

This is what i'm running:
- SAB version 0.6.9
- Headphones version e9a1e55 (e9a1e5522a04268690edf2c921906bdafc95c3a7)
- Python version 2.7.2

I'm getting this error when adding a track (password, etc. is xxxx'ed out!):
2011-09-25 10:59:01 ERROR Unable to connect to SAB with URL: http://localhost:8082//api?ma_password= ... music_head

Any ideas what could be the problem?

Cheers
Sunil
Seabull
Newbie
Newbie
Posts: 2
Joined: September 27th, 2011, 1:55 pm

Re: Headphones : Music albums and artists auto download prog

Post by Seabull »

Is it possible to develop an integration with Shazam or SoundHound?

Here's a scenario:
- Unknown song heard in store
- Poll song with iPhone using Shazam/SoundHound
- Forward result to Headphones
- Download by SabNZBd
- Stream back over iPhone using AirPlayer

After polling for a song both apps allow you to share the results using Twitter.
What I am imagining is to have Headphones follow a Twitter account dedicated to Shazam / SoundHound results and amend the Artist into the database. Not unlike how the Last.FM feature in Headphone currently works.

In a perfect world this step would be automated, but I understand that Headphones doesn't automatically look for new Artists / Albums. So This step would have to involve opening Headphones web interface remotely and forcing the update.
Scorpie
Newbie
Newbie
Posts: 1
Joined: October 1st, 2011, 5:46 pm

Re: Headphones : Music albums and artists auto download prog

Post by Scorpie »

So i`ve been busting my head about this issue i`m having with Headphones and I can`t figure it out.

No matter what I do, Headphones keeps saying:

Code: Select all

02-okt-2011 00:45:10 - INFO :: MainThread : Checking to see if the database has
all tables....
Failed to start on port: 8181. Is something else running?
It doesn`t matter which port I try, everyone gives the same error. No logging about an error whatsoever. Anybody have an idea?
I even tried porting an config.ini to the system:

Code: Select all

[General]
http_port = 8181
http_host = 192.168.0.100
http_username = ""
http_password = ""
http_root = /
launch_browser = 0
log_dir = /logs
git_path = ""
music_dir = ""
destination_dir = ""
preferred_quality = 0
preferred_bitrate = ""
detect_bitrate = 0
auto_add_artists = 1
correct_metadata = 0
move_files = 0
rename_files = 0
folder_format = artist/album [year]
file_format = tracknumber artist - album [year]- title
cleanup_files = 0
add_album_art = 0
embed_album_art = 0
embed_lyrics = 0
download_dir = ""
blackhole_dir = ""
usenet_retention = ""
include_extras = 0
nzb_search_interval = 360
libraryscan_interval = 300
download_scan_interval = 5
lastfm_username = ""
interface = default
nzb_handler = SABnzbd
folder_permissions = 0755
encode = 0
encoder = ffmpeg
bitrate = 192
samplingfrequency = 44100
encoderfolder = ""
advancedencoder = ""
use_advanced_encoding = 0
encoderoutputformat = mp3
encoderquality = 2
encodervbrcbr = cbr
encoderlossless = 1
[SABnzbd]
sab_host = ""
sab_username = ""
sab_password = ""
sab_apikey = ""
sab_category = ""
[NZBMatrix]
nzbmatrix = 0
nzbmatrix_username = ""
nzbmatrix_apikey = ""
[Newznab]
newznab = 0
newznab_host = URL
newznab_apikey = APIKEY
[NZBsorg]
nzbsorg = 0
nzbsorg_uid = ""
nzbsorg_hash = ""
[Newzbin]
newzbin = 0
newzbin_uid = ""
newzbin_password = ""
As you can see, pretty basic stuff, but yet it doesnt allow me to run Headphones. I`m running on a Windows Home Server, maybe that has something to do with it? Anybody got any pointers, tips, solutions to this problem?
aspacelot
Newbie
Newbie
Posts: 1
Joined: October 4th, 2011, 3:39 pm

Re: Headphones : Music albums and artists auto download prog

Post by aspacelot »

Scorpie wrote:So i`ve been busting my head about this issue i`m having with Headphones and I can`t figure it out.

No matter what I do, Headphones keeps saying:

Code: Select all

02-okt-2011 00:45:10 - INFO :: MainThread : Checking to see if the database has
all tables....
Failed to start on port: 8181. Is something else running?
It doesn`t matter which port I try, everyone gives the same error. No logging about an error whatsoever. Anybody have an idea?
I even tried porting an config.ini to the system:

Code: Select all

[General]
http_port = 8181
[b]http_host = 192.168.0.100[/b]
http_username = ""
http_password = ""
http_root = /
launch_browser = 0
log_dir = /logs
git_path = ""
music_dir = ""
destination_dir = ""
preferred_quality = 0
preferred_bitrate = ""
detect_bitrate = 0
auto_add_artists = 1
correct_metadata = 0
move_files = 0
rename_files = 0
folder_format = artist/album [year]
file_format = tracknumber artist - album [year]- title
cleanup_files = 0
add_album_art = 0
embed_album_art = 0
embed_lyrics = 0
download_dir = ""
blackhole_dir = ""
usenet_retention = ""
include_extras = 0
nzb_search_interval = 360
libraryscan_interval = 300
download_scan_interval = 5
lastfm_username = ""
interface = default
nzb_handler = SABnzbd
folder_permissions = 0755
encode = 0
encoder = ffmpeg
bitrate = 192
samplingfrequency = 44100
encoderfolder = ""
advancedencoder = ""
use_advanced_encoding = 0
encoderoutputformat = mp3
encoderquality = 2
encodervbrcbr = cbr
encoderlossless = 1
[SABnzbd]
[b]sab_host = ""[/b]
sab_username = ""
sab_password = ""
sab_apikey = ""
sab_category = ""
[NZBMatrix]
nzbmatrix = 0
nzbmatrix_username = ""
nzbmatrix_apikey = ""
[Newznab]
newznab = 0
newznab_host = URL
newznab_apikey = APIKEY
[NZBsorg]
nzbsorg = 0
nzbsorg_uid = ""
nzbsorg_hash = ""
[Newzbin]
newzbin = 0
newzbin_uid = ""
newzbin_password = ""
As you can see, pretty basic stuff, but yet it doesnt allow me to run Headphones. I`m running on a Windows Home Server, maybe that has something to do with it? Anybody got any pointers, tips, solutions to this problem?
I'm assuming SAB is running on 192.168.1.100:PORT. Try http host 0.0.0.0 instead of 192.168.1.100 and put the 1.100 addy in your SAB option with port.

Here's what I have:

Code: Select all

[General]
http_port = 8181
http_host = 0.0.0.0
http_username = USERNAME
http_password = PASSWORD
http_root = /
launch_browser = 1
log_dir = C:\headphones\logs
git_path = ""
music_dir = G:\My Music\
destination_dir = G:\My Music
preferred_quality = 0
preferred_bitrate = ""
detect_bitrate = 0
auto_add_artists = 1
correct_metadata = 1
move_files = 1
rename_files = 1
folder_format = artist/album [year]
file_format = tracknumber artist - album [year]- title
cleanup_files = 1
add_album_art = 1
embed_album_art = 1
embed_lyrics = 0
download_dir = G:\Downloads\NZB\complete
blackhole = 0
blackhole_dir = ""
usenet_retention = ""
include_extras = 0
nzb_search_interval = 360
libraryscan_interval = 300
download_scan_interval = 5
lastfm_username = LASTFMUSERNAME
interface = default
folder_permissions = 0755
encode = 0
encoder = ffmpeg
bitrate = 192
samplingfrequency = 44100
encoderfolder = ""
advancedencoder = ""
encoderoutputformat = mp3
encoderquality = 2
encodervbrcbr = cbr
encoderlossless = 1
[SABnzbd]
sab_host = http://sab.myusenetdns.com
sab_username = USERNAME
sab_password = PASSWORD
sab_apikey = KEY
sab_category = Music
[NZBMatrix]
nzbmatrix = 1
nzbmatrix_username = USERNAME
nzbmatrix_apikey = KEY
[Newznab]
newznab = 0
newznab_host = ""
newznab_apikey = ""
[NZBsorg]
nzbsorg = 0
nzbsorg_uid = ""
nzbsorg_hash = ""
[Newzbin]
newzbin = 0
newzbin_uid = ""
newzbin_password = ""
Also, you did install python and are running the headphones.py via python, correct?
Placemaster
Newbie
Newbie
Posts: 19
Joined: July 1st, 2010, 2:10 pm

Re: Headphones : Music albums and artists auto download prog

Post by Placemaster »

I have the following problem. In the evening I do get always this error:

2011-10-12 21:24:15 ERROR Unable to parse the best result NZB. Skipping.
2011-10-12 21:24:13 ERROR Unable to parse the best result NZB. Skipping.
2011-10-12 21:24:12 ERROR Unable to parse the best result NZB. Skipping.
2011-10-12 21:24:11 ERROR Unable to parse the best result NZB. Skipping.
2011-10-12 21:24:10 INFO Pre-processing result
2011-10-12 21:24:10 INFO Found Guns.N.Roses.G.N.R.Lies.(Remastered)-1999. Size: 78.0 MB
2011-10-12 21:24:10 INFO Found Guns.N.Roses...G.N.R-Lies. Size: 84.0 MB
2011-10-12 21:24:10 INFO Found Guns.N.Roses...G.N.R-Lies. Size: 79.0 MB

I have already checked my API setting is Headphones and they seem good.

The strange thing is during the day it seems working. Any ideas?
I am using NZBmatrix as my provider.
recoil
Newbie
Newbie
Posts: 20
Joined: August 25th, 2010, 8:33 am

Re: Headphones : Music albums and artists auto download prog

Post by recoil »

I really like the sound of this program but can someone please write me a complete n00d walkthrough of installing it. I have SABnzb, Sick Beard, and Couch Potato working, buy for the life of me I cant install this.
recoil
Newbie
Newbie
Posts: 20
Joined: August 25th, 2010, 8:33 am

Re: Headphones : Music albums and artists auto download prog

Post by recoil »

Ignore me, I was being a dick really should start to read things
recoil
Newbie
Newbie
Posts: 20
Joined: August 25th, 2010, 8:33 am

Re: Headphones : Music albums and artists auto download prog

Post by recoil »

VA.Now.Thats.What.I.Call.Music.79.2011-2CD is larger than the maxsize for this category, skipping. (Size: 329515008 bytes)

Im getting that come up in the log window, much respect this is a great add-on

Sorted that error, change the quality settings, but now mhen searching I get

Timestamp Level Message
2011-10-25 17:23:24 INFO Removed from results: VA Now Thats What I Call Music 79 2011 2CD (missing token: That)
2011-10-25 17:23:24 INFO Found VA.Now.Thats.What.I.Call.Music.79.2011-2CD. Size: 314.0 MB
2011-10-25 17:23:22 INFO Parsing results from NZBMatrix
2011-10-25 17:23:22 INFO Searching for Now That's What I Call Music! 79 2011 since it was marked as wanted


I can find other music I added "red hot chillies" downloaded there album perfectly
jasonnm
Newbie
Newbie
Posts: 3
Joined: October 29th, 2011, 6:58 am

Re: Headphones : 500 error when adding new "wanted" album

Post by jasonnm »

Hi guys,
I love the idea of Headphones - as a Sickbeard user I was hoping to find something similar for music - but I seem to have two problems:

1. it's been scanning my iTunes library for the last 15 hours or so, and still only shows 29 artists on the Home page (my iTunes library has over 700) - tried restarting the app but still no luck; and
2. if I change an album to wanted on any artists page, I get a 500 Internal Server error:

Traceback (most recent call last):
File "/Users/Jason/Headphones/Headphones/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/Users/Jason/Headphones/Headphones/cherrypy/lib/encoding.py", line 188, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/Users/Jason/Headphones/Headphones/cherrypy/_cpdispatch.py", line 29, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Users/Jason/Headphones/Headphones/headphones/webserve.py", line 164, in queueAlbum
searcher.searchNZB(AlbumID, new)
File "/Users/Jason/Headphones/Headphones/headphones/searcher.py", line 317, in searchNZB
sizenode = item.getElementsByTagName("report:size")[0].childNodes
IndexError: list index out of range

I've seen that some people have had a similar problem, but the changes they made to fix it don't work for me. Anyone know what "IndexError: list index out of range" means??
Anything I can try to make the other 630 artists appear in my Home page??
:)
Thanks for your help!!
Cheers,
J
ziv_ew
Newbie
Newbie
Posts: 2
Joined: November 5th, 2011, 12:16 pm

Re: Headphones : Music albums and artists auto download prog

Post by ziv_ew »

im trying to install headphones but i keep getting this from the .py http://imageshack.us/f/695/unledpos.png/
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 »

ziv_ew - try upgrading python if you can. i think configobj requires >2.6

scanning shouldn't be taking that long - well it actually depends..... to actually scan my library, it takes about 5 minutes for ~2000 songs. Importing them (i.e. querying musicbrainz, adding all the info, etc) takes about 1 minute per artist on average for me. Planning on speeding this up soon, but it's hard to figure out how to sync the database since musicbrainz is always changing.

jasonnm - what providers are you using? i only use nzbmatrix and nzb.su so i haven't really tested it extensively with anything else. seems like it also might be stuck on that 30th artist. I haven't had this issue so I'm not really sure what's causing it - special characters seem to work fine but maybe there's something in there that breaks it.

recoil - that tokening thing that we put in works pretty well in most cases, but not when there's an apostophe. seems like it's pretty hit or miss with that - will be resolved soon

anyways, i hope you guys are liking it so far - torrent support got added in today, and i'm planning another pretty decent sized update soon :-)
ziv_ew
Newbie
Newbie
Posts: 2
Joined: November 5th, 2011, 12:16 pm

Re: Headphones : Music albums and artists auto download prog

Post by ziv_ew »

i had python 3.2, i installd 2.7 and it workd. im having truble importing my music library, can i contact you on skype or msn for support on this?

Edit: never mind it started importing...i think it would be cool if you added a more obvious way to tell that it is in fact importing... like a status bar or something
Post Reply