Open jbreen60030 opened 2 years ago
@edit4ever sorry, forgot to tag you on the PR.
BTW, WRT the mutilingual translations, I ran a full 2 weeks for all channels in Montreal only logging the genres/categories spit out by Zap2it. I found no categories that were of a French origin, though descriptions and titles did show that way.
I don't use Kodi. I am using this to populate Plex xmltv guide.
Took the original Python3 branch and updated
logging.warn to logging.warning
consolidated some of the code that was conditionally checking and duplicated the code in parseEpisodes
Changed the replacement of character "&" (and the "<>" in stitle) to use html.escape for title, sub-title, description
added a memory cache in parseXdetails to hold the Series details info when parsing a series file. Don't re-read the same file over and over (especially SH00000001) on my NAS.
Changed sorting of stations in printStations from int to float of chnum (especially for OTA) when writing the xmltv file, Sort the episodes by ascending numeric station channel and then time in printEpisodes (this was to get consistent output for debugging and testing not a consumer requirement)
added a dict array for language + genres_output level(setting) holding zap2it-genre -> Kodi category implemented the above array in code instead of the nested if then elif in genreSort (don't know why "Comedy" is excluded. it shows up in https://github.com/tvheadend/tvheadend/blob/master/src/epg.c)
Added support for the tag (Plex support)
Added support for the tag (Plex support)
I don't use tvheadend or Kodi, so that has not been tested.