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.
Results 1 to 15 of 35

Thread: Picons: SNP (Service Name Picons)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    abu baniaz's Avatar
    Title
    Moderator
    Join Date
    Sep 2010
    Location
    East London
    Posts
    23,365
    Thanks
    6,445
    Thanked 9,160 Times in 6,235 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)

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.