Skip to content

PajamaFrix/las-vegas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Las Vegas

Experimental Prevue/TV Guide Channel (Hollywood) listings parser with weather support. Currently for use with XMLTV files.

Python 3.9 is recommended. If you plan to run this on Windows XP, you will need a modified version of 3.9, which can be obtained here (not maintained by the developer of this script!): https://mega.nz/folder/KxExlAiC#L9rAQ5kTCtlHgZUwaxMpgw/folder/L8tC2QjB

weather.py requires the "Requests" Python library. You can install it with pip: pip install requests

Usage

usage: las_vegas.py [-h] [-i INPUT] [-o OUTPUT] [-c CHANNELS] [-p PROGRAMS] [-s]

Experimental Prevue Channel (Hollywood) listings parser with XMLTV.

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        XMLTV formatted XML file
  -o OUTPUT, --output OUTPUT
                        output SQL file. defaults to the same directory as XMLTV file
  -c CHANNELS, --channels CHANNELS
                        maximum number of channels to parse. (default is null)
  -p PROGRAMS, --programs PROGRAMS
                        maximum number of programs to parse per channel. (default is null)
  -s, --start           skip programs starting/airing before now

You will need to specify an input XMLTV file, optionally along with the number of channels and programs you want parsed (by default, all channels are parsed and 250 programs are parsed per channel. You can override this with -p all or a higher number):

The output file will be an SQL query that can then be transferred to a machine running Hollywood and injected into its database with osql -E -i /path/to/output.sql. (or injected thru another method, if there is one)

To-do

  • Testing with XMLTV schedules generated by other programs (only tested with ones created using mc2xml and zap2it-guideScraping)
  • "Permission denied" error when using -o (haven't been able to reproduce)
  • Figure out channel_type, source_type, and prog_type (among others)
  • Implementing remainder of the XMLTV schema
  • Alternate short names (for 1 and 2 sized listing blocks)
  • Channel and program overrides (i.e. for "message channels" and correcting channel names)
  • Handle parenthetical_time (times between h:mm and h:3m)
  • Clean-up (maybe a re-write)

About

Experimental Prevue/TV Guide Channel (Hollywood) listings parser to be used with XMLTV schedule files.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages