Exporter of EPG from OpenWebif to XMLTV to use with Plex
Project description
# owi2plex
Exporter of EPG from OpenWebif to XMLTV to use with Plex
## Dependencies
* Python 3.7
* OpenWebif Server (Such as Enigma2 box, OpenVix with OpenWebif plugin, ...)
* Plex (to use the XMLTV file)
## Installation
Clone this repository locally (suggest you do into a folder where your Plex server runs or at least where it can get the output file via a network mount/share).
Install the requirements with:
`pip install -r requirements.txt`
## Usage
```
python owi2plex.py --help
Usage: owi2plex.py [OPTIONS]
Options:
-b, --bouquet TEXT The name of the bouquet to parse. If not specified
parse all bouquets.
-u, --username TEXT OpenWebIf Username
-p, --password TEXT OpenWebIf Password
-h, --host TEXT OpenWebIf Host
-P, --port INTEGER OpenWebIf Port
-o, --output-file TEXT Output file
-l, --list-bouquets Display a list of bouquets.
--help Show this message and exit.
```
## Examples
If OpenWebif server is running in 192.168.0.1:80 with no auth and you want to output the file to /tmp:
`python owi2plex.py -h 192.168.0.150 -o /tmp/epg.xml`
If you have a bouquet called TV and you only want to generate the XMLTV for the channels in that bouquet:
`python owi2plex.py -b TV -h 192.168.0.150 -o /tmp/epg.xml`
## Scheduling
For now the script doesn't handle scheduling but you can use crontab instead. Ensure that the script runs daily *after* your OpenWebif box has refreshed the EPG.
Depending on your machine and network speed the generation time varies but for my modest set-up it takes about 45 seconds for a bouquet with 100+ channels.
Enjoy
Exporter of EPG from OpenWebif to XMLTV to use with Plex
## Dependencies
* Python 3.7
* OpenWebif Server (Such as Enigma2 box, OpenVix with OpenWebif plugin, ...)
* Plex (to use the XMLTV file)
## Installation
Clone this repository locally (suggest you do into a folder where your Plex server runs or at least where it can get the output file via a network mount/share).
Install the requirements with:
`pip install -r requirements.txt`
## Usage
```
python owi2plex.py --help
Usage: owi2plex.py [OPTIONS]
Options:
-b, --bouquet TEXT The name of the bouquet to parse. If not specified
parse all bouquets.
-u, --username TEXT OpenWebIf Username
-p, --password TEXT OpenWebIf Password
-h, --host TEXT OpenWebIf Host
-P, --port INTEGER OpenWebIf Port
-o, --output-file TEXT Output file
-l, --list-bouquets Display a list of bouquets.
--help Show this message and exit.
```
## Examples
If OpenWebif server is running in 192.168.0.1:80 with no auth and you want to output the file to /tmp:
`python owi2plex.py -h 192.168.0.150 -o /tmp/epg.xml`
If you have a bouquet called TV and you only want to generate the XMLTV for the channels in that bouquet:
`python owi2plex.py -b TV -h 192.168.0.150 -o /tmp/epg.xml`
## Scheduling
For now the script doesn't handle scheduling but you can use crontab instead. Ensure that the script runs daily *after* your OpenWebif box has refreshed the EPG.
Depending on your machine and network speed the generation time varies but for my modest set-up it takes about 45 seconds for a bouquet with 100+ channels.
Enjoy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
OWi2Plex-0.1a0.tar.gz
(5.4 kB
view hashes)
Built Distribution
OWi2Plex-0.1a0-py3-none-any.whl
(11.4 kB
view hashes)