Picons: Service Named Picons

There are 19 replies in this Thread which was already clicked 7,683 times. The last Post () by urie.

  • 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/eni…8701f55aa4b382e525031966e





    # picon by channel name



    name = unicodedata.normalize('NFKD', unicode(name, 'utf_8')).encode('ASCII', 'ignore')
    excludeChars = ['/', '\\', '\'', ''', '`', '?', ' ', '(', ')', ':', '<', '>', '|', '.', '\n']



    name = name.replace('&', 'and')
    name = name.replace('+', 'plus')
    name = name.replace('*', 'star')
    name = name.lower()





    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. SNPs use the name form lamedb so this causes an incompatibility issue. As AB 28.2 has AutoPicons, best to continue using that.



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

    Quote


    - - - Updated - - -


    For the benefit of PLI users



    File goes in /usr/lib/enigma2/python/Components/Renderer/ and must have 644 properties. Please back up your existing one first just in case. I have tested this on a DM800 using PLI

    OpenViX on Twitter @0penViX

  • yes as long as you FTP the file I uploaded above to the correct location then use one of the reconfigured picon packs from the download site, not sure about the likes of BH or VTI though but I cant see a reason why it would not work with them too.

    OpenViX on Twitter @0penViX

    • Official Post

    Interesting, seems pretty simple and i can appreciate the benefits of this. Renaming picons has become annoying to say the least....
    Few questions.....


    1. Will this work on cable and terrestrial Channels ?
    2. What about multi sat set-ups??...( channels names will be the same on multiple satellites.... but picons are differant currently )
    3. Can hard drive still be used as picon location ?


    Thanks

    • Official Post


    2. What about multi sat set-ups??...( channels names will be the same on multiple satellites.... but picons are differant currently )


    The conventional service refernce picons are higher up in the selection list. So use those as normal. Same thing applies to the ITV channels. If you have picons with the region name on them, continue to use the ones with the service reference name.


    - - - Updated - - -


    I have uploaded a couple of sets here. There are Ocram's ones fron October on the Openvix download site.

  • The picon directory which the link should take you too has been removed from the openViX Download Centre....... hopefully should be back up soon.



    Our server where we house the feeds and our openvix image repository was hacked. Hopefully we should be back to full strength soon if we're not already (have not checked yet as I'm at work).

    OpenViX on Twitter @0penViX

    • Official Post

    Just to add, Service Named Picons (SNP) have been in all mainstream images since 2014. Surprisingly, people still want to use Service Reference Picons (SRP) and keep changing the names whenever there is a transponder change


    SNP code was introduced to OpenPLI on 8th November 2014 in this commit: https://github.com/OpenPLi/eni…ba36c3205af179b93fad86e38

    SNP code was introduced to OpenATV on 5th November 2014 in this commit: https://github.com/openatv/eni…8701f55aa4b382e525031966e


    To recap:

    Instead of using the service reference for the picon filename, the channel name is used instead, but at that time these were conceived it was decided to only allow lowercase ASCII letter and number characters. i.e. a-z and 0-9. All other characters, spaces, symbols, etc. were sent to the dustbin. This approach allowed for frequency and identifier changes and still continued to work, and was human readable.


    The limitation/problem with Service Name Picons is that the algorithm only allows a-z and 0-9 and no other characters. This is ok for channels that use the western alphabet without accents or special chars but not for Arabic ( اسم قناتي ) or Bulgarian ( Диема ХД ) or even western European ( Áèíöúñ ).

    • Official Post

    UTF-8 Service Name Picons:


    Support for UTF8SNP was added to OpenPLI on 1st April 2024 in this commit:https://github.com/OpenViX/eni…57765a766dad42d67d13b502a

    Support for UTF8SNP was added to OpenPLI on 1st April 2024 in this commit: https://github.com/O...2f53d1b522ac3a4
    Support for UTF8SNP was added to ATV on 11th December 2024 in this commit: https://github.com/openatv/enigma2/comm ... f0862711ac



    UTF-8 is a character encoding system, created in 1993, that can represent more that one million characters. UTF-8 has become the de facto standard and today almost all webpages worldwide use this encoding. You can read more about it on Wikipedia ( https://en.wikipedia.org/wiki/UTF-8 ). Also, UTF-8 is the default encoding in Python 3 (which all images have now migrated to) and the characters are fully compatible with the Linux file system. So now the channel "Диема ХД" can have a picon with the filename “диема хд.png”. This type of picons are already in the feeds (packages marked utf8snp).


    Some of the picon packs on the image's plugin server are built from https://github.com/picons/picons so any problems with the packages should be reported there. The support for SNP on that project will be removed at some stage, so please start using the utf8snp sets and report issues before SNP sets are stopped.


    You must uninstall the other versions of picons (SRP or SNP) before installing the utf8snp version.

    • Official Post

    You can have all three types in one folder. The priority of searches by Enigma2 is:

    Exact SRP

    Modified SRP (e.g namespace/dvb type changes)

    Utf8SNP

    SNP



    With ocrams picons packs, you cannot change between picon packs, you have to uninstall one before installing another. For argument's sake, if you installed an SRP version and wanted to install an SNP one. You installed 220x132 220 x132 but wanted to use 220x132 190x102. You installed dark on light and then wanted to install light on transparent. Any of these type of changes will result in a clash. You have to uninstall the first one before installing the next.


    For Ocram's packs, I decided against adding utf8snp links in the SNP.index files. People get confused by the fact that logo names and picon names are different. We would then have ask is that the SNP name or utf8snp name? Moreover, there are a lot of dead links. The utf8snp packs contain more working links than SNP ones anyway.


    If you are using another SNP picon pack or ones from kiddac's plugin, you could rename them. But why would you when both naming types work.


    If you install the "missing picons" plugin, it creates CSV files with symlinks to SRP which you could apply. But they will only work for current names and valid references. Better to just rename them when they change. This is why I find that other picon thread to be inefficient.

    • Official Post

    A script to rename SRPicons to UTF8SNPicons by Huevos is here

    https://gist.githubusercontent.com/Huevos/17a267b68851319f48c4dcd272882b03/raw/2affe9daa30c183378366ff778999aa14b2901a0/picons-rename.py


    Download and transfer to /hdd. Ensure it has 755 properties

    Invoke by issuing following command

    python /hdd/picons-rename.py

    It will create the renamed picons in /tmp directory of your receiver

    • Official Post

    Your question are specific to your personal requirements, not to this generic thread.


    As SNP strips characters out, how is a computer meant to read a picon name and guess what has been stripped out?. As I mentioned to you in PM and on the other forum, you don't need to rename from SNP to UTF8SNP. Both naming systems as well as SRP are supported by Enigma2. If you are determined to convert them, perhaps a different thread is better. You will have to use the output from missing picon to create commands to rename files. But you run the risk of renaming files that will be needed later in the process. You are duplicating files with different filenames. You wanted to reduce number of files but doing the opposite. As I said in PM, you are better off having symlinks instead of duplicating file names.

  • Your question are specific to your personal requirements, not to this generic thread.


    As SNP strips characters out, how is a computer meant to read a picon name and guess what has been stripped out?. As I mentioned to you in PM and on the other forum, you don't need to rename from SNP to UTF8SNP. Both naming systems as well as SRP are supported by Enigma2. If you are determined to convert them, perhaps a different thread is better. You will have to use the output from missing picon to create commands to rename files. But you run the risk of renaming files that will be needed later in the process. You are duplicating files with different filenames. You wanted to reduce number of files but doing the opposite. As I said in PM, you are better off having symlinks instead of duplicating file names.

    Ok fair enough I was just worried if the removed option to read snp picons.

Download and get support for custom Enigma2 picons.

Your source for Enigma2 picon support and downloads, featuring custom international cable, satellite and IPTV channel logos. Access a wide selection of UK and foreign satellite channel logos to personalize your setup.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!