[mythtv-users] BUG: mythfilldatabase changes sports to series if episode numbering present

Mark Perkins perkins1724 at hotmail.com
Sun May 31 22:41:58 UTC 2015



> On 31 May 2015, at 10:53 pm, "Hika van den Hoven" <hikavdh at gmail.com> wrote:
> 
> Hoi All,
> 
> I noticed earlier a weird thing in my mythweb EPG. A whole row of
> sports events were tagged as series. (GrandPrix Silverstone). It
> happens sometimes that a source has a program wrongly tagged, but a
> whole row?
> So I did some research. All sources had it correctly set to category
> Sports, including the resulting xmltv file. Only when looking further
> I saw it also had episode numbering. When I removed those numberings
> from the xmltv file and reimported the file, they were properly tagged
> as Sports. 
> 
> I looked at the source code, although I do not really know C. And
> indeed at line 468 and 512 in mythfilldatabase/xmltvparser.cpp on
> finding episode numbering:
> 
> pginfo->categoryType = ProgramInfo::kCategorySeries;
> 
> I don't see it anywhere setting kCategoryMovie or kCategorySports so
> I guess it handels that somewhere else. But at those two lines it
> should check further for instance for a category Sports, Movie or
> Film!
> 
> I now, in creating the xmltv file, strip episode numbering from any
> program of category Sports.
> 
> I didn't notice before. I rarely watch sports, but it makes me wonder
> what happens to a movie with episode numbering. I guess they exist.
> 
> -- 
> Tot Mails,
> Hika                          mailto:hikavdh at gmail.com
> Mijn Mailadres is gewijzigd. Zie hierboven!
> 
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
> 
> De lerende Mens
> 
> _______________________________________________

As I understand it movies should not have an episode number ever. I think an episode value of zero is what triggers the use of TMDB grabber rather than TTVDB grabber. So I believe a movie with an episode number would be considered bad / incorrect data.

Also I don't believe that TTVDB allow sports events to be added to their DB, so I assume sports events should never have an episode number either.

Probably needs a dev to confirm but I suspect it is working as expected and that your listings provider is giving bad data (by MythTV definitions) by including an episode number against sports events so you've probably done the right thing (by MythTV) by adding some cleaning to remove those values before importing.

To get metadata (like coverart) on my sports recordings (as well as news shows) I have always had to manually add. Normally I do this by adding a fake/unused inetref to the recording rule and adding my desired coverart / fanart to the appropriate storage directories with the fake inetref numbering as the filename (like 77777777_coverart.png or 77777777_fanart.png). MythTV will then just automatically pick it up and display.


More information about the mythtv-users mailing list