将epg从openwebif导出到xmltv以与plex一起使用
OWi2Plex的Python项目详细描述
owi2plex
将epg从openwebif导出到xmltv以与plex一起使用
依赖关系
- Python2.7/3.7
- 需要安装以下Enigma2插件
- openwebif服务器插件
- hrtunerProxy插头
- plex(使用xmltv文件)具有高级订阅
安装
通过PIP
运行以下命令:
pip install owi2plex
克隆此回购协议
在本地克隆此存储库(建议您将其克隆到运行plex服务器的文件夹中,或者至少在该文件夹中可以通过网络装载/共享获取输出文件)。
使用以下命令安装需求:
pip install -r requirements.txt
用法
owi2plex --help
Usage: owi2plex [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.
-c, --continuous-numbering BOOLEAN Continuous numbering across bouquets.
-l, --list-bouquets Display a list of bouquets.
--help Show this message and exit.
示例
如果openwebif服务器在192.168.0.150:80中运行,没有身份验证,并且您希望将文件输出到c:\ tmp:
owi2plex -h 192.168.0.150 -o c:\\tmp\\epg.xml
如果您有一个名为tv的花束,并且您只想为该花束中的频道生成xmltv:
./owi2plex -b TV -h 192.168.0.150 -o /tmp/epg.xml
计划
目前,该脚本不处理调度,但您可以在Linux或Windows的任务调度程序中使用crontab。确保脚本在openwebif框刷新epg之后每天运行。
根据您的机器和网络速度,生成时间会有所不同,但对于我适度的设置,一束100多个频道的花束大约需要45秒。
享受