Skye Cairns wrote:
> One further note.
>
> If all you want is to change other / unknown to get the colour coding to be correct you'll need to run a litte program to convert the genre from XMLTV file to a genre Kodi understands. It uses some European standard that does even have SitCom as an option. Anyhow here's a snippet of my program to do that:
>
> If UCase(myStringCat) = "FILM" Then myStringCat = "Film / Cinema"
> If UCase(myStringCat) = "MOVIE" Then myStringCat = "Movie / Drama"
> If UCase(myStringCat) = "ACTION" Then myStringCat = "Movie / Drama"
> If UCase(myStringCat) = "HORROR" Then myStringCat = "Movie / Drama"
> If UCase(myStringCat) = "HISTORICAL DRAMA" Then myStringCat = "Movie / Drama"
> If UCase(myStringCat) = "ROMANTIC COMEDY" Then myStringCat = "Romance"
> If UCase(myStringCat) = "MINISERIES" Then myStringCat = "Movie / Drama"
> If UCase(myStringCat) = "DRAMA" Then myStringCat = "Movie / Drama"
> If UCase(myStringCat) = "CRIME DRAMA" Then myStringCat = "Detective / Thriller"
>
> HTH BTW there are over 100 choices of genres to be converted.
Thanks. I opened XMLTV file in text editor and found each show has multiple categories that Kodi probably won't understand. Any guide to run your script? I have somewhat unique situation. XMLTV file is created by Windows zap2xml.exe. But TVH is in Windows Subsystem Linux. Both Win and Ubuntu can access the same XMLTV file. FWIW, this is my daily scheduled task:
4 am: Windows creates XMLTV file
6 am: TVH reads XMLTV with tv_grab_file grabber