Zap2xml for ATSC in OpenELEC
No worries on the confusion.  The way I built the original process is to save the downloaded data files.  So - let's use the example of March 3rd.  If you are set to download 14 days data at 3am...the system first checks to see if you've already downloaded files for March 3rd at 3am until March 17th at 3am.  Since you have it set for once a day, on March 3rd it downloaded all those files (in 3 hour increments - that's why there are so many files).  Now on March 4th, it runs at 3am and looks for files for March 4th at 3am until March 18th at 3am.  Since you already have the March 3rd through March 17th data downloaded, it only downloads the new March 17th at 3am to March 18th at 3am data (1 day).  That's how it saves bandwidth - by only downloading the new data since the last download.

However - this means that on any given day, your information is 14 days old.  Which has been an issue for some shows.  So the new function, using the example above with the new setting "number of days to delete cache" set for 1 day, on March 4th at 3am, the system check first deletes any cached files for March 4th 3am through March 5th at 3am.  Then it runs as normal, first looking for cached files for March 4th 3am through March 18th at 3am.  Since it doesn't find the files for March 4th 3am through March 5th at 3am and it also doesn't find the files for March 17th at 3am to March 18th at 3am (since that data didn't exist when it ran on March 3rd) - it just downloads those 2 days of data.

I realize this was a bit confusing because of the 3am reference - but I hope it makes sense.

You can also think of it like this.
Starting from a fresh install using the old system with number of download days set to 14: 

On day 1 - it downloads the following days: 1,2,3,4,5,6,7,8,9,10,11,12,13,14
On day 2 - it downloads the following days: 15
On day 3 - it downloads the following days: 16
...
On day 13 - it downloads the following days: 27
On day 14 - it downloads the following days: 28

But the data for 14 is 14 days old (it was downloaded on day 1 and never refreshed. Day 15 data is 13 days old, Day 16 is 12 days old, etc)

With the new system set for with number of download days set to 14 and number of days to delete cache set to 1:
On day 1 - it downloads the following days: 1,2,3,4,5,6,7,8,9,10,11,12,13,14
On day 2 - it downloads the following days: 2,15
On day 3 - it downloads the following days: 3,16
...
On day 13 - it downloads the following days: 13,27
On day 14 - it downloads the following days: 14,28

Now the data your viewing for day 14 is less than 1 day old (it was downloaded on the last run. Day 15 data is still 13 days old, Day 16 is still 12 days old, etc)

Maybe this helped clarify??
Current Kodi addon projects: zap2epg, sd4tvh and tvh2kodi (tvh config from inside Kodi)
Testing ATSC single and dual tuners on RPi3 and the occasional s905 box
If you like my work you can buy me a coffee!
Reply


Messages In This Thread
Zap2xml for ATSC in OpenELEC - by robca - 2016-04-01, 19:58
RE: Zap2xml for ATSC in OpenELEC - by robca - 2016-04-25, 02:11
RE: Zap2xml for ATSC in OpenELEC - by brohawk - 2016-04-27, 19:20
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2016-07-20, 14:27
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2016-07-21, 18:51
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-08-21, 21:25
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-08-21, 22:47
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-08-21, 23:41
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-08-22, 00:40
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-08-22, 02:55
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-08-22, 17:19
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-10-08, 16:53
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-10-08, 18:16
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 16:27
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-10-25, 04:39
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-10-26, 00:53
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 16:38
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 16:55
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 17:03
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 18:15
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2016-12-15, 21:42
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2016-11-10, 06:53
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2016-11-11, 15:30
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2016-11-12, 04:57
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2016-12-15, 23:14
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2017-03-07, 23:33
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2017-03-10, 02:26
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-27, 01:57
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-27, 06:12
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-27, 07:11
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-27, 07:14
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-28, 03:13
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-28, 23:50
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-29, 06:08
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-05-02, 18:33
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-05-02, 19:41
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-12, 23:34
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-13, 03:25
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-13, 15:28
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-13, 15:34
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-15, 01:22
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-15, 13:27
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-15, 19:18
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-17, 14:53
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-16, 16:43
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-19, 03:24
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-22, 14:15
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-07-07, 14:43
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-26, 01:31
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-26, 05:20
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-26, 19:06
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-26, 20:56
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-27, 01:08
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-04, 17:52
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-06, 16:15
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-07, 00:22
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-07, 16:08
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-07, 17:30
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-07, 18:32
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-09, 14:36
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 01:03
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 01:15
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 03:22
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 03:25
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 14:03
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 16:41
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 21:37
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-13, 04:37
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-13, 15:28
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-13, 20:56
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-13, 21:25
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-14, 01:09
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 14:29
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 16:25
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 16:36
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 17:28
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 17:46
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 18:24
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 22:57
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-22, 15:55
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-23, 16:24
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-23, 20:35
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-26, 21:37
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-27, 00:07
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-28, 03:43
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-28, 21:24
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-29, 01:40
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-30, 17:34
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-30, 18:41
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-30, 22:30
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-31, 00:33
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-31, 04:20
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-31, 18:17
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-02, 17:30
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-03, 18:38
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-04, 21:12
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-06, 17:04
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-06, 23:21
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-07, 02:11
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-08, 04:23
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-09, 01:27
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-10, 17:58
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-15, 02:49
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-21, 01:28
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-23, 03:03
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-23, 19:55
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-09-23, 16:06
RE: Zap2xml for ATSC in OpenELEC - by snapple - 2017-09-28, 21:00
RE: Zap2xml for ATSC in OpenELEC - by snapple - 2017-09-28, 21:30
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-06, 19:36
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-08, 23:02
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-09, 18:51
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-10, 17:50
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-11, 18:22
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-11, 21:49
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-14, 23:49
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-24, 23:26
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-26, 02:58
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-10-30, 15:13
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-31, 17:00
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-01, 06:11
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-01, 18:45
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-02, 02:17
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-05, 23:29
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-02, 17:25
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-08, 04:07
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-08, 18:10
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-08, 19:35
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-09, 02:38
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-09, 17:36
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-09, 19:41
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-10, 03:42
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-10, 18:33
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-12, 04:02
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-12, 23:55
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-13, 01:29
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-13, 18:14
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-14, 08:13
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-15, 01:54
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-15, 22:21
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-15, 02:35
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-16, 18:23
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-16, 21:46
RE: Zap2xml for ATSC in OpenELEC - by Mardy - 2017-11-19, 05:09
RE: Zap2xml for ATSC in OpenELEC - by Mardy - 2017-11-19, 15:39
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2017-11-22, 02:20
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2017-11-22, 05:12
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-24, 18:28
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-26, 04:00
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-26, 21:16
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-02, 00:13
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 04:43
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 17:41
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 19:03
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 21:11
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 23:00
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-04, 17:51
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-04, 17:53
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-05, 07:44
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-05, 16:27
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-07, 23:44
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-14, 01:51
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-15, 19:15
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-15, 23:08
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-16, 22:53
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-18, 18:49
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-19, 00:14
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-20, 04:20
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-18, 18:17
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2018-01-21, 21:10
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2018-01-22, 15:56
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-22, 18:52
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-22, 19:54
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-22, 22:52
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-23, 17:39
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-23, 18:16
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-02-15, 19:27
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-02-17, 00:45
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-03-18, 22:13
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-03-19, 03:12
RE: Zap2xml for ATSC in OpenELEC - by MB32 - 2018-03-21, 06:04
RE: Zap2xml for ATSC in OpenELEC - by MB32 - 2018-03-21, 19:04
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-04-28, 06:41
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-06-13, 04:21
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-06-13, 22:36
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-06-15, 22:38
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2019-03-04, 21:47
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2019-03-06, 01:13
RE: Zap2xml for ATSC in OpenELEC - by edit4ever - 2019-03-06, 01:52
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2019-03-06, 02:15
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2019-09-02, 18:35
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2019-09-06, 14:35
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2020-10-04, 20:50
Logout Mark Read Team Forum Stats Members Help
Zap2xml for ATSC in OpenELEC4