For my workflow, I ran mythtv-setup as $USER and ran the tv_grab-zz_sdjon_sqlite setup files as mythtv (Jim A’s guide, step 24). Yes, I know of the Mythtv XMLTV Wiki warning about running mythtv-setup as $USER.
For step 26 of Jim A’s guide, “Create links for all the files created by XMLTV setup in /home/mythtv/.xmltv and /home/mythtv/.mythtv in /home/$USER …,” I did the following:
HARD LINK (not symlink) the database file to /home/$USER (allows mythfilldatabase to be run correctly by mythtv or $USER):
Code: Select all
sudo ln /home/mythtv/.xmltv/SchedulesDirect.DB /home/username/.xmltv/SchedulesDirect.DB
Code: Select all
cd /home/mythtv/.xmltv
sudo chmod 664 SchedulesDirect.DB
Code: Select all
cp /home/mythtv/.mythtv/XXXX.xmltv /home/username/.mythtv/XXXX.xmltv
Code: Select all
nano /home/username/.mythtv/XXXX.xmltv
Edit first line to reflect database=/home/username/.xmltv/SchedulesDirect.DB
Code: Select all
cd /home/username/.mythtv
Code: Select all
sudo chown username:username XXXX.xmltv
Code: Select all
sudo chmod 664 XXXX.xmltv
Optimize auto mythfilldatabase downloads by going into mythtv-setup -> General -> Program Schedule Downloading Options -> Automatically Update Program Listings -> Guide Data Arguments, and input the following two arguments: --no-allatonce --refresh 0-21
The argument “--no-allatonce” in conjunction with "-–refresh 0-21,” will acquire tomorrow and future days and will also update all changes to preexisting days, all with minimal memory usage. See #12758 patch post, Peter Bennett’s Comment 7 here: https://code.mythtv.org/trac/ticket/12758
Hope this helps.