Jump to content


Photo

Selective exception reading EPG from DVB


  • Please log in to reply
20 replies to this topic

#1 bigroma

  • Member
  • 35 posts

+11
Neutral

Posted 30 October 2011 - 18:34

Sometimes we can get from Inet great EPG for some providers, but wrong or weak EPG from DVB overwrite downloaded EPG.

I made patch for disabling EPG from DVB for selected ONID.

From file /etc/blacklist.onid E2 gets list of ONIDs

Format /etc/blacklist.onid
0xFFFF
0xFFFF
......
0xFFFF

I made patch for 10 ONIDs max. I think it's enough. I don't see sense for many ONID filters.

Now I didn't make any tools for edit this list by remote, only vim :)

Attached Files



Re: Selective exception reading EPG from DVB #2 attaros

  • Senior Member
  • 52 posts

0
Neutral

Posted 2 January 2012 - 20:11

Hi,

Does OpenPli image implement an EPG Blacklist for DVB-S (with the functionality descibe as below) ?

There are several (i suppose open source) images, which implements this feature usefull for example in italy to avoid wrong EPG sent from Mediaset via Satellite.

Ciao
attaros

Sometimes we can get from Inet great EPG for some providers, but wrong or weak EPG from DVB overwrite downloaded EPG.

I made patch for disabling EPG from DVB for selected ONID.

From file /etc/blacklist.onid E2 gets list of ONIDs

Format /etc/blacklist.onid

0xFFFF
0xFFFF
......
0xFFFF

I made patch for 10 ONIDs max. I think it's enough. I don't see sense for many ONID filters.

Now I didn't make any tools for edit this list by remote, only vim :)



Re: Selective exception reading EPG from DVB #3 robertut

  • Senior Member
  • 347 posts

+2
Neutral

Posted 5 July 2012 - 09:59

Was this patch added to main OpenPLi tree?

It would be very important not only in Rytec's context...

Re: Selective exception reading EPG from DVB #4 aicon

  • Member
  • 6 posts

0
Neutral

Posted 23 September 2012 - 05:57

Sometimes we can get from Inet great EPG for some providers, but wrong or weak EPG from DVB overwrite downloaded EPG.

I made patch for disabling EPG from DVB for selected ONID.

From file /etc/blacklist.onid E2 gets list of ONIDs

Format /etc/blacklist.onid

0xFFFF
0xFFFF
......
0xFFFF

I made patch for 10 ONIDs max. I think it's enough. I don't see sense for many ONID filters.

Now I didn't make any tools for edit this list by remote, only vim :)


How to use this patch?
Where to copy?
What to do next?

Thanks.

Re: Selective exception reading EPG from DVB #5 MiLo

  • PLi® Core member
  • 14,042 posts

+298
Excellent

Posted 23 September 2012 - 15:06

Sometimes we can get from Inet great EPG for some providers, but wrong or weak EPG from DVB overwrite downloaded EPG.

I made patch for disabling EPG from DVB for selected ONID.

From file /etc/blacklist.onid E2 gets list of ONIDs

Format /etc/blacklist.onid

0xFFFF
0xFFFF
......
0xFFFF

I made patch for 10 ONIDs max. I think it's enough. I don't see sense for many ONID filters.

Now I didn't make any tools for edit this list by remote, only vim :)


If you want this in the mainline, consider the following:
- Use an std::vector<unsigned short> to store the list, that rids you of the "10" limit,
- Use scanf() directly instead of fgets+sscanf, that prevents buffer troubles
- Put the list in /etc/enigma2/ so that backups will automatically preserve this file too
Real musicians never die - they just decompose

Re: Selective exception reading EPG from DVB #6 Dimitrij

  • PLi® Core member
  • 9,964 posts

+334
Excellent

Posted 23 September 2012 - 16:35

Milo do a good deed, write a proper patch and add to your image.

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


Re: Selective exception reading EPG from DVB #7 bigroma

  • Member
  • 35 posts

+11
Neutral

Posted 27 September 2012 - 18:43

Milo, please check, is it right?

I use std::hex instead fscanf, but i hope it isn't problem.

P.S. thx for advice about std::vector. With vector code is realy better.

Attached Files


Edited by bigroma, 27 September 2012 - 18:44.


Re: Selective exception reading EPG from DVB #8 grizli

  • Member
  • 2 posts

0
Neutral

Posted 30 September 2012 - 07:26

feature is really useful for many people, and I hope it will be a place in the image.
because this software are many, and outputting not only developers ...

Re: Selective exception reading EPG from DVB #9 westsib

  • Senior Member
  • 52 posts

+2
Neutral

Posted 30 September 2012 - 07:51

I support and please Milo question of Bigroma draw attention.
I'm think that this patch definitely makes OpenPLi better.!!!

Re: Selective exception reading EPG from DVB #10 prekon

  • Member
  • 1 posts

0
Neutral

Posted 30 September 2012 - 07:53

Thank bigroma, this software is very neodhodim.Ya think will be of help.

Re: Selective exception reading EPG from DVB #11 MiLo

  • PLi® Core member
  • 14,042 posts

+298
Excellent

Posted 30 September 2012 - 08:17

Milo, please check, is it right?

I use std::hex instead fscanf, but i hope it isn't problem.

P.S. thx for advice about std::vector. With vector code is realy better.


Excellent, just two comments remaining and then it's perfect and ready for inclusion:
- Move the "#include <fstream>" to the .cpp file
- Remove the "if (!empty...)", the "find" handles empty lists just fine.
Real musicians never die - they just decompose

Re: Selective exception reading EPG from DVB #12 2boom

  • Senior Member
  • 100 posts

+17
Neutral

Posted 30 September 2012 - 09:01

expect a really useful feature

Re: Selective exception reading EPG from DVB #13 bigroma

  • Member
  • 35 posts

+11
Neutral

Posted 30 September 2012 - 18:32

Excellent, just two comments remaining and then it's perfect and ready for inclusion:
- Move the "#include <fstream>" to the .cpp file
- Remove the "if (!empty...)", the "find" handles empty lists just fine.


fixed

Attached Files



Re: Selective exception reading EPG from DVB #14 bigroma

  • Member
  • 35 posts

+11
Neutral

Posted 30 September 2012 - 18:59

I'm looking place in menu for "Block/Unblock EPG from current OnID" item.
I'm finding place only in Channel list menu, but this place don't like for me.
May be someone have good idea?

Edited by bigroma, 30 September 2012 - 19:01.


Re: Selective exception reading EPG from DVB #15 westsib

  • Senior Member
  • 52 posts

+2
Neutral

Posted 30 September 2012 - 22:01

There are already in the channel list menu, a point configuration in which you can set each channel individually.

Re: Selective exception reading EPG from DVB #16 Dimitrij

  • PLi® Core member
  • 9,964 posts

+334
Excellent

Posted 1 October 2012 - 06:35

I'm looking place in menu for "Block/Unblock EPG from current OnID" item.
I'm finding place only in Channel list menu, but this place don't like for me.
May be someone have good idea?

Let's wait for the first patch to enable the assembly :D .

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


Re: Selective exception reading EPG from DVB #17 MiLo

  • PLi® Core member
  • 14,042 posts

+298
Excellent

Posted 3 October 2012 - 19:04

Committed the patch. Now that you've shown both incentive and capacity, we'll be expecting at least the same quality for future work :)
Real musicians never die - they just decompose

Re: Selective exception reading EPG from DVB #18 raikol

  • Member
  • 10 posts

0
Neutral

Posted 3 October 2012 - 22:12

Only just for know, will this patch be submitted to the official repository?? How can we get that?

Re: Selective exception reading EPG from DVB #19 littlesat

  • PLi® Core member
  • 56,123 posts

+685
Excellent

Posted 4 October 2012 - 06:40

Yes - and just upgrade and/or flash an OpenPLi image from today...

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


Re: Selective exception reading EPG from DVB #20 attaros

  • Senior Member
  • 52 posts

0
Neutral

Posted 24 December 2012 - 16:31

Hi,

Can somebody post a /etc/blacklist.onid valid for excluding Mediaset Italy EPG ?


Thanks
attaros


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users