]> git.etc.gen.nz Git - mythtv-epg-nz.git/commitdiff
Import from http://www.jsw.gen.nz/mythtv/do_mhegepgsnoop3.sh
authorAndrew Ruthven <andrew@etc.gen.nz>
Wed, 6 Jul 2022 06:12:14 +0000 (18:12 +1200)
committerAndrew Ruthven <andrew@etc.gen.nz>
Wed, 6 Jul 2022 06:12:14 +0000 (18:12 +1200)
bin/do_mhegepgsnoop

index 19f18c4af7ee38cbbf5c2c31670abcec85034394..587533eb5ac7702cc02023bc07f2f18423fd134c 100644 (file)
@@ -28,13 +28,26 @@ OUTPUT_FILE=${OUTPUT_FILE:-'/home/mythtv/.mythtv/freeview.xml'}
 # Force a specific location for finding the MythTV configuration.  If you get error
 # messages such as:
 #    Error accessing mythconverg database with Python bindings
+#    Cannot locate your home directory
 # then uncomment the next line below and adjust it to point to a directory containing
 # a valid config.xml for access to your backend.  It needs to be readable by the user
 # that is running this script.  There is usually one in:
 #    /etc/mythtv
 #    /home/<your mythfrontend user>/.mythtv
 #    /home/mythtv/.mythtv
-#MYTHCONFDIR=/etc/mythtv
+# Using /etc/mythtv is not recommended as the /etc/mythtv directory can then get
+# used for lots of temporary files and directories.
+#export MYTHCONFDIR=/home/mythtv/.mythtv
+
+# Alternatively, if you are running this script from root (eg using epg.service), then
+# you can create a /root/.mythtv/config.xml file, perhaps like this:
+# sudo su; mkdir /root/.mythtv; chown root:root /root.mythtv; cd /root/.mythtv; ln -s /etc/mythtv/config.xml; exit
+
+# If, after doing the abobe, you are still having problems with mhegepgsnoop.py using the
+# Python bindings to access the database, then remove the -p option from its command line and use this instead:
+# -m"-u <UserName> -p<Password>"
+# where the UserName and Password are taken from a working config.xml file.  Note that the spaces and lack of them
+# are significant in the -m option.  It will not work if you do not follow the above syntax exactly.
 
 retval=0
 
@@ -75,6 +88,7 @@ else
 
     chmod a+rw $OUTPUT_FILE
     mythfilldatabase --only-update-guide --sourceid $SOURCEID --file --xmlfile $OUTPUT_FILE
+    retval=$?
 fi
 
 exit $retval