Hello,
I’m using Enigma2 (OpenPLI 9.1) on a Zgemma H7C box (with the sources.xml source), and I would like to run the EPGImport process automatically every few hours via cron.
From the GUI, the import works perfectly. I can start it anytime from the plugin menu and it completes without issue.
However, I haven’t found a working way to trigger it from the command line.
I’ve tried the following:
-
/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/OfflineImport.py /etc/epgimport/sources.xml -
Running it via Python (
python3 -m Plugins.Extensions.EPGImport.OfflineImport ...) -
OpenWebif endpoints such as
/api/epgimportor/web/runplugin?plugin=EPGImport -
Even
e2python, but none worked; OfflineImport fails with “attempted relative import with no known parent package”.
The reason I would like to run EPGImport every 3–4 hours is that my IPTV provider only supplies EPG data a few hours in advance for many channels.
Because of this, a daily or 12-hour import schedule is not sufficient to keep the guide populated.
Is there any official or supported way to trigger EPGImport from a cron job or command line (without restarting Enigma2)?
Or could OfflineImport be adjusted to work standalone with Enigma2’s environment?
Thank you very much for your help and for maintaining such a great plugin!
Thank you!
