Bug 2662 - Empty genres when browsing
: Empty genres when browsing
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Database
: 6.2.1
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-30 15:38 UTC by Jess Garms
Modified: 2008-09-15 14:39 UTC (History)
0 users

See Also:
Category: ---


Attachments
slimserversql.db (4.22 MB, application/octet-stream)
2005-11-30 17:36 UTC, Jess Garms
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jess Garms 2005-11-30 15:38:59 UTC
I have a couple of empty genres that show up on my slimserver after scanning, including one called "Black Metal". I don't have any songs that are in that genre, nor does the slimserver show any songs within. Nonetheless it keeps showing up when browsing by genre.

Please let me know if there's any additional information I can provide, such as a log file somewhere or the like. Thanks!
Comment 1 Dan Sully 2005-11-30 15:40:52 UTC
Please attach a zipped copy of your slimserversql.db file to this bug.

Thanks
Comment 2 Jess Garms 2005-11-30 17:36:06 UTC
Created attachment 1061 [details]
slimserversql.db
Comment 3 Dan Sully 2005-11-30 19:35:46 UTC
Looks like these files have that Genre set:

file:///D:/music/The%20Timelords/Doctorin%27%20The%20Tardis/02%20Doctorin%27%20The20Tardis.mp3                         
file:///D:/music/The%20Timelords/Doctorin%27%20The%20Tardis/04%20Gary%20In%20The%20Tardis.mp3                           
file:///D:/music/The%20Timelords/Doctorin%27%20The%20Tardis/05%20Doctorin%27%20The%20Tardis.mp3

More Electronica than Black Metal, I would think. :)
Comment 4 Jess Garms 2005-11-30 21:21:51 UTC
Heh. Yes, "Black Metal" doesn't seem quite right. Looking directly at the mp3 files themselves, the genre is blank for the v2 tag, and "Black Metal" for only the v1 tag. I had no idea. I guess iTunes only edits the v2 tag, rather than the v1, and the slimserver must default to v1 if the v2 is blank?

Also, the genre is still empty in the slimserver when I view it -- The Timelords don't show up. Any ideas? I'd like to remove the genre altogether, but I'll wait until I hear back in case there's more info you need on the bug.

Lastly, how did you figure out that those were the files in question? I also have an empty genre called "Other" but I'm not sure how to find the files that I assume have incorrect genres listed in their v1 tags.

Thanks for looking at this!
Comment 5 Dan Sully 2005-12-01 10:02:03 UTC
Ok - Fixed in change 5335 & change 5337

This is in the 6.5 nightlies right now - it may make it into the 6.2.x branch.

To figure it out - I ran the following queries on the SQLite database:

sqlite3 ~/Desktop/slimserversql.db "select id from genres where name = 'Black Metal'"
(returns 22)

sqlite3 ~/Desktop/slimserversql.db "select track from genre_track where genre = 22"
(returns 10490,10491,10492)

sqlite3 ~/Desktop/slimserversql.db "select id,url from tracks where id in (10490,10491,10492)"
Comment 6 Jess Garms 2005-12-02 08:32:05 UTC
Thanks, Dan!

I tried to verify the fix using last night's 6.5 build, but I'm getting a 403 when I try to download it from:

http://www.slimdevices.com/downloads/nightly/latest/6.5/

Is there a different URL I should be using? Thanks.
Comment 7 Dan Sully 2005-12-02 09:49:01 UTC
Subject: Re:  Empty genres when browsing

That's the URL - I'm fixing the link right now.

Comment 8 Jess Garms 2005-12-02 10:41:35 UTC
Verified fixed with the 2005-12-02 build. Thanks!