issue with schedulesdirect setup

Added by bob 808 4 months ago

I am trying to add schedulesdirect EPG to my setup - I am using the tv_grab_zz_sdjson option. I have run with --configure and it works from the command line ok. The error I get is

Cannot open /home/_<user>_/.xmltv/tv_grab_zz_sdjson.cache for read/write.

I am not sure what I have done wrong here, the conf file is in /home/hts/.xmltv and its being read, but it is trying to use the file from my own username folder not the hts one?

Can anyone help, I am sure this is simple but its putting me round in circles right now.


Replies (2)

RE: issue with schedulesdirect setup - Added by Em Smith 4 months ago

I'd recommend the tv_grab_zz_sdjson_sqlite since I read it is faster than the non-sqlite version.

Who are you running the command as? You should probably run it as your hts user.

Perhaps something like this sequence of commands:

bob$ sudo -s
root# exec su - hts
hts$ tv_grab_zz_sdson_sqlite --configure

RE: issue with schedulesdirect setup - Added by Robert Cameron 4 months ago

If your hts user does not have an actual login shell, that command won't work. Try:

sudo su -s perl hts -c 'tv_grab_zz_sdjson --configure'

That ought to achieve the same, regardless of whether the hts user has a login shell.