Manually download data

Post Reply
Scott
Posts: 2
Joined: Fri Aug 02, 2013 12:38 pm

Manually download data

Post by Scott » Fri Aug 02, 2013 12:42 pm

Is there a way I can manually download schedule data from the web? The mythtv has lost it's internet connection. I tried the raw data at https://www.schedulesdirect.org/getdata but when I added it with...

mythfilldatabase --update --file --sourceid 1 --xmlfile file.xml

...and...

mythfilldatabase --file --sourceid 1 --xmlfile file.xml

...both times it looked like it worked but the schedule data never updated.

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: Manually download data

Post by rkulagow » Sat Aug 03, 2013 9:31 am

viewtopic.php?f=6&t=295

has instructions for using the tv_grab_na_dd method of downloading data. That will create the complete XML that you need for mythfilldatabase.

"getdata" is just a partial view for troubleshooting.

Scott
Posts: 2
Joined: Fri Aug 02, 2013 12:38 pm

Re: Manually download data

Post by Scott » Tue Aug 06, 2013 9:39 am

I did that downloaded the data. Download was about 5 megs. Looked at the data, looked fine, 'file' showed it to be an xml file. I ran...

mythfilldatabase --update --file --sourceid 1 --xmlfile schedules.xml

...and...

mythfilldatabase --file --sourceid <sourceid> --xmlfile schedules.xml

It never updated, mythfilldatabase gave me this...

Code: Select all

2013-08-06 05:53:52.222033 C  mythfilldatabase version: fixes/0.26 [v0.26.0-37-g340b5d4] http://www.mythtv.org
2013-08-06 05:53:52.222048 C  Qt version: compile: 4.8.3, runtime: 4.8.4
2013-08-06 05:53:52.222052 N  Enabled verbose msgs:  general
2013-08-06 05:53:52.222059 N  Setting Log Level to LOG_INFO
2013-08-06 05:53:52.222190 I  Bypassing grabbers, reading directly from file
2013-08-06 05:53:52.222743 I  Setup Interrupt handler
2013-08-06 05:53:52.222750 I  Setup Terminated handler
2013-08-06 05:53:52.222755 I  Setup Segmentation fault handler
2013-08-06 05:53:52.222761 I  Setup Aborted handler
2013-08-06 05:53:52.222766 I  Setup Bus error handler
2013-08-06 05:53:52.222771 I  Setup Floating point exception handler
2013-08-06 05:53:52.222775 I  Setup Illegal instruction handler
2013-08-06 05:53:52.222782 I  Setup Real-time signal 0 handler
2013-08-06 05:53:52.222810 N  Using runtime prefix = /usr
2013-08-06 05:53:52.222819 N  Using configuration directory = /home/username/.mythtv
2013-08-06 05:53:52.222874 I  Assumed character encoding: en_US.UTF-8
2013-08-06 05:53:52.223124 N  Empty LocalHostName.
2013-08-06 05:53:52.223129 I  Using localhost value of localmachineshostname
2013-08-06 05:53:52.231661 I  Added logging to the console
2013-08-06 05:53:52.252202 N  Setting QT default locale to EN_US
2013-08-06 05:53:52.252286 I  Current locale EN_US
2013-08-06 05:53:52.252345 N  Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2013-08-06 05:53:52.262086 I  Loading en_us translation for module mythfrontend
2013-08-06 05:53:52.264557 I  Current MythTV Schema Version (DBSchemaVer): 1307
2013-08-06 05:53:52.467554 I  Added logging to mythlogserver at TCP:35327
2013-08-06 05:53:52.974046 I  IconData: Updating icons for sourceid: 1
2013-08-06 05:53:52.974582 I  No programs found in data.
2013-08-06 05:53:52.975718 I  Adjusting program database end times.
2013-08-06 05:53:53.036183 I      0 replacements made
2013-08-06 05:53:53.036192 I  Marking generic episodes.
2013-08-06 05:53:53.061723 I      Found 0
2013-08-06 05:53:53.061754 I  Extending non-unique programids with multiple parts.
2013-08-06 05:53:53.067847 I      Found 0
2013-08-06 05:53:53.067862 I  Marking repeats.
2013-08-06 05:53:53.077683 I      Found 0
2013-08-06 05:53:53.077690 I  Unmarking new episode rebroadcast repeats.
2013-08-06 05:53:53.086921 I      Found 0
2013-08-06 05:53:53.146394 I  Marking episode first showings.
2013-08-06 05:53:53.227283 I      Found 3212
2013-08-06 05:53:53.227289 I  Marking episode last showings.
2013-08-06 05:53:53.309645 I      Found 3205
2013-08-06 05:53:53.311213 I  
==============================================================
| Attempting to contact the master backend for rescheduling.  |
| If the master is not running, rescheduling will happen when |
| the master backend is restarted.                            |
===============================================================
2013-08-06 05:53:53.313451 I  MythCoreContext: Connecting to backend server: 192.168.1.132:6543 (try 1 of 1)
2013-08-06 05:53:53.314576 I  Using protocol version 75
2013-08-06 05:53:53.319239 N  mythfilldatabase run complete.
Same thing each time. mythbackend log follows...

Code: Select all

Aug  6 05:56:08 localmachinehostname mythlogserver: mythbackend[1723]: I ProcessRequest mainserver.cpp:1397 (HandleAnnounce) adding: localmachinehostname as a client (events: 1)
Aug  6 05:56:08 localmachinehostname mythlogserver: mythbackend[1723]: I Scheduler scheduler.cpp:2128 (HandleReschedule) Reschedule requested for MATCH 0 0 0 - MythFillDatabase
Aug  6 05:56:08 localmachinehostname mythlogserver: mythbackend[1723]: I Scheduler scheduler.cpp:2241 (HandleReschedule) Scheduled 6 items in 0.0 = 0.03 match + 0.00 check + 0.02 place
Aug  6 05:56:19 localmachinehostname mythlogserver: mythbackend[1723]: I ProcessRequest mainserver.cpp:1395 (HandleAnnounce) MainServer::ANN Monitor
Aug  6 05:56:19 localmachinehostname mythlogserver: mythbackend[1723]: I ProcessRequest mainserver.cpp:1397 (HandleAnnounce) adding: localmachinehostname as a client (events: 0)
Aug  6 05:56:19 localmachinehostname mythlogserver: mythbackend[1723]: I ProcessRequest mainserver.cpp:1395 (HandleAnnounce) MainServer::ANN Monitor
Aug  6 05:56:19 localmachinehostname mythlogserver: mythbackend[1723]: I ProcessRequest mainserver.cpp:1397 (HandleAnnounce) adding: localmachinehostname as a client (events: 1)
Aug  6 05:56:19 localmachinehostname mythlogserver: mythbackend[1723]: I Scheduler scheduler.cpp:2128 (HandleReschedule) Reschedule requested for MATCH 0 0 0 - MythFillDatabase
Aug  6 05:56:19 localmachinehostname mythlogserver: mythbackend[1723]: I Scheduler scheduler.cpp:2241 (HandleReschedule) Scheduled 6 items in 0.0 = 0.02 match + 0.00 check + 0.02 place
Aug  6 05:58:44 localmachinehostname mythlogserver: mythbackend[1723]: N Expire autoexpire.cpp:264 (CalcParams) AutoExpire: CalcParams(): Max required Free Space: 47.0 GB w/freq: 7 min
I'm not including the schedule xml file since I'm sure I'm prohibited by tos/copyright, but I have looked at it and it looks fine. Comes in at around 5 megs. I ran dos2unix on it, and diff did show it made multiple changes. I tried again, same result. i could see what changes they were. Any idea what I'm doing wrong? Thanks.

rkulagow
SD Staff
Posts: 915
Joined: Tue Aug 14, 2007 3:15 pm

Re: Manually download data

Post by rkulagow » Tue Aug 06, 2013 9:44 am

If you're able to download the data and it looks correct, then you'll need to ask on the mythtv-users mailing list.

Post Reply