XBMC Community Forum
Headphones - Music albums & artists auto download program - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116)
+--- Thread: Headphones - Music albums & artists auto download program (/showthread.php?tid=103688)



- oneadvent - 2012-01-05 19:20

Ok I haven't said anything in a few days cause I've been waiting for it to mess up, but so far so good.


- steve1977 - 2012-01-05 20:45

lpallard Wrote:2-Some artists are not identified at all... Again, HP added Pink as Mr. Pink (!?!? what??) The tags in the songs were all properly tagged by Picard and Picard detected the songs as from Pink, no doubt there.. Then I had to add Pink manually and HP detected the albums but not properly (see #1 above)..

From my perspective, this is the single most important bug. Artists like P!nk, Duran Duran and many others are not properly being identified (P!nk as Mr Pink; Duran Duran as Duran). This happens even if the artists are properly tagged with Picard/MB and entering the artist name in MB directly shows them as first hit. No idea whether this can be solved by HP or needs to be addressed by the musicbrainz API. I believe that once this is solved, things overall will improve and other bugs may be minor.

There is a bug report and many have identified this issue. I really hope that even more can pile on this one and maybe one of the devs can help fix this. Unfortunately, I don't bring any programming capabilities, but happy to help with bug reports, donations or whatever is helpful to the devs.

HP is such a fantastic tool, but this bug makes it very hard to use...


- FishOil - 2012-01-05 21:40

Is there any plans to support getting a single song/mp3 instead of the entire album?


- SleepyP - 2012-01-06 06:00

I would imagine probably not since most music distributed via the means HP uses (torrents and newsgroups) are optimized for whole albums / discographies.

Looks like the same stuff that was broken last time I checked is still broken. I haven't done any python development, but I have done development in C#, PHP, Java, as well Windows and BASH shell scripts. I also spent a few months developing and implementing a music tagging "schema", during which time I learned a lot about how MusicBrainz works. Even without MusicBrainz tags, the existing method for searching and then handling the results leaves a bit to be desired. I'll need to see how the data is handled, but I think it should be possible to take a given Artist Name, search that against MusicBrainz to get results, and then semi-intelligently look at those results. If the search results are in an array, I think we should search that array for a string match against the Artist Name. This shouldn't be necessary, but testing against a large dataset has shown that the search facilities are a bit less than awesome sometimes.

For an example of a problem band from my music library, lets take the band Dope. That's what the band is called.
A search against MusicBrainz gives you this:
http://musicbrainz.org/search?query=dope&type=artist
The first returned result (with a score of 100?? REALLY?) is "D.O.P.E.". The second is Dope, the actual band in question. My proposed method would correctly choose the second result over the first. I will need to look into it, but I've already got a GitHub account and stuff, so maybe I can hack something together.

I will need to look at the code to see how understandable it is, but doing a narrow-case modification like this to an existing application, especially a scripty one, shouldn't be TOO terribly hard I hope. If I can, I'd like to fork it, get this feature working, and then contribute it back to the master branch.

Between SABNzbd, SickBeard, CouchPotato, and the others, my video stuff is pretty much covered. I wrote my own podcast solution. Really, music like this is the "last" thing I need to get under control before I'll be living the "full automation" dream Tongue

For nerds who are interested, here's the project's activity network on Github:
https://github.com/rembo10/headphones/network
As you can see, lots of forks open, a few people actively contributed back to the main branch. Looks like Rembo10 (the original author) has been working more on issue tracking and stuff than coding lately, but I could be mis-interpreting GitHub's interface.


- steve1977 - 2012-01-06 09:21

First of all, thanks a ton for looking into this. Agree that music is last missing piece, which is uncovered. Would be fantastic if you can help to close this gap.

SleepyP Wrote:Even without MusicBrainz tags, the existing method for searching and then handling the results leaves a bit to be desired. I'll need to see how the data is handled, but I think it should be possible to take a given Artist Name, search that against MusicBrainz to get results, and then semi-intelligently look at those results. If the search results are in an array, I think we should search that array for a string match against the Artist Name. This shouldn't be necessary, but testing against a large dataset has shown that the search facilities are a bit less than awesome sometimes.

You are bringing up a complex case. Mine is easier. Looking up P!nk gives me the right match in MB, but with exactly the same speeling results in the wrong one in HP:

http://musicbrainz.org/search?query=P%21nk&type=artist

SleepyP Wrote:I will need to look at the code to see how understandable it is, but doing a narrow-case modification like this to an existing application, especially a scripty one, shouldn't be TOO terribly hard I hope. If I can, I'd like to fork it, get this feature working, and then contribute it back to the master branch.

Thanks a ton!!! Let me know if I can help with testing or otherwise.


- SleepyP - 2012-01-07 03:13

Work was fairly busy today but I was able to begin skim reading the code.
Looks like /headphones/importer.py is probably where the relevant stuff is.

Python's syntax is just similar to stuff I already know to be readable. Since I am off work this weekend, I'll try to make some time for this little project. Hopefully it'll be easy to solve and then I can begin actually using HP Smile Will report back


- steve1977 - 2012-01-07 10:18

SleepyP Wrote:Python's syntax is just similar to stuff I already know to be readable. Since I am off work this weekend, I'll try to make some time for this little project. Hopefully it'll be easy to solve and then I can begin actually using HP Smile Will report back

This is fantastic, thanks!!!


- Cuddly Cannibal - 2012-01-10 02:21

I recently started fresh with a new download of Headphones and thought I would give it another try. It's been a couple months since I've used it and I must say that everything looks and feels much better, but I am having a major problem. When I enter in a new artist it does not find all of their official releases.

For instance, when I try to add Band of Horses I get their first two albums, but it leaves their newest release off and this was after refreshing several times. Is this a new bug or am I doing something wrong?

Thanks!

Edit: So I deleted Band of Horses and attempted to add it again. It looks like it might be something with MusicBrainz?
http://pastebin.com/8XaPp6wQ


- Polyphemus - 2012-01-10 09:34

Cuddly Cannibal Wrote:I recently started fresh with a new download of Headphones and thought I would give it another try. It's been a couple months since I've used it and I must say that everything looks and feels much better, but I am having a major problem. When I enter in a new artist it does not find all of their official releases.

For instance, when I try to add Band of Horses I get their first two albums, but it leaves their newest release off and this was after refreshing several times. Is this a new bug or am I doing something wrong?

Thanks!

Edit: So I deleted Band of Horses and attempted to add it again. It looks like it might be something with MusicBrainz?
http://pastebin.com/8XaPp6wQ
MusicBrainz has blocked requests from Headphones, as all the Headphones installations query the MusicBrainz service too much.

Some people tried to change the user client in the request to MusicBrainz, but that does not help anymore.

A possible workaround is to download the virtual server image and query that server...


- sladinki007 - 2012-01-11 15:55

Polyphemus Wrote:MusicBrainz has blocked requests from Headphones, as all the Headphones installations query the MusicBrainz service too much.

Some people tried to change the user client in the request to MusicBrainz, but that does not help anymore.

A possible workaround is to download the virtual server image and query that server...

If the program would only scan once or twice a day then it would not offend musicbrainz i guess...
but now it scans every 3 hours Sad guess that is too much for any Free service

it would be also good if somebody could incorperate a second database ... and lets say every other day we would poll a database...

anyway just my 0.2 cents