Jump to content


Photo

Only import EPG for channels in Bouquets - change requested


  • Please log in to reply
164 replies to this topic

Re: Only import EPG for channels in Bouquets - change requested #81 WanWizard

  • PLi® Core member
  • 70,247 posts

+1,798
Excellent

Posted 21 June 2019 - 15:23

If someone can tell me exactly what...


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: Only import EPG for channels in Bouquets - change requested #82 doglover

  • Rytec EPG Team
  • 17,363 posts

+657
Excellent

Posted 21 June 2019 - 15:25

Littlesat should have all the info.  (he wrote it)

But it is the plugin.py file which is attached to post #60 in this thread.

 

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: Only import EPG for channels in Bouquets - change requested #83 WanWizard

  • PLi® Core member
  • 70,247 posts

+1,798
Excellent

Posted 21 June 2019 - 16:01

I've pinged him, but I guess busy at work.

 

edit: ok, that is the version I've removed the syntax error from. I'll have a look.


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: Only import EPG for channels in Bouquets - change requested #84 WanWizard

  • PLi® Core member
  • 70,247 posts

+1,798
Excellent

Posted 21 June 2019 - 16:08

Done.


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: Only import EPG for channels in Bouquets - change requested #85 littlesat

  • PLi® Core member
  • 57,065 posts

+698
Excellent

Posted 22 June 2019 - 08:22

Thanks... will it now also come in release?

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


Re: Only import EPG for channels in Bouquets - change requested #86 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 22 June 2019 - 12:23

Erst wenn ALLE try:/except: bereinigt sind :P

 

Only after cleanup of ALL try:/except: :P


Edited by gutemine, 22 June 2019 - 12:25.


Re: Only import EPG for channels in Bouquets - change requested #87 Huevos

  • PLi® Contributor
  • 4,624 posts

+161
Excellent

Posted 22 June 2019 - 20:47

Which repo is the plugin on?



Re: Only import EPG for channels in Bouquets - change requested #88 littlesat

  • PLi® Core member
  • 57,065 posts

+698
Excellent

Posted 22 June 2019 - 22:40

E2openplugins?

Edited by littlesat, 22 June 2019 - 22:40.

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


Re: Only import EPG for channels in Bouquets - change requested #89 Abu Baniaz

  • PLi® Contributor
  • 2,494 posts

+64
Good

Posted 23 June 2019 - 00:10

PLI uses this repository

https://github.com/O...sions-epgimport

 

Commit for this change was here

https://github.com/O...4b611f0008da72a


Edited by Abu Baniaz, 23 June 2019 - 00:11.


Re: Only import EPG for channels in Bouquets - change requested #90 Huevos

  • PLi® Contributor
  • 4,624 posts

+161
Excellent

Posted 23 June 2019 - 02:52

No need to do that.. in post #39 I already fixed that - as I also discovered it...

Better test it and when issues are discovered fix it..

 

I think string match here is more sufficient. No need to make it extra complex by converting the stuff to e.g. a list of integers and then compare lists- this is more complicated... The service references come as string with hexadecimal characters and : as seperator. We can consider to remove the ":".join(of course and then compare list of strings).

 

This is just an example how we can work together!

1:0:02:1292:07EA:2:011A0000:0:0:0:

Reason I said convert to numbers was not for efficiency. Current commit does not work where there are leading zeros. Nor does it handle namespace subnet.

 

In my opinion it is more important that it works properly than a few extra seconds in run time.



Re: Only import EPG for channels in Bouquets - change requested #91 littlesat

  • PLi® Core member
  • 57,065 posts

+698
Excellent

Posted 23 June 2019 - 07:15

Why should that not work? You compare string with string? Explain me more about the cullpit. Maybe something else should be changed. How did you get these leiding zero’s in there? They are muda (not needed) and then you have on one pace them and on tbr other side of the conparison not. Converting to integer takes time in a long list so it is preferable to solve it at the source.
Previously you should also had this is as we also had string comparing. So actually you also describe a different issue. Maybe when we read the bouquets we should remove them? Or in the xml download formatring or so we should remove them. First please investigate where it does come from because on more places in e2 where references are compared this will go wrong.
I prefer to solve it at the source and not work-a-round somewhere ‘later’.

Edited by littlesat, 23 June 2019 - 07:52.

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


Re: Only import EPG for channels in Bouquets - change requested #92 doglover

  • Rytec EPG Team
  • 17,363 posts

+657
Excellent

Posted 23 June 2019 - 08:42

Service refs with leading zero's, yes they could be a problem.

 

1. All the enigma2 stuff do not produce service refs with leading zero's

2. The fastscan's also do not produce them.

3. In constructing the channels file for EPGimport, I was very aware of this and avoid them.  Although I cannot guaranty that none exist.  But if it exist it should be changed and not programmed for.

 

Where they come from:

 

From people using all kinds of software, and manually put these into bouquets.

According to my knowledge Dreamset and Dreamboxedit do not use these service refs with leading zero's.

 

Although they could be a problem.  However the problem is created by people doing manual stuff.
And if they run into problems with that, so be it.  You cannot program for every mistake somebody makes.


Edited by doglover, 23 June 2019 - 08:45.

~~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: Only import EPG for channels in Bouquets - change requested #93 LraiZer

  • Senior Member
  • 101 posts

+19
Neutral

Posted 23 June 2019 - 10:37

I prefer to solve it at the source and not work-a-round somewhere ‘later’.

They were only introduced last night during a larger patch commit, I have now removed the leading zeros at the source.



Re: Only import EPG for channels in Bouquets - change requested #94 littlesat

  • PLi® Core member
  • 57,065 posts

+698
Excellent

Posted 23 June 2019 - 10:59

I still don’t understand where they did come from...

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


Re: Only import EPG for channels in Bouquets - change requested #95 Huevos

  • PLi® Contributor
  • 4,624 posts

+161
Excellent

Posted 23 June 2019 - 12:06

Littlesat, the reason this is happening is because you insist on using a string comparison to compare numbers. Leading zero and upper/lower case are all vallid ways to write a hex value.

 

Also, because you are not comparing numbers this will also break when namespace subnet is enabled/disabled.



Re: Only import EPG for channels in Bouquets - change requested #96 littlesat

  • PLi® Core member
  • 57,065 posts

+698
Excellent

Posted 23 June 2019 - 12:31

I do not agree... string compare should work here. It was never there before... how do you get these ‘invalid’ not required leading zero’s? When the format is appropriate it should go right and it does not care at all...
As far I see it the format is without leading zero’s and not with...

Edited by littlesat, 23 June 2019 - 12:52.

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


Re: Only import EPG for channels in Bouquets - change requested #97 Huevos

  • PLi® Contributor
  • 4,624 posts

+161
Excellent

Posted 23 June 2019 - 13:52

Leading zeros is a valid way to write hex numbers.

sRefToNum(sref):
	s, t, o, n = sref.toString().split(':')[3:7]
	return int(s, 16) << 48 | int(t, 16) << 32 | int(o, 16) << 16 | int(n, 16) >> 16

That will fix that problem and the namespace subnet problem.



Re: Only import EPG for channels in Bouquets - change requested #98 Lost in Space

  • Senior Member
  • 876 posts

+69
Good

Posted 23 June 2019 - 14:01

well, there was a reason why I used only split(":") and %s:%s ... in my code (not even a join), to preserve whatever garbage the code has to handle  :P


Edited by gutemine, 23 June 2019 - 14:02.


Re: Only import EPG for channels in Bouquets - change requested #99 littlesat

  • PLi® Core member
  • 57,065 posts

+698
Excellent

Posted 23 June 2019 - 15:30

Bases on the structured programming princilples I would say fix it at the source and make it consequent.... it is or leading zero’s or never.. I would say do it never... .and not try to fix it afterwards with %s tricks and convert it to integer...
I still don’t understand how you het the leading zero’s

Edited by littlesat, 23 June 2019 - 15:32.

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


Re: Only import EPG for channels in Bouquets - change requested #100 Huevos

  • PLi® Contributor
  • 4,624 posts

+161
Excellent

Posted 23 June 2019 - 15:41

I don't know what you mean "fix" at source. These are valid values. Enigma does not see them as faulty values. There is nothing to "fix" elsewhere. The problem is in the plugin not comparing one hex value to another hex value properly.

 

Also, you are converting to upper case. If your argument is "fix" at source why is that also not fixed at source?

 

Internally in enigma c++ code these are dealt with as intergers so why should it be any different here?

 

Also you are still avoiding the issue of namespace subnet. In PLi that is a value the user can turn on and off from the menu.




3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users