Skip to content

primaeval/sd2xmltv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sd2xmltv

sd2xmltv is an application written in Python to convert Schedules Direct (schedulesdirect.org) TV schedules JSON feed into an xmltv format. This application was written primarily to facilitate importing TV schedules into tvheadend with Kodi (XBMC) as a frontend. While the primary target is tvheadend, the output file should work in any application which can parse xmltv.xml files.

Show descriptions are massaged to display like so:

"Simprovised" • Series; New; S27E21; TVPG • Homer embarrasses himself while trying to read a speech at work, then turns to improv comedy to regain his confidence for public speaking; Marge decides to rebuild Bart's treehouse.

"The Status Quo Combustion" • Series; 2014-05-15; S7E24; TVPG • Faced with an uncertain future, Sheldon considers a major change; Emily and Raj decide to take things to the next level.

Feature Film; 1988; PG; ***½ • After a wish turns 12-year-old Josh Baskin (David Moscow) into a 30-year-old man (Tom Hanks), he heads to New York City and gets a low-level job at MacMillen Toy Company. A chance encounter with the owner (Robert Loggia) of the company leads to a promotion testing new toys. Soon a fellow employee, Susan Lawrence (Elizabeth Perkins), takes a romantic interest in Josh. However, the pressure of living as an adult begins to overwhelm him, and he longs to return to his simple, former life as a boy. • See also: Elf, 13 Going on 30, Freaky Friday

"Pittsburgh Penguins at Washington Capitals" • Sports event; Live; E5578 • Alex Ovechkin and the Captials look to keep their playoff hopes alive against the Penguins in game 5 action. In game 4, Patric Hornqvist scored the overtime winner and Pittsburgh defeated Washington 3-2, the Pens first playoff OT win since 2013.

Installation

For Kodi addon instructions, see README in the /kodi folder.

TODO: Describe the installation process

Usage

For Kodi addon instructions, see README in the /kodi folder.

To create an xmltv.xml file with your current Schedules Direct lineup:

./sd2xmltv.py --username sdusername --password sdpassword [--output ./xmltv.xml] [--days 14] [--hdhomerun discover|ip]

To manage your Schedules Direct lineup:

./sd2xmltv.py --username sdusername --password sdpassword --manage

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

TODO: Write history

Credits

TODO: Write credits

License

See LICENSE file.

About

A Schedules Direct to xmltv converter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.9%
  • Shell 3.1%