Jump to content


Photo

Rytex XMLTV has only 1 (important) shortcoming !


  • Please log in to reply
104 replies to this topic

Re: Rytex XMLTV has only 1 (important) shortcoming ! #41 littlesat

  • PLi® Core member
  • 57,186 posts

+699
Excellent

Posted 6 January 2015 - 00:04

And in addition we need a good clear algorythm and to remove all these.... This is not easy... Clear overlaps with equal start time ans lengthnare fine, but what if they do overlap and start time and duration is not equal... What should you delete?

Then I suggest it is a much better work-a-round to exclude multiple epg sources.... Or something else (work with prio's and once xml is read do not read epg from transponders for that specific channel etc....)

I have now idea about how to create a good algorythm right now to compromise with the issues here....

Edited by littlesat, 6 January 2015 - 00:09.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Rytex XMLTV has only 1 (important) shortcoming ! #42 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 6 January 2015 - 01:13

Then I suggest it is a much better work-a-round to exclude multiple epg sources.... Or something else (work with prio's and once xml is read do not read epg from transponders for that specific channel etc....)

 

 

You maybe will not like my reply, but this is now exactly the way it works in DreamOS



Re: Rytex XMLTV has only 1 (important) shortcoming ! #43 WanWizard

  • PLi® Core member
  • 70,552 posts

+1,813
Excellent

Posted 6 January 2015 - 09:05

And what does that help us?

 

If you know so well how it works there, why not donate the code to OpenPLi? Or send in a patch, OpenPLi is open source (unlike DreamOS, of which I am very sure it contains GPL code, so it violates the license).

 

If you can't be constructive, please go somewhere else. Like they say overhere "we can miss you like a toothache".


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Rytex XMLTV has only 1 (important) shortcoming ! #44 jeanclaude

  • Senior Member
  • 866 posts

+28
Good

Posted 6 January 2015 - 12:16

looks to me that "newer" EPG data should always replace existing EPG data.

while reading a new EPG source, look for a break in the channel/date sequence. When this occurs, first delete all existing data for the new channel/date, and then insert the new information until the next channel/date sequence break.

I wouldn't make too much fuss about it, with individual entries and starting/ending times, too complex. Just scratch the whole day and replace with the newest data.


DreamBox 7000S+8000HD (eindelijk), openPLi, CCcam, 85 cm schotel, draaibare opstelling en VEEL te weinig slaap.

Re: Rytex XMLTV has only 1 (important) shortcoming ! #45 doglover

  • Rytec EPG Team
  • 17,407 posts

+658
Excellent

Posted 6 January 2015 - 13:31

looks to me that "newer" EPG data should always replace existing EPG data.

while reading a new EPG source, look for a break in the channel/date sequence. When this occurs, first delete all existing data for the new channel/date, and then insert the new information until the next channel/date sequence break.

I wouldn't make too much fuss about it, with individual entries and starting/ending times, too complex. Just scratch the whole day and replace with the newest data.

 

I agree with this.

 

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Rytex XMLTV has only 1 (important) shortcoming ! #46 littlesat

  • PLi® Core member
  • 57,186 posts

+699
Excellent

Posted 6 January 2015 - 14:17


looks to me that "newer" EPG data should always replace existing EPG data.

while reading a new EPG source, look for a break in the channel/date sequence. When this occurs, first delete all existing data for the new channel/date, and then insert the new information until the next channel/date sequence break.

I wouldn't make too much fuss about it, with individual entries and starting/ending times, too complex. Just scratch the whole day and replace with the newest data.\

This is not a good idea as it will not work and will deliver complains about incomplete EPGs....  This idea will have many side effects... 

 

I still think this

 


(work with prio's and once xml is read do not read epg from transponders for that specific channel etc....)

 

is the best way to go...

 

The issue is EPG is coming from the transponder and from the WWW.... so you read two lists.... so you should keep it simple and solve it at the source. When you have complete EPG via the WWW you do not need it from the transponder at all...

 

I hope the community will offer a solution.... ;)


Edited by littlesat, 6 January 2015 - 14:20.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Rytex XMLTV has only 1 (important) shortcoming ! #47 doglover

  • Rytec EPG Team
  • 17,407 posts

+658
Excellent

Posted 6 January 2015 - 14:39

This is not a good idea as it will not work and will deliver complains about incomplete EPGs....  This idea will have many side effects...

 

 

Do not agree.  One solution - work around - we employ is delete all EPG and reimport.

Using this method we do not see holes and other "side effects"

 

And for the option of detecting changes in schedule:

The grabber I am using is faced with the same problem.  I have a cache.  When grabbing again the cache is checked against the new info on the web.  When there is difference in time or title, the details are grabbed again (because this is mostly opening a new webpage).  When there is no difference the old info from the cache is retained and no new webpage is opened - saves on grabtime.

 

I get in my log then this info:

   epg correction :  CHANGED show corrected,
      show with ---- start = 9/01/2015 6:19:00 stop = 9/01/2015 6:55:00 title = Baby's Eerste Liedjes en meer
      Replaces ----- start = 9/01/2015 5:57:00 stop = 9/01/2015 6:21:00 title = Baby's Eerste Liedjes en meer
      Replaces ----- start = 9/01/2015 6:21:00 stop = 9/01/2015 6:56:00 title = Baby's Eerste Liedjes en meer
   epg correction :  CHANGED show corrected,
      show with ---- start = 9/01/2015 6:55:00 stop = 9/01/2015 7:30:00 title = Kinderen en huisdieren en meer
      Replaces ----- start = 9/01/2015 6:21:00 stop = 9/01/2015 6:56:00 title = Baby's Eerste Liedjes en meer
      Replaces ----- start = 9/01/2015 6:56:00 stop = 9/01/2015 7:30:00 title = Kinderen en huisdieren en meer
   epg correction :  CHANGED show corrected,
      show with ---- start = 9/01/2015 7:30:00 stop = 9/01/2015 8:08:00 title = Mixed up Mary
      Replaces ----- start = 9/01/2015 7:30:00 stop = 9/01/2015 8:06:00 title = Meneer Slak en meer
      Replaces ----- start = 9/01/2015 8:06:00 stop = 9/01/2015 8:39:00 title = Bim en Bam in de dierenwereld en meer
   epg correction :  CHANGED show corrected,
      show with ---- start = 9/01/2015 8:08:00 stop = 9/01/2015 8:40:00 title = Bim en Bam in de dierenwereld en meer
      Replaces ----- start = 9/01/2015 8:06:00 stop = 9/01/2015 8:39:00 title = Bim en Bam in de dierenwereld en meer
      Replaces ----- start = 9/01/2015 8:39:00 stop = 9/01/2015 9:05:00 title = Tiny Beats en meer

So it can be done.

 

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Rytex XMLTV has only 1 (important) shortcoming ! #48 doglover

  • Rytec EPG Team
  • 17,407 posts

+658
Excellent

Posted 6 January 2015 - 14:41

Another example:

   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 12:25:00 stop = 6/01/2015 13:15:00 title = Witness
      Replaces ----- start = 6/01/2015 12:25:00 stop = 6/01/2015 13:20:00 title = Witness
   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 13:15:00 stop = 6/01/2015 14:05:00 title = Apocalypse
      Replaces ----- start = 6/01/2015 12:25:00 stop = 6/01/2015 13:20:00 title = Witness
      Replaces ----- start = 6/01/2015 13:20:00 stop = 6/01/2015 14:15:00 title = Apocalypse
   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 14:05:00 stop = 6/01/2015 14:55:00 title = Ultimate Airport Dubai
      Replaces ----- start = 6/01/2015 13:20:00 stop = 6/01/2015 14:15:00 title = Apocalypse
      Replaces ----- start = 6/01/2015 14:15:00 stop = 6/01/2015 15:10:00 title = Ultimate Airport Dubai
   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 14:55:00 stop = 6/01/2015 15:20:00 title = Seconds from Disaster
      Replaces ----- start = 6/01/2015 14:15:00 stop = 6/01/2015 15:10:00 title = Ultimate Airport Dubai
      Replaces ----- start = 6/01/2015 15:10:00 stop = 6/01/2015 16:05:00 title = Air Crash Investigation
   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 15:20:00 stop = 6/01/2015 16:10:00 title = Air Crash Investigation
      Replaces ----- start = 6/01/2015 15:10:00 stop = 6/01/2015 16:05:00 title = Air Crash Investigation
      Replaces ----- start = 6/01/2015 16:05:00 stop = 6/01/2015 17:00:00 title = Hell on the Highway
   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 16:10:00 stop = 6/01/2015 17:00:00 title = Highway Thru Hell
      Replaces ----- start = 6/01/2015 16:05:00 stop = 6/01/2015 17:00:00 title = Hell on the Highway
   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 22:00:00 stop = 6/01/2015 22:55:00 title = Wicked Tuna
      Replaces ----- start = 6/01/2015 22:00:00 stop = 6/01/2015 23:00:00 title = Remote Survival
   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 22:55:00 stop = 6/01/2015 23:50:00 title = Ultimate Airport Dubai
      Replaces ----- start = 6/01/2015 22:00:00 stop = 6/01/2015 23:00:00 title = Remote Survival
      Replaces ----- start = 6/01/2015 23:00:00 stop = 6/01/2015 23:55:00 title = Survive the Tribe
   epg correction :  CHANGED show corrected,
      show with ---- start = 6/01/2015 23:50:00 stop = 7/01/2015 0:40:00 title = Megafactories
      Replaces ----- start = 6/01/2015 23:00:00 stop = 6/01/2015 23:55:00 title = Survive the Tribe
      Replaces ----- start = 6/01/2015 23:55:00 stop = 7/01/2015 0:50:00 title = Megafactories
   epg correction :  CHANGED show corrected,
      show with ---- start = 7/01/2015 0:40:00 stop = 7/01/2015 1:30:00 title = Yukon Gold
      Replaces ----- start = 6/01/2015 23:55:00 stop = 7/01/2015 0:50:00 title = Megafactories
      Replaces ----- start = 7/01/2015 0:50:00 stop = 7/01/2015 1:45:00 title = Yukon Gold
   epg correction :  CHANGED show corrected,
      show with ---- start = 7/01/2015 1:30:00 stop = 7/01/2015 2:15:00 title = Wicked Tuna
      Replaces ----- start = 7/01/2015 0:50:00 stop = 7/01/2015 1:45:00 title = Yukon Gold
      Replaces ----- start = 7/01/2015 1:45:00 stop = 7/01/2015 2:35:00 title = Remote Survival
   epg correction :  CHANGED show corrected,
      show with ---- start = 7/01/2015 2:15:00 stop = 7/01/2015 3:00:00 title = Inside Area 51's Secrets
      Replaces ----- start = 7/01/2015 1:45:00 stop = 7/01/2015 2:35:00 title = Remote Survival
      Replaces ----- start = 7/01/2015 2:35:00 stop = 7/01/2015 3:20:00 title = Inside Area 51's Secrets

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Rytex XMLTV has only 1 (important) shortcoming ! #49 jort38

  • Senior Member
  • 652 posts

+8
Neutral

Posted 6 January 2015 - 14:48

If I use info on a timer there is also some changelog.
Looks like the log Willy showed.

Vu+ Ultimo 4K (4 TB HD, DVBS FSB, DVBC FBC & OpenPli 9),

Xtrend ET10000 (1 DVBS works via ethernet & OpenPli 9),

Xtrend ET10000 (DVBT2 & OpenPli 9, located in Thailand). Only latest stable releases.

Xtrend ET10000 (works via ethernet & OpenPli 9) and

Xtrend ET8000 (1 TB HD, 1 DVBT2 & works via ethernet & OpenPli 9)


Re: Rytex XMLTV has only 1 (important) shortcoming ! #50 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 6 January 2015 - 15:04

Do not agree.  One solution - work around - we employ is delete all EPG and reimport.
Using this method we do not see holes and other "side effects"

But in real life their are more sources that supply data to one box: XMLTV/Cross(for Open-TV)/EIT/poss. others; so deleting all previous data is not an option.

Re: Rytex XMLTV has only 1 (important) shortcoming ! #51 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 6 January 2015 - 15:36

I think the EPG cache already tracks multiple sources. It just doesn't appear to handle things correctly. It can also handle multiple languages, I don't know if it stores them all but shows only one, or just drops other languages in favor of the preferred one.

What it needs is a source prioritization, probably the same as in use for languages (you can pick a preferred language in the settings).
When overlap occurs, the cache should make a decision based on priority. It would make sense to give higher prio to the imported data.
Real musicians never die - they just decompose

Re: Rytex XMLTV has only 1 (important) shortcoming ! #52 littlesat

  • PLi® Core member
  • 57,186 posts

+699
Excellent

Posted 6 January 2015 - 15:41


Do not agree.  One solution - work around - we employ is delete all EPG and reimport.

 

This is not the solution...  This is hiding the symptom... ;)

 

What it needs is a source prioritization, 

And probably we only need to add a 'flag' to the EPG files which is set when the source is coming from an external source... when something new is coming in which is coming from an internal source then an overlap check can check if there already exists something from an external source in the cache and if so drop the EPG from the internal source...


Edited by littlesat, 6 January 2015 - 15:44.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Rytex XMLTV has only 1 (important) shortcoming ! #53 pluizebol

  • Senior Member
  • 809 posts

+9
Neutral

Posted 6 January 2015 - 15:58

If I understand things correctly then the easiest solution for those who use only XMLTV is to a daily recurring clear of the EPG.dat at a programmable time (e.g. every day at 08:30).

 

I noticed that, when I do a manual clear of EPG.dat, the XMLTV EPG is cleared and a new import is done automatically.

No more double events are showing up that way.

 

Hence my question :

How can I realize that automated daily recurring clear of the EPG.dat (e.g. every day at 08:30) ?

That would solve the problem for the XMLTV users, or am I mistaking ?


VU+ DUO 4K SE (1xDVB-S2X FBC Twin en 1xDVB-T2) / OpenPLi 8.3 / Logitech Harmony AB

Windows 10 Home Edition 64bits / VU+ Duo 4K SE / OpenPLi 8.3 / Citroën C5 II hydractive III+ BlueHDi / Samsung S21+

La Douce France


Re: Rytex XMLTV has only 1 (important) shortcoming ! #54 doglover

  • Rytec EPG Team
  • 17,407 posts

+658
Excellent

Posted 6 January 2015 - 16:06

But in real life their are more sources that supply data to one box: XMLTV/Cross(for Open-TV)/EIT/poss. others; so deleting all previous data is not an option.

 

 

In fact XMLTV and Crossepg use the same source.  The XMLTV files.  Even Crossepg XEPGDB files are just our XMLTV files which are repacked in another format which imports quicker.

Croosepg can also read the info from OpenTV (sat).

The others sources are from the sat and providers themselves.

 

Quote


Do not agree.  One solution - work around - we employ is delete all EPG and reimport.

 

This is not the solution...  This is hiding the symptom... ;)

 

 

Agreed it is not the solution.  As a matter of fact it is ugly.  A brute force method.  But I do not have any other solution at the moment.

But the point I am trying to make is, that when importing XMLTV (XMLTV import or Crossepg) EPG data, no problems are observed with holes in the EPG or other effects.

 

So a selective erasure of the EPG as suggested by jeanclaude should work, for at least those who use the XMLTV import or Crossepg - including OpenTV on Crossepg.

 

looks to me that "newer" EPG data should always replace existing EPG data.

while reading a new EPG source, look for a break in the channel/date sequence. When this occurs, first delete all existing data for the new channel/date, and then insert the new information until the next channel/date sequence break.

I wouldn't make too much fuss about it, with individual entries and starting/ending times, too complex. Just scratch the whole day and replace with the newest data.

 

 

Willy


Edited by doglover, 6 January 2015 - 16:07.

~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Rytex XMLTV has only 1 (important) shortcoming ! #55 littlesat

  • PLi® Core member
  • 57,186 posts

+699
Excellent

Posted 6 January 2015 - 16:06

If I understand things correctly then the easiest solution for those who use only XMLTV is to a daily recurring clear of the EPG.dat at a programmable time (e.g. every day at 08:30).

This will only work when you clear the EPG after you download the EGM from XMLTV.... ;)


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Rytex XMLTV has only 1 (important) shortcoming ! #56 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 6 January 2015 - 16:13

But in real life their are more sources that supply data to one box: XMLTV/Cross(for Open-TV)/EIT/poss. others; so deleting all previous data is not an option.

 

 

In fact XMLTV and Crossepg use the same source. The XMLTV files. Even Crossepg XEPGDB files are just our XMLTV files which are repacked in another format which imports quicker.

Croosepg can also read the info from OpenTV (sat).

I was talking about using Cross for Open-TV.



Re: Rytex XMLTV has only 1 (important) shortcoming ! #57 pluizebol

  • Senior Member
  • 809 posts

+9
Neutral

Posted 6 January 2015 - 16:17

 

If I understand things correctly then the easiest solution for those who use only XMLTV is to a daily recurring clear of the EPG.dat at a programmable time (e.g. every day at 08:30).

This will only work when you clear the EPG after you download the EGM from XMLTV.... ;)

 

 

Sorry for another dumb question ... but what is the EGM ?


VU+ DUO 4K SE (1xDVB-S2X FBC Twin en 1xDVB-T2) / OpenPLi 8.3 / Logitech Harmony AB

Windows 10 Home Edition 64bits / VU+ Duo 4K SE / OpenPLi 8.3 / Citroën C5 II hydractive III+ BlueHDi / Samsung S21+

La Douce France


Re: Rytex XMLTV has only 1 (important) shortcoming ! #58 jeanclaude

  • Senior Member
  • 866 posts

+28
Good

Posted 6 January 2015 - 16:46

I don't really see why someone should have multiple EPG sources active at any time - this is surely asking for problems.

OK, the "delete & reload" method should not be used when a "live" EPG datastream is used, otherwise the box will be doing nothing else but delete & replace it's EPG contents.

but it is feasable for those of us who download the EPG data "in batch" from time to time

(as long as no better algorithm is available for updating the EPG)

 

pluizebol : the easiest solution (and dirtiest) is to use "cron". I have created a file "/etc/cron/inittab" with the following 3 lines :

45 7 * * * init 4

46 7 * * * rm /tmp/epg.dat

47 7 * * * init 3

 

this will stop enigma2 daily at 7:45 am, delete the EPG file at 7:46 am, and restart enigma2 at 7:47 am. My EPG is then downloaded daily at 8:10 am.

it's crude, but it works. only snag is that if there is no EPG in the download, then all EPG info will be empty on the screen, but this happens very rarely.


Edited by jeanclaude, 6 January 2015 - 16:50.

DreamBox 7000S+8000HD (eindelijk), openPLi, CCcam, 85 cm schotel, draaibare opstelling en VEEL te weinig slaap.

Re: Rytex XMLTV has only 1 (important) shortcoming ! #59 doglover

  • Rytec EPG Team
  • 17,407 posts

+658
Excellent

Posted 6 January 2015 - 16:52

 

But in real life their are more sources that supply data to one box: XMLTV/Cross(for Open-TV)/EIT/poss. others; so deleting all previous data is not an option.

 

 

In fact XMLTV and Crossepg use the same source. The XMLTV files. Even Crossepg XEPGDB files are just our XMLTV files which are repacked in another format which imports quicker.

Croosepg can also read the info from OpenTV (sat).

I was talking about using Cross for Open-TV.

 

 

This is exactly the same problem.

 

Crossepg read the OpenTV data from the provider (sat) and stores it in its own database.

This database is then used to pump the EPG in enigma in the same way as the XMLTVimporter uses.  So the OpenTV EPG becomes actually also an "external source" for EPG.

 

Willy


~~Rytec Team~~
Maxytec Multibox SE OpenPli (used as mediaplayer)
Mutant HD2400 OpenPli
Vu+ Duo OpenPli (backup)

Synology NAS

Sat: 13E, 19.2E, 23.5E and 28.2E
*Pli/Rytec EPG POWERED*


Re: Rytex XMLTV has only 1 (important) shortcoming ! #60 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 6 January 2015 - 17:09

I don't really see why someone should have multiple EPG sources active at any time - this is surely asking for problems.

There is no other way atm.
I have XMLTV for a number of packages, and Cross's Open-TV for the UK. For other services, not covered by one of those sources, I have EIT enabled. And I can't selectively disable EIT for those services covered by XMLTV.


6 user(s) are reading this topic

0 members, 6 guests, 0 anonymous users