PosterX - POSTER SUPPORT FOR SKINS

There are 81 replies in this Thread which was already clicked 16,544 times. The last Post () by digiteng.

  • PosterX - POSTER SUPPORT FOR SKINS


    new version poster support...

    better performance as files are downloaded in the background...

    download a lot of posters...

    The poster is downloaded only when the channel is zapped with the infobar...

    Of course, if it's already downloaded, it won't be downloaded...

    channel list, second infobar, epg, event support...

    various options support...


    # for infobar,

    Code
    <widget source="session.Event_Now" render="PosterX" position="0.125" size="185,278" path="/media/hdd/poster/" nexts="10" language="en" zPosition="9" />


    or,

    Code
    <widget source="session.Event_Now" render="PosterX" position="0.125" size="185,278" zPosition="9" />


    # for ch,

    Code
    <widget source="ServiceEvent" render="PosterX" position="820,100" size="100,150" path="/media/hdd/poster/" zPosition="9" />


    #for secondInfobar,

    Code
    <widget source="session.Event_Now" render="PosterX" position="20,155" size="100,150" path="/media/hdd/poster/" zPosition="9" />
    <widget source="session.Event_Next" render="PosterX" position="1080,155" size="100,150" path="/media/hdd/poster/" zPosition="9" />


    # for epg, event

    Code
    <widget source="Event" render="PosterX" position="931,184" size="185,278" path="/media/hdd/poster/" zPosition="9" />


    OPTIONS,

    for infobar...

    just add "path" to others...


    PATH:

    path="/media/hdd/poster/"


    the possibility of downloading to the location you specify...

    If the folders do not exist, they are created automatically...

    example,

    path="/x/y/z/"

    x, y, z folders are created and downloaded to the z folder...


    path must start with / and end with /...

    default location if not included in the code; /tmp/poster/

    If the infobar is not added to the code, you don't need to add it to other codes...


    NEXT:

    next="5"


    download as many posters as you want...

    the value here is the number of events...

    not the number of posters...

    If each event is different, the poster will go down as much as the value you write.

    I tested with 50...

    the default value is 1 if not added to the code...

    1 poster is downloaded...


    LANGUAGE:

    language="ru"

    You can add it to the code to download posters in your language...

    If there is no poster in your language or if you don't include it in the code, it will download in the default language (tmdb)


    SIZE:

    size="185,278"


    The poster will be downloaded in the dimensions you specify...

    you need to adjust the position accordingly...

    Auto scale is available for ch,si,epg,event...


    tmdb poster values,

    "poster_sizes": [

    "w92",

    "w154",

    "w185",

    "w342",

    "w500",

    "w780",

    "original"


    ratio = 1:1.5

    should be...

    example, size="342,513"

    note: You can download it as size="300, 450"... but it will render it so theoretically it may cause lag...

    no discernible lag in testing...


    russian and py3 support by sunriser, thanks...


    e8eca203fd009117f2c07d0.jpg04d858f8240f29.jpg431fa0911e166854cccf268c4.jpgd0c472f2eb4b652e3544dd6.jpg8510d47ae.jpgb3d97b68511f91.jpg


    go to,

    /usr/lib/enigma2/python/Components/Renderer/


    update 09.2021


    PosterX.py

  • thanks for your work but it doesnt work for me

    i used the default tmdb api and i created mine and used it but not work too

    i used my own path for posters and deleted the path to use the default one but not work too

    BTW , i used the previous version " the attached one " and it works good



    edit : it works after some trials , thanks again

    but another question , can it download backdrop or banner ?

  • There are backdrops and banners...



    bcdrp-bnnr-info.zip


  • change this line...16

    from Renderer import Renderer

    to

    from Components.Renderer.Renderer import Renderer




    # for infobar,

    # <widget source="session.Event_Now" render="PosterX" position="0,125" size="185,278" path="/media/hdd/poster/" nexts="10" language="en" zPosition="9" />

  • Many thanks and appreciation for your contributions and additions

    Especially in rendering and displaying posters

    It was completed successfully after following your last modifications

    I only need to edit fetching the poster in the next event it does not work and so is the attached epg as attached


    57f5dcc0e89.jpg

    36c0ccecbc3a0575a3c64.jpg

    ee05000118ceea4e10f47dd4c.jpg

    660b79223cebb0.jpg

    1f2db03cd13b.jpg

  • in this screen by this code

    Quote

    <widget source="session.Event_Next" render="PosterX" position="1080,155" size="100,150" zPosition="9" />

    notice that i removed the path code

    poster in next events works using this code

    Quote

    <widget source="Event" render="PosterX" position="931,184" size="185,278" path="/media/hdd/poster/" zPosition="9" />

    still not working


    5b0b09cb19fb1dd0c3c83e00c.jpg

  • sometimes, this can happen in the second infobar...

    I do not know why...

    A minor change in code may be required...

    Of course it may not be a poster...


    you can try for infobar...

    source="session.Event_Now"

    source="session.Event_Next"

    using...

  • Dear digiteng

    can we add 2 language to search for as (language="en" , "ar") and it's not stb language

    I know tmdb site doesn't support two languages...

    if you set language, that language will be the first choice,

    if there is no poster, the poster will be downloaded in default (I think english) language...

    seems to be doable with this code, but it slows down, performance issue may occur...

    The possibilities of the tmdb api are the best...

    poster language has nothing to do with stb language...

  • clever idea this,


    regarding languages

    can you not just read the settings file


    config.osd.language=en_GB


    and just use the first 2 characters. ;)

    and the TMBD language abbreviations i use in my plugins

    languages = [

    ('en', 'English'),

    ('de', 'Deutsch'),

    ('es', 'Español'),

    ('fr', 'Français'),

    ('it', 'Italiano'),

    ('nl', 'Nederlands'),

    ('tr', 'Türkçe'),

    ('cs', 'Český'),

    ('da', 'Dansk'),

    ('hr', 'Hrvatski'),

    ('hu', 'Magyar'),

    ('no', 'Norsk'),

    ('pl', 'Polski'),

    ('pt', 'Português'),

    ('ro', 'Română'),

    ('ru', 'Pусский'),

    ('sh', 'Srpski'),

    ('sk', 'Slovenčina'),

    ('fi', 'suomi'),

    ('sv', 'svenska'),

    ('uk', 'Український'),

    ('ar', 'العربية'),

    ('bg', 'български език'),

    ('el', 'ελληνικά'),

    ('sq', 'shqip')

    ]

    ** A person who feels appreciated will always do more than what is expected **

  • this is not a problem...

    but, for example,

    stb language english poster first choice can be german...

    I didn't use the stb language directly for that...

  • or for language from box


    languagebox = os.popen("cat /etc/enigma2/settings | grep config.osd.language|sed '/^config.osd.language=/!d'").read().replace('config.osd.language=', '').replace('_', '-').replace('\n', '')

    languagebox = languagebox[:-3]


    print('Language= ', languagebox)


    Language= en

  • Lululla is that add to language at tmp or in the PosterX .py file, is that fit for add arabic

    Thanks in advance

Participate now!

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