Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 1 of 3 123 LastLast
Results 1 to 15 of 35

Thread: Picons: SNP (Service Name Picons)

  1. #1
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,541
    Thanks
    6,517
    Thanked 9,224 Times in 6,287 Posts

    Picons: SNP (Service Name Picons)

    As people are aware, keeping up with service refernce changes and renaming picons has been a long standing menial issue.

    From next image after Apollo 73, the picon code has been adapted to do away with the dependence on service reference. Picons will now be displayed based on the channel name subject to the naming parameters listed further down. This will mean the picon makers can now concentrate on making picons and not bother about keeping up with service reference changes.

    The Service Named Picons (SNPs) are lower in the selection list than the conventional Service Reference Picons (SRPs). This is useful were a channel has the same name on different satellites and you wish to use a different picon for some of them. Nothing has changed with regards to picon locations.

    The commit is below. It is opensource and other image makers are free to adopt this.
    https://github.com/OpenViX/enigma2/b...derer/Picon.py


    if not pngname: # picon by channel name
    name = ServiceReference(serviceName).getServiceName()
    name = unicodedata.normalize('NFKD', unicode(name, 'utf_8', errors='ignore')).encode('ASCII', 'ignore')
    name = re.sub('[^a-z0-9]', '', name.replace('&', 'and').replace('+', 'plus').replace('*', 'star').lower())
    if len(name) > 0:
    pngname = findPicon(name)
    if not pngname and len(name) > 2 and name.endswith('hd'):
    pngname = findPicon(name[:-2])
    Hypothetical channel "DDC One London +1" will require a picon called "ddconelondonplus1.png"

    We will endeavour to have the SNPs on the feeds, but as they are lower in the selection list, it is not important.

    Lraizer's plugin users
    For users of Lraizer's plugin, the LCN is attached to the service name. Versions newer than 13/11/2014 allows you to select in teh autpopicon section if you decide to use the "Print channel number" feature.


    EDIT 08 NOV 2014:
    The service named Picons have been placed in the Picon folder on the openvix download site

    "Plugins" to rename/list picons can be downloaded from links below.
    http://www.world-of-satellite.com/sh...-to-SNP-format
    http://www.world-of-satellite.com/sh...missing-picons
    Last edited by abu baniaz; 26-06-15 at 02:25. Reason: Added rename script here

  2. The Following 18 Users Say Thank You to abu baniaz For This Useful Post:

    + Show/Hide list of the thanked

    bigbaz (15-11-14),birdman (07-11-14),codar (03-06-15),duoduo (06-11-14),GSM44 (21-02-21),Larry-G (07-11-14),maggiesfan (09-11-14),mcquaim (06-11-14),MK (06-11-14),Newtix (06-11-14),nsw9154 (07-11-14),pac2000 (10-12-14),rossi2000 (06-11-14),s31teg (07-11-14),Sicilian (07-11-14),skratch (27-01-17),steveycarr (07-11-14),ukbob (07-11-14)

  3. #2

    Title
    Senior Member
    Join Date
    Nov 2011
    Posts
    245
    Thanks
    98
    Thanked 43 Times in 32 Posts
    The code change looks so simple. Great idea whoever came up with it!

    I notice it doesn't work on the LCD Picons. I guess the same changes need to be applied to LcdPicon.py?

  4. #3

    Title
    Senior Member
    Join Date
    Nov 2011
    Posts
    245
    Thanks
    98
    Thanked 43 Times in 32 Posts
    Signed up to make the changes, but need to be on the branch so guess someone else will have to do it . Looking at it, it should just be a matter of copying the commit changes in Picon.py to LcdPicon.py

  5. The Following User Says Thank You to Silent For This Useful Post:

    Larry-G (09-11-14)

  6. #4
    Larry-G's Avatar
    Title
    V.I.P
    Donated Member
    Join Date
    May 2010
    Posts
    32,542
    Thanks
    7,824
    Thanked 22,937 Times in 12,378 Posts
    you should still be able to submit questions and comments on the GIT so do that and some one will pick it up for you.


    Just make sure you have tested your code first before uploading it, so that it does not affect any thing else in the image.
    My posts contain my own personal thoughts and opinions, they do not represent those of any organisation or group but my own.

    If you don't like what I post, Don't read it.

    SIMPLES.

  7. The Following User Says Thank You to Larry-G For This Useful Post:

    Silent (09-11-14)

  8. #5

    Title
    Moderator
    Join Date
    Jul 2010
    Posts
    4,684
    Thanks
    1,205
    Thanked 2,524 Times in 1,349 Posts
    Quote Originally Posted by Silent View Post
    Signed up to make the changes, but need to be on the branch so guess someone else will have to do it . Looking at it, it should just be a matter of copying the commit changes in Picon.py to LcdPicon.py
    if you setup on github, you can fork the e2 git to your own github, make the changes and then submit a pull request to us for your changes.
    please test before submitting aswell
    Vu Ultimo4K, OpenViX 5.0, 8xdvb-c, 8xdvb-s2, 2xdvb-t2
    Vu Solo4K, OpenViX 5.0, 8xdvb-s2
    Dreambox DM900, OpenViX 5.0, 2xdvb-s2, 2xdvb-c/t2
    Terrestrial, Cable, Fixed 28.2e + Unicable2 LNB

  9. The Following 2 Users Say Thank You to rossi2000 For This Useful Post:

    Larry-G (09-11-14),Silent (09-11-14)

  10. #6

    Title
    Moderator
    Join Date
    Jul 2010
    Posts
    4,684
    Thanks
    1,205
    Thanked 2,524 Times in 1,349 Posts
    i will test this later i juts need to get back ultimo lcd picons.
    Vu Ultimo4K, OpenViX 5.0, 8xdvb-c, 8xdvb-s2, 2xdvb-t2
    Vu Solo4K, OpenViX 5.0, 8xdvb-s2
    Dreambox DM900, OpenViX 5.0, 2xdvb-s2, 2xdvb-c/t2
    Terrestrial, Cable, Fixed 28.2e + Unicable2 LNB

  11. #7

    Title
    Senior Member
    Join Date
    Nov 2011
    Posts
    245
    Thanks
    98
    Thanked 43 Times in 32 Posts
    Thanks Rossi. Forked and committed the changes, will just wait for the OK from a a couple of people before submitting pull request.

  12. #8
    No.Trace's Avatar
    Title
    Senior Member
    Join Date
    Mar 2011
    Location
    Germany
    Posts
    218
    Thanks
    14
    Thanked 25 Times in 21 Posts
    Hi there ...

    just a little question for better understanding ...
    will now work both versions of picon, or only the namend picons ?

    Thanks for a little help for a friend

    CU No.Trace
    - Vu+ Solo2 - Vu+ Solo SE V2 - Xtrend ET4000@750MHz - all with OpenVIX -

  13. #9
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,541
    Thanks
    6,517
    Thanked 9,224 Times in 6,287 Posts
    Quote Originally Posted by No.Trace View Post
    ..just a little question for better understanding ...
    will now work both versions of picon, or only the namend picons ?
    Both will work. Looks for the old way first, then new way.

  14. The Following User Says Thank You to abu baniaz For This Useful Post:

    No.Trace (11-11-14)

  15. #10

    Title
    Senior Member
    Join Date
    Nov 2011
    Posts
    245
    Thanks
    98
    Thanked 43 Times in 32 Posts
    LcdPicons.ly now merged. Last one will be services.py from OpenWebIF so it shows correctly on the WebIF and Apps etc. I've had a stab but can't get it working.

  16. #11
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,541
    Thanks
    6,517
    Thanked 9,224 Times in 6,287 Posts
    Thanks.

    Huevos has already comitted the changes for webif on the OE fork
    https://github.com/oe-alliance/e2ope...521da3e65bdb33

  17. #12

    Title
    Senior Member
    Join Date
    Nov 2011
    Posts
    245
    Thanks
    98
    Thanked 43 Times in 32 Posts
    Fair enough - his code is tidier than mine was too .

  18. #13

    Title
    Junior Member
    Join Date
    Sep 2012
    Posts
    19
    Thanks
    4
    Thanked 6 Times in 6 Posts
    How do i get the service named picons to work in LCD4linux?
    Running Apollo 080 on a Duo2

  19. The Following User Says Thank You to promark For This Useful Post:

    pembo (15-11-14)

  20. #14

    Title
    ViX Beta Tester
    Join Date
    Jun 2014
    Location
    UK
    Posts
    642
    Thanks
    157
    Thanked 318 Times in 173 Posts
    Quote Originally Posted by promark View Post
    How do i get the service named picons to work in LCD4linux?
    Running Apollo 080 on a Duo2
    I've just crossed this also - tried a few different things but doesn't appear to work with service names... had to point it to another directory with icons using the service id.

  21. #15

    Title
    Junior Member
    Join Date
    Sep 2012
    Posts
    19
    Thanks
    4
    Thanked 6 Times in 6 Posts
    Quote Originally Posted by pembo View Post
    I've just crossed this also - tried a few different things but doesn't appear to work with service names... had to point it to another directory with icons using the service id.
    Ye that's what I am doing at the moment too

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.