Posts by jeepcook

    Hello pepsik,


    Here is a crashlog during the process e2m3u2 process, probably during flushEPG.


    What do you think about please?


    Thanks


    Edit, analyze the log, the last line flushed is the second line of the bellow code ([eEPGCache] flushEPG svc(b3ac:95b3:0d77). The 2 following haven't been treated.


    Code
    #SERVICE 4097:0:1:5c07:75d3:d32d:1010101:0:0:0:https%3a//587286c0214643248b38410a58ba2066.mediatailor.us-east-1.amazonaws.com/v1/master/44f73ba4d03e9607dcd9bebdcb8494d86964f1d8/Samsung-it_RakutenDocumentaries/playlist.m3u8?ads.wurl_channel=722&ads.wurl_name=RakutenDocumentaries&ads.coppa=0&ads.psid=%7BPSID%7D&ads.targetopt=%7BTARGETOPT%7D&ads.app_domain=%7BAPP_DOMAIN%7D&ads.app_name=%7BAPP_NAME%7D&ads.consent=%7BTC_STRING%7D#sapp_tvgid=ITBA1400005XG:Documentari - Rakuten TV
    #DESCRIPTION Documentari - Rakuten TV
    #SERVICE 4097:0:1:d77:95b3:b3ac:1010101:0:0:0:https%3a//1c22f8b96aa546b6b49261186cf7b8e5.mediatailor.us-east-1.amazonaws.com/v1/master/44f73ba4d03e9607dcd9bebdcb8494d86964f1d8/Samsung-it_RakutenFamily/playlist.m3u8?ads.wurl_channel=723&ads.wurl_name=RakutenFamily&ads.coppa=1&ads.psid=%7BPSID%7D&ads.targetopt=%7BTARGETOPT%7D&ads.app_domain=%7BAPP_DOMAIN%7D&ads.app_name=%7BAPP_NAME%7D&ads.consent=%7BTC_STRING%7D#sapp_tvgid=ITBA14000043B:Family - Rakuten TV
    #DESCRIPTION Family - Rakuten TV
    #SERVICE 4097:0:1:5482:bbf:bf95:1010101:0:0:0:https%3a//8077fe81975344b291027f32b011511d.mediatailor.us-east-1.amazonaws.com/v1/master/44f73ba4d03e9607dcd9bebdcb8494d86964f1d8/Samsung-it_RakutenTVShows/playlist.m3u8?ads.wurl_channel=445&ads.wurl_name=RakutenTVShows&ads.psid=%7BPSID%7D&ads.targetopt=%7BTARGETOPT%7D&ads.app_domain=%7BAPP_DOMAIN%7D&ads.app_name=%7BAPP_NAME%7D&ads.coppa=0&ads.consent=%7BTC_STRING%7D#sapp_tvgid=ITAJ4500020HT:Drama - Rakuten TV
    #DESCRIPTION Drama - Rakuten TV
    #SERVICE 4097:0:1:d8cf:f039:39f4:1010101:0:0:0:https%3a//8355c6b6739745309af5484182dab133.mediatailor.us-east-1.amazonaws.com/v1/master/44f73ba4d03e9607dcd9bebdcb8494d86964f1d8/Samsung-it_RakutenActionMovies/playlist.m3u8?ads.wurl_channel=443&ads.wurl_name=RakutenActionMovies&ads.psid=%7BPSID%7D&ads.targetopt=%7BTARGETOPT%7D&ads.app_domain=%7BAPP_DOMAIN%7D&ads.app_name=%7BAPP_NAME%7D&ads.coppa=0&ads.consent=%7BTC_STRING%7D#sapp_tvgid=ITAJ45000188Z:Film d'azione - Rakuten TV
    #DESCRIPTION Film d'azione - Rakuten TV


    Corresponding in channel.xml to:

    Code
        <channel id="ITBA1400005XG">1:0:1:5c07:75d3:d32d:1010101:0:0:0:http%3a//stream.m3u8:Documentari - Rakuten TV</channel>
        <channel id="ITBA14000043B">1:0:1:d77:95b3:b3ac:1010101:0:0:0:http%3a//stream.m3u8:Family - Rakuten TV</channel>
        <channel id="ITAJ4500020HT">1:0:1:5482:bbf:bf95:1010101:0:0:0:http%3a//stream.m3u8:Drama - Rakuten TV</channel>
        <channel id="ITAJ45000188Z">1:0:1:d8cf:f039:39f4:1010101:0:0:0:http%3a//stream.m3u8:Film d'azione - Rakuten TV</channel>

    So you can't test the case where the interval update is set ton ON, the difference between the current date minus the date in e2 settings is over than the interval hours, and boot the box with this exact situation to see what's happens on boot ?

    Honestly it seems impossible to me that the plugin starts by itself, it has never happened to me

    Regarding log i speaking of image... pls put your config as screenshot (this is purE2), so the log is complete and can help pepsik or on forum of your image


    Hispanico

    Please, I'm not a fabulator !! Do you use interval method like me?


    For the rest, I just configured debug log in my settings, it wasn't correctly set.

    Sometimes also me on mutant hd51 and pureE2 go in crash, it is important to attach a complete log.

    Also try activate swap file for 1024MB to see if I fix it


    Hispanico

    Hello, it's not really a crash, the process runs but hangs my box. I have a swap file configured.


    In fact, I am on an internal configuration, every 2 hours. The "automatic bouquet update when box starts" is set to no. But on a hard reboot or boot to another image on another multiboot partition, sometimes the e2m3u2 process is launching at boot but in this case it turns crazy and hangs everything. The interval between the current hour and the date/time in the e2 settings file is more than the configured interval. I think it's because of this outdated interval (example 5 hours without running and interval set to 2). In this case I am unable to have a log, every bouquet files are renamed as .del, the userbouquet.favourite.tv file and all others tv files are emptied.

    The only solution is to edit manually the e2 settings file and set manually the config.plugins.e2m3u2b.last_update parameters to a date/hour less than 2 hours to the current time and reboot. And after that restore the lost .tv files.


    pepsik , I hope I am clear?


    Thanks for help !

    Of course, I can add a "crutch" to my m3u parser code that will take into account this violation of the standard ... But should I "wipe the shit" for everyone who does not adhere to the standards?

    Yes sorry, you are right, it's not a bug. Pluto TV, a big AVOD platform, doesn't respect the standards or I think the extraction with their api don't take in account this exception.

    I will contact for this point another dev. Your code is clean, so leave it as it is. I think it's the better choice.


    Regards

    p.s. Oh! And you don't have to sit and look at the execution log after the start of the update of the bouquets. You can safely exit the plugin ;) All tasks are performed in the "background"

    Hey, yes I know !!


    Found a new little bug. When a channel has a name with a comma, the enigma2 format channel will be only the name after the comma, we are loosing the name before it.


    Example:


    Code: m3u format
    #EXTINF:-1 tvg-id="611e78c4954f250007ef7b84" tvg-chno="950" tvg-logo="https://images.pluto.tv/channels/611e78c4954f250007ef7b84/colorLogoPNG.png" group-title="Kids",Sabrina, la série animée
    http://stitcher-ipv4.pluto.tv/v1/stitch/embed/hls/channel/611e78c4954f250007ef7b84/master.m3u8?deviceType=samsung-tvplus&deviceMake=samsung&deviceModel=samsung&deviceVersion=unknown&appVersion=unknown&deviceLat=0&deviceLon=0&deviceDNT=%7BTARGETOPT%7D&deviceId=%7BPSID%7D&advertisingId=%7BPSID%7D&us_privacy=1YNY&samsung_app_domain=%7BAPP_DOMAIN%7D&samsung_app_name=%7BAPP_NAME%7D&profileLimit=&profileFloor=&embedPartner=samsung-tvplus

    become:


    Code: e2 format
    #SERVICE 4097:0:1:f526:db10:1022:1010101:0:0:0:http%3a//stitcher-ipv4.pluto.tv/v1/stitch/embed/hls/channel/611e78c4954f250007ef7b84/master.m3u8?deviceType=samsung-tvplus&deviceMake=samsung&deviceModel=samsung&deviceVersion=unknown&appVersion=unknown&deviceLat=0&deviceLon=0&deviceDNT=%7BTARGETOPT%7D&deviceId=%7BPSID%7D&advertisingId=%7BPSID%7D&us_privacy=1YNY&samsung_app_domain=%7BAPP_DOMAIN%7D&samsung_app_name=%7BAPP_NAME%7D&profileLimit=&profileFloor=&embedPartner=samsung-tvplus#sapp_tvgid=611e78c4954f250007ef7b84:la série animée
    #DESCRIPTION la série animée


    As you can see, "Sabrina, la série animée" become "la série animée".


    From now this problem concerns only 2 pluto fr channels.


    Have a nice day, thanks!

    pepsik , Hello, I have a problem, all my suppliers have the multi bouquets set to NO, but I have a lot of bouquets by categories created.


    See code from config.xml and log where you will see a line "Creating bouquets of categories..." for each provider.


    e2m3u2bouquet.log


    Thanks for your help


    Yeah tested and now it's ok !! good job, thanks!


    Code
    ********************************************
    Installing Engima2 IPTV E2m3u2bouquet plugin
    ********************************************
    
    E2m3u2bouquet plugin installed successfully
    2020-2022 (c)Dorik1972
    Installing enigma2-plugin-extensions-e2m3u2bouquet (1.0.54) on root.
    Configuring enigma2-plugin-extensions-e2m3u2bouquet.
    
    Running in fast mode ... reboot ...

    Not that I don’t know ... but I just never use it .. what to backup there ? )))

    Do you have a sample bash script to determine if E2 is running? I will add the package ipk to the script ..... If not, then I'll write it myself.

    An example of my script myrestore.sh (file to put under /media/hdd/images/config), executed only by the restore/update process. Few month ago my script was very complicated, but now it's really simple. Your ipk is at the end of the script because it's the only one waiting for e2 restart.


    In the same directory I have empty files fast, noplugins, settings. So fast to reboot after restoration, noplugins for non interactive asking which plugins to install (I use myrestore.sh for that), settings for restoration settings (enigma2settingsbackup.tar.gz available under /media/hdd/backup_openatv_<device_codename>)




    Edit: I think it was not your question !! You asked a script to control if e2 is running or not !! No I haven't this type of script !!

    The problem is that your package is trying to restart exigma2 at the end of the installation, see log code below. But in the restore process, enigma2 is not yet started and in fast restore mode process the last action is an automatic reboot when all commands are done. So I have to connect manually to the box via telnet and execute manually the reboot,, the script is in "restarting GUI" waiting so the automatic process is blocked. A solution could be to not send an enigma2 restart when there is no enigma2 process and exit the plugin installation script without any other commands.ckage? What is the reason for this action?

    Why are you stopping Enigma2 (init 4) before installing the ipk package? What is the reason for this action?

    It's not me! You don't know the restore/install process?


    The auto restore process is like that. To restore an image or install a new one, everything is automatic:


    - Download image (or select a local image)

    - Select installation destination (for multiboot installations)

    - Ask if setting have to be backup

    - Unzip image

    - Stop enigma 2

    - Install rootfs

    - Reboot

    - Let enigma2 stopped and restore all settings

    - Optional execute myrstore.sh script

    - Reboot


    After that you have a clean install with settings restored and optional actions done via myrestore.sh.

    Hello pepsik ,


    Thanks for the update!


    Please, I'd like some changes to be done, if you want !


    - In the configuration, when "schedule type" is "Interval" and "automatic bouquet update (when box starts)" is set to "no", if the last update + the interval is less than the current time, the process e2m3u2 starts because of this interval, the no autostart is not taken in account. But for my part, in OATV 6.4 and OATV 7.0, something hang my box in a start at reboot, certainly because the process starts too early, I don't know. Btw I think if bouquet update at restart is no, no automatic start has to be done in all cases.


    - When i install a new image version, I'm using the automatic flash on the fly script and the myrestore.sh script (executed at the end of the restore process). In this script there are some commands included the installation of E2m3u2 plugin, the command is simply:

    Code
    opkg install /home/root/install/ipk/e2m3u2bouquet/enigma2-plugin-extensions-e2m3u2bouquet_1.0.53_all.ipk

    The problem is that your package is trying to restart exigma2 at the end of the installation, see log code below. But in the restore process, enigma2 is not yet started and in fast restore mode process the last action is an automatic reboot when all commands are done. So I have to connect manually to the box via telnet and execute manually the reboot,, the script is in "restarting GUI" waiting so the automatic process is blocked. A solution could be to not send an enigma2 restart when there is no enigma2 process and exit the plugin installation script without any other commands.


    Code
    ********************************************
    Installing Engima2 IPTV E2m3u2bouquet plugin
    ********************************************
    
    E2m3u2bouquet plugin installed successfully
    2020-2021 (c)Dorik1972
    Restarting GUI .....
    root@mutant51:~# reboot


    - And the last one, as already asked ( :-) ), a way to bypass the hardcode epg urls. By checking these (this) url(s) the process takes more time unnecessarily.


    Thanks for your work.


    Regards.


    JP

    Actually, you can use the override.xml functionality in the xmltvextrasources configuration part to set

    additional XMLTV sources by overriding the tvg-id value in the channel attributes


    But .... the choice is yours ;)

    I will study this solution, because, to tell the truth I don't know at all how this option works ! But I will find ! :eye-tongue:

    Perhaps ... And what should be the logic in your opinion? Remove auto-substitution from the code altogether?

    At the moment, the logic is that the priority is given to the EPG specified in the EPGurl field .... if there is "empty",

    then we are looking for a link to the EPG in the playlist itself, if it is not there, then we substitute "by default"

    Hello pepsik ,


    Example with my configuration.

    E2m3u2 generated serviceref are my references for all my manual bouquets lists. I made this choice to have minimum serviceref for a same channel.

    EpgImport is running once a day every day and some channels have there epg served in manual bouquets by this process and some other channels by the E2m3u2 process.

    E2m3u2 is running every 2 hours, because I have some providers with short epg duration. The E2m3u2 process replace for some channels the epg by the russian one, when epgurl is empty. The epg is fixed by the next EpgImport process but for a maximum of 2 hours delay (my set interval delay).

    I think that just an option to set epgurl to "0" or "none" to disable E2m3u2 to look for new epg could be enough. So for lot of users no new configuration has to be done.

    Hope I am clear.


    For information I made a lot of tests with 1.0.52 version, and after a clean installation of the plugin (clean settings, ipk, configuration files, clean epg and install new version, restore config.xml...), everything is ok and stable. Test on OATV 6.4 and 7.0. So it's cool !!


    Regards