Feature #4235
path to look for xmltv-util files
0%
Description
Tvh expect that xmltv-util (tv_grab_...) is installed in the normal /usr/bin dir, if not it can't be used.
It would be nice if there is a build switch to specify where it has to look for it.
At an ro filesystem like LibreELEC (maybe other distros too) there is no way to include xmltv-util without adding it directly to the ro image (update impossible etc ..). So it has to be placed into a writable path - but at the moment I see no way to achieve this (no symlinks!).
If you are not consider it for an inclusion, it would be helpful if you can point me to the line at the source that i can patch it my self.
best regards
History
Updated by Jaroslav Kysela over 7 years ago
It's enough to modify the PATH environment variable before the tvh binary is started.
Updated by C vH over 7 years ago
We played around with the path var but didn't get it working.
We set the path var (and checked that it is set at tvh start) to /some/path/ and copied the the xmltv stuff their (like it is at every buntu ..) but nothing get found.
LE:~ # ls /storage/.kodi/addons/service.tvheadend42/xmltvfiles
tv_grab_de tv_grab_es_laguiatv tv_grab_es_miguiatv tv_grab_eu_dotmedia tv_grab_eu_egon.PL tv_grab_eu_epgdata tv_grab_file
LE:~ # export PATH=$PATH:/storage/.kodi/addons/service.tvheadend42/xmltvfiles
LE:~ # echo $PATH
/usr/bin:/usr/sbin:/storage/.kodi/addons/service.tvheadend42/bin:/storage/.kodi/addons/service.tvheadend42/xmltvfiles
LE:~ # tvheadend42.start <- checked that the path var is correct (echo $path > file - directly before start of binary)
now we are not really sure if we miss their something or that it didn't work like expected
Updated by Jaroslav Kysela over 7 years ago
OK, to be more precise, the lookup in tvh is: Try to run 'tv_find_grabbers' and use the returned list, otherwise look for tv_grab_* binaries in PATH directories.
Perhaps, tv_find_grabbers does return a wrong or incomplete list on your platform.