rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.38k stars 601 forks source link

Scan Music Library #570

Closed stivbert closed 12 years ago

stivbert commented 12 years ago

Scan Music Library

i Add '/home/user/mp3/' click submit

and in the logs it says Scanning music directory: /home/user/mp3/

but nothing really happens ?

proxenus commented 12 years ago

I think this is the same issue I'm having. If you do a "refine" on the currently loaded artists and search for "loading" I usually find someone stuck in loading status.

*NSYNC Loading Celebrity (2001-07-23) 27/64 Commodores Loading None 12/? Quiet Riot Loading Rehab (2006-10-31)

I will delete these artists from headphones, then re-submit the scan and it will come back with a result, providing another artist doesn't get stuck in "loading" state again. It will depend on how large your library is, of course.

2012-04-16 14:51:34 INFO Scanning music directory: W:/a-z/C/ 2012-04-16 14:51:11 INFO Deleting all traces of artist: 5c6acb91-4b9b-4245-b92f-e817295c4ed0 2012-04-16 14:50:58 INFO Deleting all traces of artist: 900ab237-327b-44e2-87e4-73250bbe025a 2012-04-16 14:50:45 INFO Deleting all traces of artist: 603ba565-3967-4be1-931e-9cb945394e86 2012-04-16 14:45:24 INFO Checking filepaths to see if we can find any matches 2012-04-16 14:45:24 INFO Completed scanning of directory: W:/a-z/C/Crystal Method, The/ 2012-04-16 14:44:33 INFO Scanning music directory: W:/a-z/C/Crystal Method, The/ 2012-04-16 14:43:57 INFO Checking filepaths to see if we can find any matches

so I think the problem here is something getting stuck in loading, at least in my case. you can try my suggestion to confirm. As for why it gets stuck in loading, who knows.

proxenus commented 12 years ago

I'm running the windows version, and the python shell window did pop up a couple additional errors when I deleted the artists. I'm not sure if this is related.

Deleting all traces of artist: ....bbe025a Traceback (most recent call last): File: "C:\Python26\lib\logging\handlers.py", line 71, in emit if self.shouldRollover(record): File "C:\Python26\lib\logging\handlers.py", line 145, in should Rollover self.stream.seek(0, 2) #due to non-posix-compliant Windows feature ValueError: I/O operation on closed file

rembo10 commented 12 years ago

The last error is just a weird issue on windows when the log file needs to be rotated. Deleting the headphones.log file will fix it (when headphones is shut down)

Looks like its getting stuck checking the file paths. There was an error in my code from about 2 days ago that would have caused this, so maybe the compiled version grabbed that code. Hopefully when its updated this will be fixed

proxenus commented 12 years ago

I still have problems with scans finding all my artists/albums. I can't tell whats going on from the logs, but during the scan I noticed sometimes I get messages about a file being unreadable, is it possible that is messing it up?

2012-04-23 18:54:16 INFO Completed scanning of directory: W:/a-z/ .... 2012-04-23 14:57:19 ERROR Cannot read file: W:/a-z/D\David Bowie\Other\David Bowie - Duos\David Bowie Marriane Faithfull - I got you babe.mp3.mp3 2012-04-23 13:21:31 INFO Scanning music directory: W:/a-z/

martijnmegens commented 12 years ago

After a reinstall Headphones only find 50% of the artists. Now i only see "INFO Scanning music directory: /volume1/music" Nothing else, nothing happens, same thing if i try the artists directory for example: INFO Scanning music directory: /volume1/music/Whitesnake INFO Completed scanning of directory: /volume1/music/Whitesnake But no Whitesnake added, while there are about 11 albums downloaded by previous install.

brannon-bowden commented 12 years ago

Just pulled the code on a new linux install and having this same issue. Mine seems to be stopping right at 24 artists...erased db, again 24 artists but some different...

rembo10 commented 12 years ago

I might need debug logs from all of you so I can figure this out

On Apr 27, 2012, at 7:40 AM, Sytanekreply@reply.github.com wrote:

Just pulled the code on a new linux install and having this same issue. Mine seems to be stopping right at 24 artists...erased db, again 24 artists but some different...


Reply to this email directly or view it on GitHub: https://github.com/rembo10/headphones/issues/570#issuecomment-5372183

brannon-bowden commented 12 years ago

Ok issue is resolved, I did two things different. 1) I git cloned like i usually do instead of just using tarball 2) I turned off get extras automatically

rembo10 commented 12 years ago

It might have been getting stuck trying to pull in some extras info, and it's not handling the error correctly. I'm still looking into it but this code will be cleaned up so much in the next few weeks it might be moot

martijnmegens commented 12 years ago

When i start it via the console, headphones seems to lose some config (like custom musicbrainz server). But when i then start browser, change the custom server, and then scan, it works perfect.

BTW, this all happened when i uninstalled the headphones package from Zebulon and installed the package from synocommunity.com

rembo10 commented 12 years ago

Those are pretty new options so it may be a problem with the package - you can try to compare that init .py with the one from the git repo and see if it has those options when it reads the config file On Apr 27, 2012 8:31 PM, "martijnmegens" < reply@reply.github.com> wrote:

When i start it via the console, headphones seems to lose some config (like custom musicbrainz server). But when i then start browser, change the custom server, and then scan, it works perfect.

BTW, this all happened when i uninstalled the headphones package from Zebulon and installed the package from synocommunity.com


Reply to this email directly or view it on GitHub: https://github.com/rembo10/headphones/issues/570#issuecomment-5383138