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 2 of 4 FirstFirst 1234 LastLast
Results 16 to 30 of 55

Thread: Picons by name why dont they show up on openatv and vti images

  1. #16
    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
    there was another commit that ignored the first part.

  2. #17
    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 by name why dont they show up on open

    There is a program called easy python decompiler that can be used

    Edit2: Link to v 1.32
    Code:
    https://github.com/aliansi/Easy-Python-Decompiler-v1.3.2
    Edit:
    Sorry didn't see attachment earlier

  3. #18
    markus625's Avatar
    Title
    ViX Beta Tester
    Join Date
    Dec 2011
    Posts
    1,104
    Thanks
    208
    Thanked 711 Times in 266 Posts
    the reference 4097_ etc

    Only works if you got the satellite lists on ur box so 28.2e etc doesnt work for my american channels

  4. #19
    Huevos's Avatar
    Title
    Administrator
    Join Date
    Jun 2010
    Location
    38.5N, 0.5W
    Posts
    13,945
    Thanks
    2,062
    Thanked 5,145 Times in 3,395 Posts
    Quote Originally Posted by abu baniaz View Post
    there was another commit that ignored the first part.
    Which is why it works in OpenViX.
    Help keep OpenViX servers online.Please donate!

  5. #20
    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
    They don't even have SNP. Attached is the VTI py file. I have added a prefix to it.

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

    markus625 (03-12-19)

  7. #21
    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
    Here is the diff file between the file before we added SNP and the current one

    Code:
    --- C:\Users\User\Downloads\!Satellite\picon file\Picon.py_preSNP    2019-12-02 23:24:09.727000000 -0000
    +++ C:\Users\User\Downloads\!Satellite\picon file\Picon.py_20191202    2019-12-02 23:26:34.618000000 -0000
    @@ -1,9 +1,10 @@
    -import os
    +import os, re, unicodedata
     from Renderer import Renderer
     from enigma import ePixmap, ePicLoad
     from Tools.Alternatives import GetWithAlternative
     from Tools.Directories import pathExists, SCOPE_ACTIVE_SKIN, resolveFilename
     from Components.Harddisk import harddiskmanager
    +from ServiceReference import ServiceReference
     
     searchPaths = []
     lastPiconPath = None
    @@ -56,7 +57,7 @@
             global searchPaths
             pngname = ""
             for path in searchPaths:
    -            if pathExists(path) and not path.startswith('/media/net'):
    +            if pathExists(path) and not path.startswith('/media/net') and not path.startswith('/media/autofs'):
                     pngname = path + serviceName + ".png"
                     if pathExists(pngname):
                         lastPiconPath = path
    @@ -73,15 +74,33 @@
     
     def getPiconName(serviceName):
         #remove the path and name fields, and replace ':' by '_'
    -    sname = '_'.join(GetWithAlternative(serviceName).split(':', 10)[:10])
    -    pngname = findPicon(sname)
    -    if not pngname:
    -        fields = sname.split('_', 3)
    -        if len(fields) > 2 and fields[2] != '2': #fallback to 1 for tv services with nonstandard servicetypes
    -            fields[2] = '1'
    -        if len(fields) > 0 and fields[0] == '4097': #fallback to 1 for IPTV streams
    -            fields[0] = '1'
    +    fields = GetWithAlternative(serviceName).split(':', 10)[:10]
    +    if not fields or len(fields) < 10:
    +        return ""
    +    pngname = findPicon('_'.join(fields))
    +    if not pngname and not fields[6].endswith("0000"):
    +        #remove "sub-network" from namespace
    +        fields[6] = fields[6][:-4] + "0000"
    +        pngname = findPicon('_'.join(fields))
    +    if not pngname and fields[0] != '1':
    +        #fallback to 1 for IPTV streams
    +        fields[0] = '1'
             pngname = findPicon('_'.join(fields))
    +    if not pngname and fields[2] != '2':
    +        #fallback to 1 for TV services with non-standard service types
    +        fields[2] = '1'
    +        pngname = findPicon('_'.join(fields))
    +    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])
    +            if not pngname and len(name) > 6:
    +                series = re.sub(r's[0-9]*e[0-9]*$', '', name)
    +                pngname = findPicon(series)
         return pngname
     
     class Picon(Renderer):

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

    markus625 (03-12-19)

  9. #22
    markus625's Avatar
    Title
    ViX Beta Tester
    Join Date
    Dec 2011
    Posts
    1,104
    Thanks
    208
    Thanked 711 Times in 266 Posts
    Thanks for the help guys, I'll test the new py tonight after work.

  10. #23
    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 by name why dont they show up on open

    To clarify, I only decompiled the file uploaded in post 20. There are no changes to it that will enable SNP or deal with if first part of service reference is not 1 or 4097

    I also tried to download the file from the link you posted, but couldn't as I'm not a member on their site.

    Please post the file you edit here if it works.

  11. #24
    markus625's Avatar
    Title
    ViX Beta Tester
    Join Date
    Dec 2011
    Posts
    1,104
    Thanks
    208
    Thanked 711 Times in 266 Posts
    Quote Originally Posted by abu baniaz View Post
    To clarify, I only decompiled the file uploaded in post 20. There are no changes to it that will enable SNP or deal with if first part of service reference is not 1 or 4097

    I also tried to download the file from the link you posted, but couldn't as I'm not a member on their site.

    Please post the file you edit here if it works.
    Here is the py file that was modified in that post on the vu site I did try it but It didn't work
    Attached Files Attached Files
    Last edited by markus625; 03-12-19 at 11:13.

  12. The Following User Says Thank You to markus625 For This Useful Post:

    abu baniaz (03-12-19)

  13. #25
    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 markus625 View Post
    Here is the py file that was modified in that post on the vu site I did try it but It didn't work
    Were you using SNPicons or SRPicons?

    Do other SNPicons work with that file?

  14. #26
    markus625's Avatar
    Title
    ViX Beta Tester
    Join Date
    Dec 2011
    Posts
    1,104
    Thanks
    208
    Thanked 711 Times in 266 Posts
    Quote Originally Posted by abu baniaz View Post
    Were you using SNPicons or SRPicons?

    Do other SNPicons work with that file?
    I was using SNP picons and I never noticed anything change when reboot

  15. #27
    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
    That file looks like it should work. I am surprised they have not committed it. They still ought to add the splitting of service reference components, but that is another matter.

    Sorry to ask, but can you post the iptv service name and the picon name you were using? Perhaps a screenshot with sensitive bits edited out.

  16. #28
    markus625's Avatar
    Title
    ViX Beta Tester
    Join Date
    Dec 2011
    Posts
    1,104
    Thanks
    208
    Thanked 711 Times in 266 Posts
    I'll try when I get home from work matey

  17. #29
    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
    I think you need to be looking at the skin's renderer. I had this with a user of PurE2. The renderer in that image supports SNP, but the skin the user was using did not.

    If I am right, I am not surprised that the skin does not deal with SNPs, why would it when the stock image does not?

  18. #30
    markus625's Avatar
    Title
    ViX Beta Tester
    Join Date
    Dec 2011
    Posts
    1,104
    Thanks
    208
    Thanked 711 Times in 266 Posts
    I had the same issue when I tried the openatv image and had the same problem with picons.

Page 2 of 4 FirstFirst 1234 LastLast

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.