Current version: 0.1
Description: sd2xmltv is a python application to convert Schedules Direct json feed to an xmltv format. I wrote this application primarily to facilitate importing schedules into tvheadend with XBMC/Kodi as a frontend.
As my primary target is tvheadend/Kodi, I work around tvheadend and/or kodi's limitations. For example, I map some categories to the (currently) hard-coded categories found in tvheadend. Should tvheadend allow user-defined categories in the future, I will modify the application to use the categories from the feed.
While the primary target is tvheadend, the output file should work in any application which can parse xmltv.xml files. I will happily consider any pull requests or suggestions so long as it fits with my target.
Descriptions are massaged to display like so in tvheadend/Kodi (note that the episode title is placed in the description because the Kodi developers don't believe they exist):
"Simple Simpson" (Series; 2004-05-02; S15E19) Homer confronts Springfield's evildoers in the form of his crime-fighting alter ego, the Pie Man.
"Toronto Maple Leafs at Vancouver Canucks" (Sports event; Live) From Rogers Arena.
"Crazy Is as Crazy Does" (Series; New; S30E3) A hard-working tribe is impacted by a division of labor; a contestant's strategy ends up backfiring during the immunity challenge.
(Feature Film; 2002; PG) A tale of a young girl's close encounter with the galaxy's most wanted extraterrestrial. Lilo is a lonely Hawaiian girl who adopts a small ugly "dog," whom she names Stitch. Stitch would be the perfect pet if he weren't in reality a genetic experiment who has escaped from an alien planet and crash-landed on Earth. Through her love, faith and unwavering belief in ohana, the Hawaiian concept of family, Lilo helps unlock Stitch's heart and gives him the ability to care for someone else. See also: Battle for Terra, E.T. the Extra-Terrestrial, The Iron Giant