MythFillDatabase doesn't grab all of the data

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
MythicalManMonth
Newcomer
Posts: 5
Joined: Sun Sep 09, 2018 7:29 pm

MythFillDatabase doesn't grab all of the data

Post by MythicalManMonth » Tue Oct 02, 2018 11:56 pm

Short version: When I did a channel scan during installation, for some reason the tuner didn't find one channel. The next day I noticed that and re-scanned and it added the missing channel - but when mythfilldatabase runs, it add only two days of listing for that channel - tomorrow, and two weeks from now, leaving everything in between blank for this one channel:

Oct 2 10:10:41 ...: mythfilldatabase[4012]: C thread_unknown mythcommandlineparser.cpp:2619 (ConfigureLogging) mythfilldatabase version: fixes/29 [v29.1-38-gb9c5f8b]
.
.
.
Oct 2 10:10:42 ...mythfilldatabase[4012]: I ... filldata.cpp:570 (Run) Updating source #1 (Antenna) with grabber schedulesdirect1
Oct 2 10:10:42 ...mythfilldatabase[4012]: I ... filldata.cpp:584 (Run) Found 106 channels for source 1 which use grabber
Oct 2 10:10:42 ...mythfilldatabase[4012]: I ... filldata.cpp:738 (Run) Checking day @ offset 0, date: Tue Oct 2 2018
Oct 2 10:10:42 ...mythfilldatabase[4012]: N ... filldata.cpp:918 (Run) Data is already present for Tue Oct 2 2018, skipping
Oct 2 10:10:42 ...mythfilldatabase[4012]: I ... filldata.cpp:738 (Run) Checking day @ offset 1, date: Wed Oct 3 2018
Oct 2 10:10:42 ...mythfilldatabase[4012]: I ... filldata.cpp:747 (Run) Data Refresh always needed for tomorrow
Oct 2 10:10:42 ...mythfilldatabase[4012]: N ... filldata.cpp:896 (Run) Refreshing data for Wed Oct 3 2018
Oct 2 10:10:42 ...mythfilldatabase[4012]: I ... filldata.cpp:212 (GrabDDData) Retrieving datadirect data.
Oct 2 10:10:42 ...mythfilldatabase[4012]: I ... filldata.cpp:230 (GrabDDData) Grabbing data for Tue Oct 2 2018 offset 1
Oct 2 10:10:42 ...mythfilldatabase[4012]: I ... filldata.cpp:233 (GrabDDData) From 2018-10-03T00:00:00Z to 2018-10-04T00:00:00Z (UTC)

After grabbing data for tomorrow, it decides that data already exists for days 2 through 12, but it needs data for day 13:

Oct 2 10:11:03 ...mythfilldatabase[4012]: I ... filldata.cpp:738 (Run) Checking day @ offset 13, date: Mon Oct 15 2018
Oct 2 10:11:03 ...mythfilldatabase[4012]: I ... filldata.cpp:832 (Run) Data refresh needed because only 0 out of 106 channels have at least one program listed for day @ offset 13 from 8PM - midnight. Previous day had 105 channels with data in that time period.
Oct 2 10:11:03 ...mythfilldatabase[4012]: N ... filldata.cpp:896 (Run) Refreshing data for Mon Oct 15 2018
Oct 2 10:11:03 ...mythfilldatabase[4012]: I ... filldata.cpp:212 (GrabDDData) Retrieving datadirect data.
Oct 2 10:11:03 ...mythfilldatabase[4012]: I ... filldata.cpp:230 (GrabDDData) Grabbing data for Tue Oct 2 2018 offset 13
Oct 2 10:11:03 ...mythfilldatabase[4012]: I ... filldata.cpp:233 (GrabDDData) From 2018-10-15T00:00:00Z to 2018-10-16T00:00:00Z (UTC)

I would have reported this as a bug, but Tracq says that I am not logged in. I assume I need a different login, but I didn't find any link that said 'Register' or 'Create Account'.

User avatar
paulh
Developer
Posts: 352
Joined: Thu Feb 06, 2014 6:09 pm
Great Britain

Re: MythFillDatabase doesn't grab all of the data

Post by paulh » Wed Oct 03, 2018 9:00 am

I think this is by design to limit the amount of data being fetched it updates today to make sure we have up to date EPG data and tries to fetch any new data after the period the last run fetched.

Try adding the '--refresh 1' to update a particular day or '--refresh 0-13' to update a range of days in this example it will update all data for the next 2 weeks. etc. I think that will force an update regardless.

MythicalManMonth
Newcomer
Posts: 5
Joined: Sun Sep 09, 2018 7:29 pm

Re: MythFillDatabase doesn't grab all of the data

Post by MythicalManMonth » Thu Oct 04, 2018 12:24 am

Yes, that makes complete sense - unless of course one of the channels is missing data! Or perhaps all of the channels but one have no data - will mythfilldatabase still update only tomorrow and two weeks from now?

This obviously isn't a high-priority problem; there won't be many users who encounter this, and they will have guide data for tomorrow, and after two weeks the problem will fix itself. Still, I though I should record it. If one of the developers is fixing some other part of mythfilldatabase they may decide to fix this as well.

Post Reply