Jump to content


Photo

'Delete old EPG before importing' option

Enigma2-XMLTV

  • Please log in to reply
8 replies to this topic

#1 rtzhjgg0

  • Senior Member
  • 568 posts

+13
Neutral

Posted 15 July 2010 - 10:20

@Milo & Rytec
During a day of zapping often the epg-file contains the EPG of unneeded providers. But we need only the EPG of providers we chose to import nightly, without the unwonted EPG/images/smiley/wink.gif

Is it possible to add this option to EPG-Import Configuration?
Delete old(existing) EPG before importing - yes/no

Thanks!

Re: 'Delete old EPG before importing' option #2 MiLo

  • PLi® Core member
  • 13,870 posts

+290
Excellent

Posted 15 July 2010 - 10:34

And is it your intention that this option deletes all EPG data? (as if you did "init 4;rm /hdd/epg.dat/;init 3")
Real musicians never die - they just decompose

Re: 'Delete old EPG before importing' option #3 rtzhjgg0

  • Senior Member
  • 568 posts

+13
Neutral

Posted 15 July 2010 - 10:48

Yes, same as manually delete of epg.dat

In this way the user can have a clean EPG with only the imported providers/images/smiley/wink.gif

Re: 'Delete old EPG before importing' option #4 doglover

  • Rytec EPG Team
  • 12,620 posts

+382
Excellent

Posted 15 July 2010 - 13:12

This option could be usefull.

It certainly will make the need to use the init 4 / rm epg.dat / init 3 method redundand. If to resort very often to this, during testing of xmltv files.

Willy

~~Rytec Team~~
Xtrend ET6000 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: 'Delete old EPG before importing' option #5 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 15 July 2010 - 17:14

But hang on a minute- if you simply delete your epg.dat file, then try to retrieve epg, won't the script fail, with 'epg.dat not found' error?

Or is this aspect different in E2 to what I see in E1 with epg.db ?? In E1, OpenPLi always creates a new 80kb 'basic' epg.db after a reboot in the chosen storage folder on the mount, if none is found.

Hence my daily cron method of doing a similar thing (deleting epg.db on the mount, then rebooting, a few minutes before cron runs the daily epg download). Explained in more detail here:

http://www.pli-image...thread_id=14137

But it went down like a lead balloon, 0/10, LOL!

Cheers- AL Posted Image

Re: 'Delete old EPG before importing' option #6 doglover

  • Rytec EPG Team
  • 12,620 posts

+382
Excellent

Posted 16 July 2010 - 09:08

Dear Paphosal,

e2 and e1 are really different. The importer is not the same. Also how epg is stored is not the same on e1 and e2.

In e1 the epg is stored in epg.db, a sqlite database, and is read from there when needed.

In e2 epg is stored in memory. In order not to lose all the epg when you switch off the box, Gemini and OpenPli stores the epg as epg.dat, which is reloaded when the box is restarted. (maybe this is also the case iother images).
Now in images which do not have the Oudeis patch, the epg.dat is also used to import the epg. The importer creates a new epg.dat from the xmltv files. Enigma is restarted and the normal process of reading the epg.dat is performed. Now the new epg is stored internally in enigma. This proces normally eliminates the epg in memory. Except for the images with the CrossEPG patch where the epg.dat methos is also used, but this epg.dat is read into memory without eliminating the present epg.

However in images with the Oudeis patch (like OpenPli) the epg from the xmltv files is appended to the epg already in enigma.

So the need for deleting the old epg arises sometimes for images with the Oudeis and the Crossepg patch. Especially when testing new xmltv packages and when you f**cked up the epg, by f.i. leaving the EIT and/or MHW epg on, and have nice english epg replaced by some czech epg (no offence intended - just used as example) which you cannot read.

Willy

~~Rytec Team~~
Xtrend ET6000 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: 'Delete old EPG before importing' option #7 PaphosAL

  • Senior Member
  • 251 posts

+2
Neutral

Posted 16 July 2010 - 11:36

Apologies, Willy- I didn't realize that EPG in E1 and E2 were two entirely different animals. Thankyou for taking the time to explain this in detail!!

Cheers- AL Posted Image

Re: 'Delete old EPG before importing' option #8 Robinson

  • Senior Member
  • 2,482 posts

+28
Good

Posted 17 November 2018 - 21:20

I only wanted to know what happens if there is a recording going when the plugin is about to clear the EPG and, I believe, restart Enigma2?

The recording would be damaged.


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: 'Delete old EPG before importing' option #9 doglover

  • Rytec EPG Team
  • 12,620 posts

+382
Excellent

Posted 18 November 2018 - 08:13

OpenPLi, never restarts the receiver when clearing or importing EPG.

So no problem here.

 

I do not know what happens on other images.

Except:  OpenVIX does not restart either

 

Willy


~~Rytec Team~~
Xtrend ET6000 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*






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users