Jump to content


Photo

Two genres for the price of one

genre double genre duplicate genre

  • Please log in to reply
34 replies to this topic

#1 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 11 March 2017 - 12:17 PM

Hi guys,

I'm not a huge fan of the new way Emby Theater treats genres views, but I can live with it.

 

On my system it has a weird problem though, which I assume is a Server problem not a Theater problem: for 2 genres, namely Comedy and Western, there is a 2nd genre called comedy and western (with lower case "c" and "w"). The metadata directory for genres only shows Comedy and Western, but the artwork in those directories is used for the lower case genres and no artwork shows for the upper case ones. None of my films have the genre with a lower case c or w, according to the GenreCleaner plugin. All the other genres, including my custom genres, show up normally.

 

How do I combine Comedy and comedy?

 

 

Attached File  Genre Comedy v comedy.PNG   454.62KB   6 downloads

 



#2 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 47035 posts
  • Local time: 01:45 PM

Posted 11 March 2017 - 01:49 PM

How do I combine Comedy and comedy?

 

It would need to be fixed at the source.  Meaning look at the items showing in the lower case one and edit their genres to be the upper case.

 

This is a little tricky just because some file systems preserve case so we can't just assume everything regardless of case is the same.

 

Genre Cleaner could probably fix this for you as well.



#3 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 11 March 2017 - 02:29 PM

Thanks for the reply, but the problem is more pernicious than that.

 

When I click on the genre comedy I see exactly the same movies that I see when I click on Comedy.

 

I used westerns as a testbed because I have fewer western movies than comedies so it's quicker to verify things. I checked the genre with the metadata manager, and every one of my Western movies has the genre Western; none has the genre western.

 

I changed one movie from Western to western. It still shows up in both views (with genre western) after a library scan. 

 

Genre Cleaner only shows Western as a genre, not western.

 

BTW, the same problem exists in my TV shows, but I never sort them by genre so I don't care. But it's exactly the same problem for C/comedy, W/westerns, and S/sports.



#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138285 posts
  • Local time: 01:45 PM

Posted 11 March 2017 - 03:23 PM

Ebr is still right though.



#5 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 11 March 2017 - 07:24 PM

Maybe you're both right, but I don't understand and I don't know how to fix the problem. My questions:

1. Why can I not find a movie with a lowercase genre?

2. Why do all movies of a genre show up in both lowercase and uppercase views?

3. Genre Cleaner doesn't identify a lowercase genre?

4. Why does this only happen in Comedy and Westerns, not in any other genre, even those where I have many more movies and the likelihood of an error (lowercase d in Drama, for example) is higher?

5. Why did this not happen in older versions of Emby, including all the way back to MB2? Even in Theater 2.5.38 from last week the genre view only showed Comedy and Westerns and not the lowercase versions.

 

This is obviously not a major problem. I can live with 2 genres for the price of one, but I don't agree that it is a problem in the metadata.



#6 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 47035 posts
  • Local time: 01:45 PM

Posted 11 March 2017 - 10:16 PM

All of your questions above can be answered by the explanation I gave - some portion of the metadata has the lower case data. These views are built from the bottom up - meaning, we look at the source data and group the items accordingly as opposed to the other way around.

 

The reason you may not be able to tell in the metadata manager may be due to display logic within it (I'm not sure).  Try looking at the source data (.nfo files) for some of those items and see if you can find the lower case genres.



#7 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 12 March 2017 - 12:52 AM

I understand how the view is built. Which means it is totally illogical for the same movie to be in the view Comedy and at the same time in the view comedy, when in the metadata all that can be seen is the genre Comedy for that movie.



#8 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 12 March 2017 - 01:02 AM

I just discovered a much easier test case.

 

In my TV shows I have the same problem with the genres C/comedy and W/western. But I only have 3 TV shows in Western. All 3 show up in the genre view for both upper and lower case (i.e. 3 series with genre Western, the same 3 with genre western). All 3 have metadata (xml files) that show only the genre Western, with upper case W.

 

Please tell me what I need to change to make them all move into one single genre, Western.



#9 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15779 posts
  • Local time: 10:45 AM
  • LocationWashington State

Posted 12 March 2017 - 04:56 AM

What OS is the server on?  Do you have a custom Metadata location set?

 

Are there duplicate genre folders in Emby-Server\metadata\Genre?



#10 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 12 March 2017 - 07:15 AM

The OS is Windows 10 Pro.

Yes, I have a custom metadata location.

In the metadata location, only the capitalized genre is present (Comedy but not comedy, Western but not western) and if I try to create a directory called "western" Windows tells me it already exists.



#11 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 47035 posts
  • Local time: 01:45 PM

Posted 12 March 2017 - 09:09 AM

My best guess at this point is that, at some point in time, the items had the lower case genre in the source metadata and that got saved to the database.  Try the following with your western ones:

 

1) Try a full refresh replacing all metadata and see if this removes that item from the two different places

 

2) If that doesn't work, try removing the genre and saving and then adding it back.



#12 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 12 March 2017 - 10:25 AM

Good suggestions, thanks.

 

Refreshing and replacing all metadata, then rescanning the library did not help. All 3 TV series still showed in both genres W/western.

 

Removing the genre Western from the metadata in all 3 series, then rescan of library resulted in no genre named Western or western in genre view.

 

Adding back Western to the metadata in all 3 series brought back both genres, big W and small w. All 3 series were present in both genres even though their xml files contain only uppercase Western as genre.

 

Is there some place other than the xml file where genre data is cached?



#13 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15779 posts
  • Local time: 10:45 AM
  • LocationWashington State

Posted 12 March 2017 - 11:54 AM

@Luke - Is this a database issue?

 

I just did a test from another post, and can not reproduce.

 

(v3.2.7.0 new install)

58c56ee7557ad_test.jpg



#14 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 12 March 2017 - 12:08 PM

Luke and ebr have said from the beginning it's not a database issue.

 

On my machine it only happens for genres Western and Comedy, both in movies and TV. Can you test one of those please?



#15 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15779 posts
  • Local time: 10:45 AM
  • LocationWashington State

Posted 12 March 2017 - 01:16 PM

Luke and ebr have said from the beginning it's not a database issue.

 

On my machine it only happens for genres Western and Comedy, both in movies and TV. Can you test one of those please?

 

Adding "comedy" to a show added it to "Comedy".

 

How old is your installation?  That is why I asked if it could database issue.

 

 

Correction    It took awhile but I did get it to duplicate, it seemed to do it after I did a search.  Will see if I can reverse the effects now.


Edited by Happy2Play, 12 March 2017 - 01:40 PM.


#16 khodges747 OFFLINE  

khodges747

    Advanced Member

  • Members
  • 190 posts
  • Local time: 01:45 PM
  • LocationAlexandria, VA

Posted 12 March 2017 - 02:24 PM

Adding "comedy" to a show added it to "Comedy".

 

How old is your installation?  That is why I asked if it could database issue.

 

 

Correction    It took awhile but I did get it to duplicate, it seemed to do it after I did a search.  Will see if I can reverse the effects now.

This machine is about 3 years old and MB server has been installed from the beginning.

 

I'm glad you got it to happen, too. Now I know it's not some weird metadata problem in my files.

 

Keep us posted if you find a solution.



#17 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15779 posts
  • Local time: 10:45 AM
  • LocationWashington State

Posted 12 March 2017 - 03:06 PM

@Luke

 

Are the genreids only in the database?

 

comedy

genreId=41e8c0ef8afd433f5059dda4bf964fd0

 

Comedy

genreId=5f58fc74bcc724cda94a1ff167b50bce

 

 

I can only get Comedy or Western to duplicate but not both at the same time.  Couldn't replicate on any other genres so far.



#18 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138285 posts
  • Local time: 01:45 PM

Posted 12 March 2017 - 03:10 PM

how did you create the issue?



#19 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15779 posts
  • Local time: 10:45 AM
  • LocationWashington State

Posted 12 March 2017 - 03:13 PM

how did you create the issue?

 

Added lower case genre to item not already in genre for Comedy or Western.  Removing that lowercase genre didn't correct the issue.



#20 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 15779 posts
  • Local time: 10:45 AM
  • LocationWashington State

Posted 12 March 2017 - 04:33 PM

Nuking the library.db resolves the issue in my case as I know there are no other lower case entries.







Also tagged with one or more of these keywords: genre, double genre, duplicate genre

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users