Jump to content


Photo

No EPG Today - Mirror Offline(see post #12)


  • Please log in to reply
41 replies to this topic

Re: No EPG Today - Mirror Offline(see post #12) #21 WanWizard

  • PLi® Core member
  • 70,891 posts

+1,833
Excellent

Posted 8 March 2017 - 14:55

What is the exact update needed?


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: No EPG Today - Mirror Offline(see post #12) #22 wortellica

  • Senior Member
  • 1,370 posts

+33
Good

Posted 8 March 2017 - 16:51

Without removing something, after sofware update epg work,s on all 3 boxes ?

Re: No EPG Today - Mirror Offline(see post #12) #23 doglover

  • Rytec EPG Team
  • 17,466 posts

+667
Excellent

Posted 8 March 2017 - 16:57

I guess an update of the sources.  In the sources file remove the mirror in question.

Have not done this, and hesitate to do it, since the website would probably be online again after next weekend.  (I am in contact with the webmaster about this)

 

Another fix that should be applied is cater for this situation in the XMLTVimport plug-in.  When an unzipped file is received, the file should be skipped an another mirror tried.

Only I do not have a clue on how todo this.  If somebody with some python knowledge could have look to the plug-in and see if it this can be achieved.

 

The Github is here:  https://github.com/O...ons-xmltvimport

 

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: No EPG Today - Mirror Offline(see post #12) #24 doglover

  • Rytec EPG Team
  • 17,466 posts

+667
Excellent

Posted 8 March 2017 - 16:58

Without removing something, after sofware update epg work,s on all 3 boxes ?

 

 

This is just luck.  The plug-in has not tried to download from the mirror in question.

There are 5 mirrors and the plug-in just selects one at random.

 

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: No EPG Today - Mirror Offline(see post #12) #25 wortellica

  • Senior Member
  • 1,370 posts

+33
Good

Posted 8 March 2017 - 17:03

Ah ok, thank you for the explanation!

Re: No EPG Today - Mirror Offline(see post #12) #26 Pr2

  • PLi® Contributor
  • 6,197 posts

+261
Excellent

Posted 8 March 2017 - 17:12

Just my 2 cents when such problem occurs and the solution is to change the source file, I think it must be changed in the source package so we say end-user just to online update there box. This is typically what a packaging system is for.

 

We cannot ask every single user to edit a file and then when the site is back online nobody will put it back in, that's for sure.

 

It this is done centrally this will fix the issue once for all for everybody and you keep control on what every user use has source. And for people that update very often this problem will even not be mentioned at all.


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: No EPG Today - Mirror Offline(see post #12) #27 Q-BiC

  • Senior Member
  • 30 posts

0
Neutral

Posted 8 March 2017 - 17:14

I guess an update of the sources.  In the sources file remove the mirror in question.

Have not done this, and hesitate to do it, since the website would probably be online again after next weekend.  (I am in contact with the webmaster about this)

 

Another fix that should be applied is cater for this situation in the XMLTVimport plug-in.  When an unzipped file is received, the file should be skipped an another mirror tried.

Only I do not have a clue on how todo this.  If somebody with some python knowledge could have look to the plug-in and see if it this can be achieved.

 

The Github is here:  https://github.com/O...ons-xmltvimport

 

Willy

 

 

Just a wild guess (very little Python knowledge and the code isn't really well documented either):

EPGImport.py, line 192, afterChannelDownload

After checking for file size, also check if the contents is actually xml. On failure, it'll go to channelDownloadFail which looks like it's trying another mirror.

(EDIT: there will need to be an appropriate check for epg.dat files too of course)


Edited by Q-BiC, 8 March 2017 - 17:17.


Re: No EPG Today - Mirror Offline(see post #12) #28 WanWizard

  • PLi® Core member
  • 70,891 posts

+1,833
Excellent

Posted 8 March 2017 - 17:22

The correct fix is indeed to make sure it tries another mirror. We'll have to look into this.


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: No EPG Today - Mirror Offline(see post #12) #29 doglover

  • Rytec EPG Team
  • 17,466 posts

+667
Excellent

Posted 8 March 2017 - 18:36

Just my 2 cents when such problem occurs and the solution is to change the source file, I think it must be changed in the source package so we say end-user just to online update there box. This is typically what a packaging system is for.

 

We cannot ask every single user to edit a file and then when the site is back online nobody will put it back in, that's for sure.

 

It this is done centrally this will fix the issue once for all for everybody and you keep control on what every user use has source. And for people that update very often this problem will even not be mentioned at all.

 

Yes, you are absolutely correct.  However, changing the sources or programming a fix takes time.

So the immediate and work around solution was to edit the sources file. 

 

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: No EPG Today - Mirror Offline(see post #12) #30 doglover

  • Rytec EPG Team
  • 17,466 posts

+667
Excellent

Posted 8 March 2017 - 18:44

 

I guess an update of the sources.  In the sources file remove the mirror in question.

Have not done this, and hesitate to do it, since the website would probably be online again after next weekend.  (I am in contact with the webmaster about this)

 

Another fix that should be applied is cater for this situation in the XMLTVimport plug-in.  When an unzipped file is received, the file should be skipped an another mirror tried.

Only I do not have a clue on how todo this.  If somebody with some python knowledge could have look to the plug-in and see if it this can be achieved.

 

The Github is here:  https://github.com/O...ons-xmltvimport

 

Willy

 

 

Just a wild guess (very little Python knowledge and the code isn't really well documented either):

EPGImport.py, line 192, afterChannelDownload

After checking for file size, also check if the contents is actually xml. On failure, it'll go to channelDownloadFail which looks like it's trying another mirror.

(EDIT: there will need to be an appropriate check for epg.dat files too of course)

 

 

Is there not a check that can be applied to see if you get an gzipped file as a return?

All files on the mirrors are gzipped

 

One problem:  

At the moment the plug-in can import at the moment also xml files (or unzipped files)  And for testing I would like this to remain.

This can be overcome by skipping the gzipped check when the URL does not contain the .gz extension, or the file is a local file (i.e. not downloaded from the net)

 

Willy


Edited by doglover, 8 March 2017 - 19:02.

~~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: No EPG Today - Mirror Offline(see post #12) #31 Pr2

  • PLi® Contributor
  • 6,197 posts

+261
Excellent

Posted 8 March 2017 - 19:04

Hi,

 

Looking at source code, when gzip operators are called error are not handled.

So I think that surrounding the gzip with a try:  except  should do the trick.

 

Pr2


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: No EPG Today - Mirror Offline(see post #12) #32 WanWizard

  • PLi® Core member
  • 70,891 posts

+1,833
Excellent

Posted 8 March 2017 - 21:06

You mean something like:

if filename.endswith('.gz'):
	try:
		self.fd = gzip.open(filename, 'rb')
	except Exception, e:
		self.downloadFail(e)

assuming that downloadFail will trigger the download of the next in line...


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: No EPG Today - Mirror Offline(see post #12) #33 Pr2

  • PLi® Contributor
  • 6,197 posts

+261
Excellent

Posted 8 March 2017 - 21:13

Hi WanWizard,

 

Yes indeed that's exactly what I was thinking of.

So corrupted .gz file will trigger a new download from another mirror if it is the goal of self.downloadFail(e)

 

Pr2

 

@ALL,

 

An easiest work-around for this problem, is to edit the file:   /etc/hosts and add this line at the end:

 

127.0.0.1       www.xmltvepg.nl

 

Or for people that are not familiar with file editing in telnet you can perform once:

 

cat "127.0.0.1       www.xmltvepg.nl" >> /etc/hosts

 

Pr2


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: No EPG Today - Mirror Offline(see post #12) #34 WanWizard

  • PLi® Core member
  • 70,891 posts

+1,833
Excellent

Posted 8 March 2017 - 21:19

I'll see if I can test the changes.


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: No EPG Today - Mirror Offline(see post #12) #35 Q-BiC

  • Senior Member
  • 30 posts

0
Neutral

Posted 8 March 2017 - 22:00

I'm having the same issue. But not only for UK. Benelux is also empty. 0 events.

The EPG has been acting up for a few days now (UK sometimes missing, and Benelux showing wrong events), but when I got home this evening, the whole EPG was empty and manually rescanning doesn't help.

 

Don't know if it's related to the mirror issues, but I'm seeing the same issues of wrong events on Belgian channels again. For example the Epg I'm seeing for the channel VIER for Sunday evening, is actually for Monday evening... (for example, the program De Mol at 8:35PM is on Mondays, but the EPG shows it on Sunday.)



Re: No EPG Today - Mirror Offline(see post #12) #36 WanWizard

  • PLi® Core member
  • 70,891 posts

+1,833
Excellent

Posted 8 March 2017 - 22:12

Turned out not to be that easy, as the downloaded file is not processed in that script. But I found a solution, should be in tomorrows image.

 

In testing here, it now correctly iterates over the defined URL's until either the list is exhausted, or a valid file is downloaded.


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: No EPG Today - Mirror Offline(see post #12) #37 Pr2

  • PLi® Contributor
  • 6,197 posts

+261
Excellent

Posted 8 March 2017 - 22:20

Great to heard that you find a solution.  I have tested on my side too but the first doesn't work since gzip.open unfortunately doesn't check if it is a valid gz file so since a wrong gz file is downloaded but that the file exist, it always work and so doesn't raise any exception.  :angry:


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: No EPG Today - Mirror Offline(see post #12) #38 WanWizard

  • PLi® Core member
  • 70,891 posts

+1,833
Excellent

Posted 8 March 2017 - 22:44

Yeah, as I said it turned out to be more complicated.

 

That code only opens the file, you actually don't get the error until you start reading from it, which happens two classes down, in gen_xmltv.py . So I added a dummy read to this code for force the error before trying to parse the xml...

 

See https://github.com/O...c6e732587be8946


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: No EPG Today - Mirror Offline(see post #12) #39 Pr2

  • PLi® Contributor
  • 6,197 posts

+261
Excellent

Posted 9 March 2017 - 09:44

Hi,

 

Thanks but your change is incomplete because the gzip.open occurs twice in the source code, once for the XMLTV and once for the EPG.DAT so you need to use the same trick twice in the EPGImport.py

 

See here:

 

https://github.com/O...GImport.py#L143

 

Regards,

 

Pr2


NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.

Wanna help with OpenPLi Translation? Please read our Wiki Information for translators

Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)

AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
 


Re: No EPG Today - Mirror Offline(see post #12) #40 WanWizard

  • PLi® Core member
  • 70,891 posts

+1,833
Excellent

Posted 9 March 2017 - 14:43

True, didn't think about epg.dat, never use it. I'll modify that too.

 

edit: it isn't that simple, the actual opening and processing happens in a second thread, so that needs to be able to single back that an iteration is needed. Not sure my basic Python is up to the task here...


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.



8 user(s) are reading this topic

0 members, 8 guests, 0 anonymous users