Good suggestion. I will post in the Manjaro forums.
Looking at the maintainer's notes, they deliberately changed where and how tvh runs.
??
TVHeadend will be installed to /var/lib/tvheadend instead of /usr/share/tvheadend
Package will create the system user tvheadend (member of group video) with config files stored in /etc/tvheadend, it will not use a home directory anymore.
By using sysusers.d and tmpfiles.d permissions should be easier to manage.
tvheadend.service now includes -C by default.
Added some missing deps
??
So I su and copied the files/directories to a newly created directory,
/var/lib/tvheadend/zap2epg/
and edited the zap2epg file to point to this new directory.
It shows success in the log!
2023-02-25 14:47:56.003 spawn: Executing "/usr/bin/tv_grab_zap2epg"
2023-02-25 14:47:56.100 spawn: Traceback (most recent call last):
2023-02-25 14:47:56.100 spawn: File "/var/lib/tvheadend/zap2epg/script.module.zap2epg/zap2epg.py", line 813, in
2023-02-25 14:47:56.101 spawn: logging.basicConfig(filename=log, filemode='w', format='%(asctime)s %(message)s', datefmt='%Y/%m/%d %H:%M:%S', level=logging.DEBUG)
2023-02-25 14:47:56.101 spawn: File "/usr/lib/python3.10/logging/__init__.py", line 2040, in basicConfig
2023-02-25 14:47:56.101 spawn: h = FileHandler(filename, mode,
2023-02-25 14:47:56.101 spawn: File "/usr/lib/python3.10/logging/__init__.py", line 1169, in __init__
2023-02-25 14:47:56.101 spawn: StreamHandler.__init__(self, self._open())
2023-02-25 14:47:56.101 spawn: File "/usr/lib/python3.10/logging/__init__.py", line 1201, in _open
2023-02-25 14:47:56.102 spawn: return open_func(self.baseFilename, self.mode,
2023-02-25 14:47:56.102 spawn: PermissionError: [Errno 13] Permission denied: '/var/lib/tvheadend/zap2epg/script.module.zap2epg/zap2epg.log'
2023-02-25 14:47:56.227 xmltv: /usr/bin/tv_grab_zap2epg: grab took 0 seconds
2023-02-25 14:47:56.922 xmltv: /usr/bin/tv_grab_zap2epg: parse took 0 seconds
2023-02-25 14:47:56.922 xmltv: /usr/bin/tv_grab_zap2epg: channels tot= 69 new= 0 mod= 0
2023-02-25 14:47:56.922 xmltv: /usr/bin/tv_grab_zap2epg: brands tot= 0 new= 0 mod= 0
2023-02-25 14:47:56.922 xmltv: /usr/bin/tv_grab_zap2epg: seasons tot=13193 new= 1364 mod=11829
2023-02-25 14:47:56.922 xmltv: /usr/bin/tv_grab_zap2epg: episodes tot= 8399 new= 963 mod= 7436
2023-02-25 14:47:56.922 xmltv: /usr/bin/tv_grab_zap2epg: broadcasts tot=13568 new= 1358 mod= 2131
2023-02-25 14:47:56.922 xmltv: /usr/bin/tv_grab_zap2epg: scheduling save epg timer
There is only 1 permission message now about writing to the log that
chmod
won't solve. I'll miss having a log but I'm going to turn the other way and ignore it.
Oddly, the internal grabber is trying to run every 2 minutes, instead of the default cron setting. Topic for another day.