[mythtv-users] Still setting up XMLTV

Bill Meek keemllib at gmail.com
Sat Jul 10 21:26:39 UTC 2021


On 7/10/21 3:43 PM, Lloyd Chittenden wrote:
> I just realized that buried deep on the XMLTV wiki page is information about converting from DataDirect to XMLTV.  It talks about deleting and
> re-adding your channels.  I guess I need to update my xmltvids?  Would that cause this?
> 
> Lloyd
> 
> On Sat, Jul 10, 2021 at 2:23 PM Lloyd Chittenden <lloydc23 at gmail.com <mailto:lloydc23 at gmail.com>> wrote:
> 
>     Here's the result of that
> 
>     mythtv at Linux-Desktop:~/.xmltv$ mythfilldatabase -v xmltv
>     2021-07-10 14:18:52.214375 C  mythfilldatabase version: fixes/31 [v31.0-v31.0] www.mythtv.org <http://www.mythtv.org>
>     2021-07-10 14:18:52.214387 C  Qt version: compile: 5.12.5, runtime: 5.12.8
>     2021-07-10 14:18:52.215019 I  Ubuntu 20.04.2 LTS (x86_64)
>     2021-07-10 14:18:52.215029 N  Enabled verbose msgs:  general xmltv
>     2021-07-10 14:18:52.215042 N  Setting Log Level to LOG_INFO
>     2021-07-10 14:18:52.225392 I  Added logging to the console
>     2021-07-10 14:18:52.225655 I  Setup Interrupt handler
>     2021-07-10 14:18:52.225661 I  Setup Terminated handler
>     2021-07-10 14:18:52.225665 I  Setup Segmentation fault handler
>     2021-07-10 14:18:52.225671 I  Setup Aborted handler
>     2021-07-10 14:18:52.225675 I  Setup Bus error handler
>     2021-07-10 14:18:52.225680 I  Setup Floating point exception handler
>     2021-07-10 14:18:52.225684 I  Setup Illegal instruction handler
>     2021-07-10 14:18:52.225691 I  Setup Real-time signal 0 handler
>     2021-07-10 14:18:52.225695 I  Setup Hangup handler
>     2021-07-10 14:18:52.225775 N  Using runtime prefix = /usr
>     2021-07-10 14:18:52.225778 N  Using configuration directory = /home/mythtv/.mythtv
>     2021-07-10 14:18:52.225802 I  Assumed character encoding: en_US.UTF-8
>     2021-07-10 14:18:52.226663 I  Empty LocalHostName. This is typical.
>     2021-07-10 14:18:52.226669 I  Using a profile name of: 'Linux-Desktop' (Usually the same as this host's name.)
>     2021-07-10 14:18:52.226711 I  Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
>     2021-07-10 14:18:53.243994 N  Setting QT default locale to en_US
>     2021-07-10 14:18:53.244002 I  Current locale en_US
>     2021-07-10 14:18:53.244541 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
>     2021-07-10 14:18:53.257733 I  PowerDBus: Added UPower.Device '/org/freedesktop/UPower/devices/mouse_hidpp_battery_2'
>     2021-07-10 14:18:53.257959 I  Power: On AC power
>     2021-07-10 14:18:53.269712 I  Power: Supported actions: Suspend,Restart,Shutdown
>     2021-07-10 14:18:53.270857 I  Loading en_us translation for module mythfrontend
>     2021-07-10 14:18:53.271644 I  Current MythTV Schema Version (DBSchemaVer): 1361
>     2021-07-10 14:18:53.272994 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543 <http://127.0.0.1:6543>
>     (try 1 of 1)
>     2021-07-10 14:18:53.274116 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
>     2021-07-10 14:18:53.274273 I  Opening blocking connection to master backend
>     2021-07-10 14:18:53.316907 I  Updating source #1 (SD) with grabber tv_grab_zz_sdjson_sqlite
>     2021-07-10 14:18:53.317901 I  Found 279 channels for source 1 which use grabber
>     2021-07-10 14:18:53.318135 I  Starting IO manager (read)
>     2021-07-10 14:18:53.318123 I  Starting process signal handler
>     2021-07-10 14:18:53.318937 I  Starting IO manager (write)
>     2021-07-10 14:18:53.319112 I  Starting process manager
>     2021-07-10 14:18:54.427104 I  Grabber has capabilities: baseline manualconfig preferredmethod lineups apiconfig
>     2021-07-10 14:18:55.027895 I  Grabber prefers method: allatonce
>     2021-07-10 14:18:55.029611 I  XMLTV config file is: /home/mythtv/.mythtv/SD.xmltv
>     2021-07-10 14:18:55.031241 I  Grabber Command: nice tv_grab_zz_sdjson_sqlite --config-file '/home/mythtv/.mythtv/SD.xmltv' --output
>     /tmp/mythLEK5YD
>     2021-07-10 14:18:55.031245 I  ----------------- Start of XMLTV output -----------------
>     2021-07-10 14:18:55.728868 I  ------------------ End of XMLTV output ------------------
>     2021-07-10 14:18:55.729691 E  FillData: XMLTV grabber returned error code 1
>     2021-07-10 14:18:56.330185 E  Error in 1:1: unexpected end of file
>     2021-07-10 14:18:56.363482 I  Cardutil: HDHomeRun Cablecard Present.
>     2021-07-10 14:18:56.383412 I  Cardutil: HDHomeRun Cablecard Present.
>     2021-07-10 14:18:56.402275 I  Cardutil: HDHomeRun Cablecard Present.
>     2021-07-10 14:18:56.403357 I  No programs found in data.
>     2021-07-10 14:18:56.445860 E  Failed to fetch some program info
>     2021-07-10 14:18:56.445884 I  Adjusting program database end times.
>     2021-07-10 14:18:56.488148 I      0 replacements made
>     2021-07-10 14:18:56.488153 I  Marking generic episodes.
>     2021-07-10 14:18:56.529461 I      Found 0
>     2021-07-10 14:18:56.529465 I  Extending non-unique programids with multiple parts.
>     2021-07-10 14:18:56.571466 I      Found 0
>     2021-07-10 14:18:56.571472 I  Fixing missing original airdates.
>     2021-07-10 14:18:56.654205 I      Found 0 with programids
>     2021-07-10 14:18:56.742291 I      Found 0 without programids
>     2021-07-10 14:18:56.742296 I  Marking repeats.
>     2021-07-10 14:18:56.743185 I      Found 0
>     2021-07-10 14:18:56.743188 I  Unmarking new episode rebroadcast repeats.
>     2021-07-10 14:18:56.743416 I      Found 0
>     2021-07-10 14:18:56.785621 I  Marking episode first showings.
>     2021-07-10 14:18:56.951084 I      Found 0
>     2021-07-10 14:18:56.951090 I  Marking episode last showings.
>     2021-07-10 14:18:57.118370 I      Found 0
>     2021-07-10 14:18:57.161178 I  
>     ===============================================================
>     | Attempting to contact the master backend for rescheduling.  |
>     | If the master is not running, rescheduling will happen when |
>     | the master backend is restarted.                            |
>     ===============================================================
>     2021-07-10 14:18:57.161688 N  mythfilldatabase run complete.
>     2021-07-10 14:18:57.161741 I  PowerDBus: Closing interfaces
>     2021-07-10 14:18:57.161948 I  Waiting for threads to exit.
>     2021-07-10 14:18:57.163956 I  Exiting
> 
>     On Sat, Jul 10, 2021 at 1:41 PM Bill Meek <keemllib at gmail.com <mailto:keemllib at gmail.com>> wrote:
> 
>         On 7/10/21 2:06 PM, Lloyd Chittenden wrote:
>         > I made some more progress setting up my new XMLTV grabber.  I think I have my config file and my database set up.  Mythfilldatabase is
>         still not
>         > working.  When I run I get this back, I get this back now:
>         >
>         > mythtv at Linux-Desktop:~/.xmltv$ mythfilldatabase
>         > 2021-07-10 12:52:30.978515 C  mythfilldatabase version: fixes/31 [v31.0-v31.0] www.mythtv.org <http://www.mythtv.org>
>         <http://www.mythtv.org <http://www.mythtv.org>>
>         > 2021-07-10 12:52:30.978527 C  Qt version: compile: 5.12.5, runtime: 5.12.8
>         > 2021-07-10 12:52:30.978725 I  Ubuntu 20.04.2 LTS (x86_64)
>         > 2021-07-10 12:52:30.978730 N  Enabled verbose msgs:  general
>         > 2021-07-10 12:52:30.978740 N  Setting Log Level to LOG_INFO
>         > 2021-07-10 12:52:30.991912 I  Added logging to the console
>         > 2021-07-10 12:52:30.992199 I  Setup Interrupt handler
>         > 2021-07-10 12:52:30.992205 I  Setup Terminated handler
>         > 2021-07-10 12:52:30.992211 I  Setup Segmentation fault handler
>         > 2021-07-10 12:52:30.992215 I  Setup Aborted handler
>         > 2021-07-10 12:52:30.992219 I  Setup Bus error handler
>         > 2021-07-10 12:52:30.992225 I  Setup Floating point exception handler
>         > 2021-07-10 12:52:30.992229 I  Setup Illegal instruction handler
>         > 2021-07-10 12:52:30.992236 I  Setup Real-time signal 0 handler
>         > 2021-07-10 12:52:30.992240 I  Setup Hangup handler
>         > 2021-07-10 12:52:30.992316 N  Using runtime prefix = /usr
>         > 2021-07-10 12:52:30.992319 N  Using configuration directory = /home/mythtv/.mythtv
>         > 2021-07-10 12:52:30.992344 I  Assumed character encoding: en_US.UTF-8
>         > 2021-07-10 12:52:30.992788 I  Empty LocalHostName. This is typical.
>         > 2021-07-10 12:52:30.992795 I  Using a profile name of: 'Linux-Desktop' (Usually the same as this host's name.)
>         > 2021-07-10 12:52:30.992837 I  Start up testing connections. DB localhost, BE , attempt 0, status dbAwake, Delay: 2000
>         > 2021-07-10 12:52:32.007731 N  Setting QT default locale to en_US
>         > 2021-07-10 12:52:32.007740 I  Current locale en_US
>         > 2021-07-10 12:52:32.007951 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
>         > 2021-07-10 12:52:32.021271 I  PowerDBus: Added UPower.Device '/org/freedesktop/UPower/devices/mouse_hidpp_battery_2'
>         > 2021-07-10 12:52:32.021454 I  Power: On AC power
>         > 2021-07-10 12:52:32.033397 I  Power: Supported actions: Suspend,Restart,Shutdown
>         > 2021-07-10 12:52:32.034224 I  Loading en_us translation for module mythfrontend
>         > 2021-07-10 12:52:32.035030 I  Current MythTV Schema Version (DBSchemaVer): 1361
>         > 2021-07-10 12:52:32.036627 I  MythCoreContext::ConnectCommandSocket(): Connecting to backend server: 127.0.0.1:6543
>         <http://127.0.0.1:6543> <http://127.0.0.1:6543 <http://127.0.0.1:6543>> (try
>         > 1 of 1)
>         > 2021-07-10 12:52:32.038216 I  MythCoreContext::CheckProtoVersion(): Using protocol version 91 BuzzOff
>         > 2021-07-10 12:52:32.038374 I  Opening blocking connection to master backend
>         > 2021-07-10 12:52:32.081147 I  Updating source #1 (SD) with grabber tv_grab_zz_sdjson_sqlite
>         > 2021-07-10 12:52:32.082219 I  Found 279 channels for source 1 which use grabber
>         > 2021-07-10 12:52:32.082461 I  Starting IO manager (read)
>         > 2021-07-10 12:52:32.082449 I  Starting process signal handler
>         > 2021-07-10 12:52:32.083229 I  Starting IO manager (write)
>         > 2021-07-10 12:52:32.083385 I  Starting process manager
>         > 2021-07-10 12:52:32.683420 I  Grabber has capabilities: baseline manualconfig preferredmethod lineups apiconfig
>         > 2021-07-10 12:52:33.338342 I  Grabber prefers method: allatonce
>         > 2021-07-10 12:52:33.338855 I  XMLTV config file is: /home/mythtv/.mythtv/SD.xmltv
>         > 2021-07-10 12:52:34.051189 E  FillData: XMLTV grabber returned error code 1
>         > 2021-07-10 12:52:34.400985 E  Error in 1:1: unexpected end of file
>         > 2021-07-10 12:52:34.430104 I  Cardutil: HDHomeRun Cablecard Present.
>         > 2021-07-10 12:52:34.449013 I  Cardutil: HDHomeRun Cablecard Present.
>         > 2021-07-10 12:52:34.467689 I  Cardutil: HDHomeRun Cablecard Present.
>         > 2021-07-10 12:52:34.468362 I  No programs found in data.
>         > 2021-07-10 12:52:34.509654 E  Failed to fetch some program info
>         > 2021-07-10 12:52:34.509679 I  Adjusting program database end times.
>         > 2021-07-10 12:52:34.551841 I      0 replacements made
>         > 2021-07-10 12:52:34.551846 I  Marking generic episodes.
>         > 2021-07-10 12:52:34.593770 I      Found 0
>         > 2021-07-10 12:52:34.593776 I  Extending non-unique programids with multiple parts.
>         > 2021-07-10 12:52:34.635569 I      Found 0
>         > 2021-07-10 12:52:34.635574 I  Fixing missing original airdates.
>         > 2021-07-10 12:52:34.718546 I      Found 0 with programids
>         > 2021-07-10 12:52:34.801869 I      Found 0 without programids
>         > 2021-07-10 12:52:34.801874 I  Marking repeats.
>         > 2021-07-10 12:52:34.802978 I      Found 0
>         > 2021-07-10 12:52:34.802982 I  Unmarking new episode rebroadcast repeats.
>         > 2021-07-10 12:52:34.803122 I      Found 0
>         > 2021-07-10 12:52:34.844810 I  Marking episode first showings.
>         > 2021-07-10 12:52:35.014316 I      Found 0
>         > 2021-07-10 12:52:35.014326 I  Marking episode last showings.
>         > 2021-07-10 12:52:35.190043 I      Found 0
>         > 2021-07-10 12:52:35.234908 I  
>         > ===============================================================
>         > | Attempting to contact the master backend for rescheduling.  |
>         > | If the master is not running, rescheduling will happen when |
>         > | the master backend is restarted.                            |
>         > ===============================================================
>         > 2021-07-10 12:52:35.235438 N  mythfilldatabase run complete.
>         > 2021-07-10 12:52:35.235493 I  PowerDBus: Closing interfaces
>         > 2021-07-10 12:52:35.236767 I  Waiting for threads to exit.
>         > 2021-07-10 12:52:35.236989 I  Exiting
>         >
>         > Does anyone have any idea what is wrong?
>         >
>         > Lloyd
> 
>         Hi, if you have v31 up to date, then run: mythfilldatabase -v xmltv
> 
>         There may be more clues in the output. I'm assuming that XMLTV was
>         setup by user mythtv. That would say that under your own user, there
>         is no .mythtv/SD.xmltv file or .xmltv/SchedulesDirect.DB.
> 
>         The line: ... XMLTV config file is: /home/mythtv/.mythtv/SD.xmltv line above
>         looks good. And, it's being run as user mythtv, also good.
> 
>           https://forum.mythtv.org/viewtopic.php?f=36&t=3480&start=15#p19508 <https://forum.mythtv.org/viewtopic.php?f=36&t=3480&start=15#p19508>
> 
>         -- 
>         Bill

If the existing XMLTVIDs in the MythTV DB haven't been converted:

One option is to create new video sources. I never tried this.
And I converted ages ago.

My choice was a Python script: https://pastebin.com/TkMPtdN9

Read the comments at the top. You'll see it can be run without
making any changes just to see what it would do.

-- 
Bill


More information about the mythtv-users mailing list