Superb quality and spec AB-Com PULSe 4K SE. Crazy offer! Only £99! FREE UK DELIVERY! 4K UHD, Enigma 2, Multiboot 4 images & more!...
Superb quality and spec AB-Com PULSe 4K Rev II Twin Satellite tuner only £149! FREE UK DELIVERY! 4K UHD, Enigma 2, SATA HDD facility, Multiboot 4 images & more!...

Picons: SNP (Service Name Picons)

Status
Not open for further replies.

abu baniaz

Moderator
Joined
Sep 16, 2010
Messages
24,112
Reaction score
178
Points
63
Location
East London
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/...1966e/lib/python/Components/Renderer/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/showthread.php?44851-Rename-Picons-to-SNP-format
http://www.world-of-satellite.com/showthread.php?45007-List-missing-picons
 
Last edited:
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?
 
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
 
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.
 
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 :)
 
i will test this later i juts need to get back ultimo lcd picons.
 
Thanks Rossi. Forked and committed the changes, will just wait for the OK from a a couple of people before submitting pull request.
 
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
 
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.
 
Fair enough - his code is tidier than mine was too :p.
 
How do i get the service named picons to work in LCD4linux?
Running Apollo 080 on a Duo2
 
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.
 
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
 
We'll need to look at lcd4linux. I don't think it has been addressed yet.

EDIT
Backup your copy first. Place attached pyo file after (extracting) in

Code:
[B]/usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/controllers/models[/B]
Thanks for that, maybe a dumb question but what does this file do? What i want is the snp to appear on the front panel lcd

From your previous post i am guessing this isn't possible at the moment with LCD4linux, am i right?
 
will this change be added to the Vix update
 
will this change be added to the Vix update
There are sets of files which are used when the images are made. The change has already been made and will be included in the next update

It was also added to the main webif set of files for the benefit of all the E2 community.

I also uploaded the file primarily for the smart TV app testers as well as other people who cannot wait.
 
Hi Peeps, Has anyone got E! and E!+1 SNP Picons working. I've renamed to what it should be but to no avail? Any ideas peeps?


lowercase, drop the ! mark, and + becomes plus,

so e.png and eplus1.png
 
Status
Not open for further replies.

OpenViX Feeds Status

Back
Top