Jump to content


Photo

New option to EPG Import plugin


  • Please log in to reply
38 replies to this topic

#1 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 15 December 2016 - 22:45

Hi,

i don't know if it the righe place to make this request, i don't know who is the maintainer of this great plugin.

 

Anyway i would ask if it possible to add a new feature: "Save EPG data to epg.dat after data are donwloaded from sources and load into memory." It is a simple task to add, imho.

I know epg.dat is written ad reboot for backup etc. etc., but i would save it after new data are dowloaded.

 

Hope this can done.

 

Thanks



Re: New option to EPG Import plugin #2 Robinson

  • Senior Member
  • 2,621 posts

+30
Good

Posted 18 December 2016 - 00:36

I support this idea, especially for situations when there is a power cut or if an extension cord is accidentally switched off.


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: New option to EPG Import plugin #3 WanWizard

  • PLi® Core member
  • 70,851 posts

+1,832
Excellent

Posted 18 December 2016 - 01:01

Can you create an issue for this (at https://github.com/O...gma2/issues/new), so we don't forget? Also paste a link to this topic in the description please.


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: New option to EPG Import plugin #4 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 18 December 2016 - 02:07

Done, added new issue. Thanks.



Re: New option to EPG Import plugin #5 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 18 December 2016 - 04:59

I support this idea, especially for situations when there is a power cut or if an extension cord is accidentally switched off.

But then I don't see an relation with this plugin; a general (manual or automated) 'save to epg.dat', irrespective of any EPG download plugin, seems more appropriate.

And that would be consistent with what other images offer, for the very same reason.



Re: New option to EPG Import plugin #6 Dimitrij

  • PLi® Core member
  • 10,379 posts

+354
Excellent

Posted 18 December 2016 - 08:41

EPGImport.py

						print>>log, "[EPGImport] load() failed:", e
+				elif hasattr(self.epgcache, 'save'):
+					self.epgcache.save()
			elif hasattr(self.epgcache, 'timeUpdated'):
				self.epgcache.timeUpdated()
			if self.onDone:
				self.onDone(reboot=reboot, epgfile=needLoad)
		self.eventCount = None
		print>>log, "[EPGImport] #### Finished ####"

	def isImportRunning(self):
		return self.source is not None

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: New option to EPG Import plugin #7 nietgiftig

  • Senior Member
  • 787 posts

+39
Good

Posted 18 December 2016 - 12:10

 

EPGImport.py

 

Thanks!


 Hardware: Master VU Uno 4K SE  1x Mut@nt HD51.4K & 2x ZgemmaH9T
Software : Pli (v7) (7.1rc) 2019 


Re: New option to EPG Import plugin #8 WanWizard

  • PLi® Core member
  • 70,851 posts

+1,832
Excellent

Posted 18 December 2016 - 15:49

@Dimitrij,

 

when you create a PR for that, don't forget to add "closes: #564" to the commit message, so merging the PR would close the issue, and also link the issue to the PR.


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: New option to EPG Import plugin #9 Robinson

  • Senior Member
  • 2,621 posts

+30
Good

Posted 18 December 2016 - 16:45

 

I support this idea, especially for situations when there is a power cut or if an extension cord is accidentally switched off.

But then I don't see an relation with this plugin; a general (manual or automated) 'save to epg.dat', irrespective of any EPG download plugin, seems more appropriate.

And that would be consistent with what other images offer, for the very same reason.

 

Yes but since OpenPLi does not offer it out-of-the-box I am supporting a different approach.


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: New option to EPG Import plugin #10 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 18 December 2016 - 17:04

But I don't understand; this would only help when using XMLV-import, while the issue you try to address is a general one.



Re: New option to EPG Import plugin #11 nietgiftig

  • Senior Member
  • 787 posts

+39
Good

Posted 18 December 2016 - 19:52

Yes but since OpenPLi does not offer it out-of-the-box I am supporting a different approach.

 

 

That' s right!

And hopefully without a big fuss about a simple request.


 Hardware: Master VU Uno 4K SE  1x Mut@nt HD51.4K & 2x ZgemmaH9T
Software : Pli (v7) (7.1rc) 2019 


Re: New option to EPG Import plugin #12 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 18 December 2016 - 20:34

Implementing this this crippled way will be the same effort as doing it correctly (i.e. in PLi, not in a plugin).



Re: New option to EPG Import plugin #13 WanWizard

  • PLi® Core member
  • 70,851 posts

+1,832
Excellent

Posted 18 December 2016 - 21:07

One doesn't exclude the other.

 

For a "general" solution, it needs a menu item and a manual action, as you simply can't write a 20Mb+ file every time an EIT update arrives, you'll be looking at a spinner most of the time. So if we decide to build something like that, it really needs some thought on how to approach this. And in the meantime, for those that use the xmlimport plugin the issue is already addressed.


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: New option to EPG Import plugin #14 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 20 December 2016 - 21:03

Thanks for the commit.

 

I have a question. The file epg.dat will be overwrited at reboot/restart gui/shutdown. This, in my experience, cause sometimes epg.dat file is deleted and no written anymore due to corrupted data in memory.

I suppose the data corrupted came from EIT streams.

So, i would keep and save only epg.dat file generated by EPG Import. Is there a way to disable epg.save() on reboot/restart gui/shutdown?


Edited by antony23, 20 December 2016 - 21:07.


Re: New option to EPG Import plugin #15 rubeni

  • Member
  • 17 posts

+1
Neutral

Posted 20 December 2016 - 21:23

thanks



Re: New option to EPG Import plugin #16 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 21 December 2016 - 14:25

Maybe my question above is not clear, so i explain better.

The file epg.dat is overwrited at reboot/restart gui/shutdown. This, in my experience, cause sometimes epg.dat file is deleted and no written anymore due to corrupted data in system memory.

I suppose the data corrupted came from EIT streams (that conflict with rytec data) when they are loaded into system memory table.

So, i would save (on epg.dat) only epg data downloaded from rytec and not EIT/other data. Anyway, i want continue to load EIT for channells without rytec epg data, but i don't want save it on epg.dat.

 

For this reason, i was asking if there is a way to disable epg.save() on reboot/restart gui/shutdown. I would save epg.dat only when EPG Import download and load its clean data.

 

Is there a way to do this?


Edited by antony23, 21 December 2016 - 14:26.


Re: New option to EPG Import plugin #17 WanWizard

  • PLi® Core member
  • 70,851 posts

+1,832
Excellent

Posted 25 December 2016 - 17:32

No.


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: New option to EPG Import plugin #18 antony23

  • Senior Member
  • 47 posts

+1
Neutral

Posted 26 December 2016 - 01:18

No.

 

Thanks for the exhaustive answer! lol  :)


Edited by antony23, 26 December 2016 - 01:23.


Re: New option to EPG Import plugin #19 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 26 December 2016 - 14:38

I have a question. The file epg.dat will be overwrited at reboot/restart gui/shutdown. This, in my experience, cause sometimes epg.dat file is deleted and no written anymore due to corrupted data in memory.
I suppose the data corrupted came from EIT streams.
So, i would keep and save only epg.dat file generated by EPG Import. Is there a way to disable epg.save() on reboot/restart gui/shutdown?


If that's the case, just set the "import at startup" option of the plugin, and it will grab the data from the internet once the power comes up again. No need to mess around with epg.dat.
Real musicians never die - they just decompose

Re: New option to EPG Import plugin #20 doglover

  • Rytec EPG Team
  • 17,465 posts

+666
Excellent

Posted 26 December 2016 - 15:57

Off course the import takes some time. 

But you can use the ready made epg.dat files in the import.  Deselect the the XMLTV sources and scroll down in the list.

The import of the epg.dat files is very fast.  However the import counter does not work, and during the import the receiver is unresponsive.  But this is only for a minute or so (depnding on the amount of sources you import).

 

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*



7 user(s) are reading this topic

0 members, 7 guests, 0 anonymous users