Posts by s3n0

    Would you like to tell me how to make "loop-test-output.txt"

    Hi.


    Use the first code (at the top) from my post #372 :



    However, as first, edit the path to the directory in the 2nd line of code, to "/etc/enigma2/userbouquet.*.tv".


    You can first copy the entire code into a text editor on your PC. Then edit the mentioned directory. And finally, copy the text again in the text editor, to the Windows clipboard, using the CTRL+C keyboard shortcut.


    1. Connect via Telnet / SSH protocol to your set-top box

    2. Then start the Python interpreter - command: python<ENTER>

    3. Next... you need to copy text... by marking text with the help of the mouse and using the keyboard shortcut CTRL+C... of the entire code

    4. If you are using the PuTTY application as a terminal for Telnet / SSH connections, then, you just click on the PuTTY window with the mouse - with the right button ... and the content from the Windows system clipboard will be inserted (correctly: "sent") into the PuTTY terminal. (If nothing works, you can copy the lines one by one into the PuTTY terminal or you can rewrite the whole thing manually via the keyboard.)

    Exactly Warder 👍


    I didn't give it a chance at first. But you're already the second person to confirm it to me. Namely... that there really could be a problem in the userbouquet files.


    I had all the "userbouquet.*.tv" files supplied by viliev checked in a loop (I have them in a private message as a ZIP archive) and indeed there are some files with the wrong format: ISO-8859-1, MacRoman, Windows-1252, ASCII, ... etc. .

    Code
    import glob
    bouquet_files = glob.glob("/tmp/u/userbouquet.*.tv")
    for PATH in bouquet_files:
      print("%s ---- %s" % (chardet.detect(open(PATH, "rb").read()), PATH))
      with open(PATH, "r") as f:
        data = f.read()             # an error occured ?!


    //////////// EDIT :


    Hm, that's weird. When I open the files individually on the PC, they look fine in Notepad++. Maybe a BUG in Python 3 ? :-D


    It is actually my fault that my plugin does not write the specific userbouquest file it is currently processing, in the debug log. I don't want to create an unnecessarily large "FLOOD" in the logs - while debugging Enigma2.


    I discovered that the file "userbouquet.ciefpsettings_filmovi3.tv" could be faulty.


    My conclusion:


    I don't know if the problem is in the encoding of UTF-8 characters, but definitely these userbouquet files are not correctly encoded in UTF-8 ! As you can see on the attached screenshot, they contain meaningless characters, especially the 0xD0 character, which causes a BUG in Python, and which the UTF-8 decoder tries to decode in every possible way... but it doesn't always succeed. It is necessary to repair / edit these strange userbouquet files... or delete them altogether.


    Code
    >>> bq_file = "/tmp/u/userbouquet.ciefpsettings_filmovi3.tv"
    >>> with open(bq_file, "rb") as f:
    >>>   data = f.read()
    >>> type(data)
    <class 'bytes'>
    >>> data.decode('utf-8')
    Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 49451: invalid continuation byte
    >>>

    @zephy4


    Yes I know. The plugin basically works everywhere and for everything. No one has reported this error. Only viliev reports a minor problem.


    I'm trying to find out exactly what the problem is. So far we have only found out that it is a problem with detecting UTF-8 in userbouquet files - specifically in loading content from these userbouquet files.


    The question now is whether this is a BUG:


    - OpenATV 7.4-development

    - Python (BUGs in Python itself are not unusual and sometimes happen)

    - wrong format of userbouquets files

    - an error in the source code of the plugin


    I can use UTF-8 to load content from a file, but that's not a problem, since files are loaded by default as UTF-8. The problem is that the decoder sees the character 0x0D there, which is used when formatting Windows newlines 0x0D + 0x0A (CR + LF). Whereas for UNIX only character 0x0A (LF) is used.


    The error can really be anywhere. Probably userbouquet files are edited by some plugin and put wrong character in formatting other than UTF-8.

    OK, so please try this in both cases, in the Python interpreter, as I mentioned above:


    Code
    import glob
    bouquet_files = glob.glob('/etc/enigma2/userbouquet.*.tv')
    bq_file = bouquet_files[0]
    print(bq_file)
    bq_contents = ''
    with open(bq_file, 'r') as f:
      bq_contents += f.read()        # an error occured ?!
    chardet.detect(open(bq_file, 'rb').read())['encoding']

    Hi viliev


    I couldn't find the OpenATV 7.4-devel version for the Vu+ Solo SE V2 anywhere on the internet, so unfortunately I can't test it myself.


    If you want, you can create a BUG report for this "7.4-devel" version on the OpenATV discussion forum. You can also attach all the URLs what we discussed together + including of the CODE TAGs contents. You can also attach your userbouquet files to the OpenATV forum.


    It seems to be really just a problem with the ATV 7.4-devel development version.


    The error will probably be in the "UTF-8" decoding of your userbouquet files... however, the error may not be directly in the file but in the algorithm that reads the data from the file. I tried it now in OpenATV 7.3 @ Python 3.11.2 - in the official released version, and everything went OK. I simulated the activity of my plugin with your userbouquest files (copied into the "/tmp/u" folder):


    Btw, what version of Python does this ATV 7.4-devel use ? Please connect via Telnet / SSH to your set-top box and type the command "python --version".


    If you could manage it... you can try the same... after connecting via Telnet / SSH to your set-top box. So, first you start the Python interpreter (write the command: python). Unpack / copy the userbouquets files into a temporary folder in the set-top box "/tmp/u" or change the name of the directory path to your own, i.e. from "/tmp/u" to "/etc/enigma2". And then proceed in the Python interpreter, according to the above steps.

    You skipped the first step - check your files "userbouquet.*.tv" and "userbouquet.*.radio". There is probably an error in them, which Enigma2 cannot deal with, because it received an over-the-air update.


    I have OpenATV 7.3 only and I have absolutely no problem with myself.


    I can also... if I have free time... test the development version ATV 7.4... via OpenMultiboot... on my Vu+ device. And I'll see if the error manifests itself in me as well.


    But first we will test your userbouquest files. If you can't manage it yourself (you haven't written anything about your IT skills yet), you can send them to me (preferably as one zipped file, of course).

    Hi viliev


    First of all, it should be noted that you are using OpenATV version 7.4, which is a test version intended for developers. Still, this version is not finished and is still under development. That is that errors may still appear randomly in Enigma2 during regular updates of this beta or alpha version. You mentioned two set-top boxes, so I assume that ATV 7.4 is installed on both of them.


    Secondly, regarding the BUG, as you can see, the following problem occurs:

    Code
    06:52:12.3825   File "/usr/lib/enigma2/python/Plugins/Extensions/ChocholousekPicons/plugin.py", line 1540, in proceedCfgProfile
    06:52:12.3862     bq_contents += f.read()
    06:52:12.3866                    ^^^^^^^^
    06:52:12.3867   File "<frozen codecs>", line 322, in decode
    06:52:12.3868 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 49451: invalid continuation byte

    ChocholousekPicons source code: https://github.com/s3n0/e2plug…ugin.py#L1540C44-L1540C44


    Enigma2 source code crashes for a partially known reason. However, since the ChocholousekPicons plugin runs at that moment only in a separate thread (i.e. a separate algorithm in the background), the entire Enigma2 (ATV 7.4) will not crash. Under normal circumstances, however, Enigma2 should crash (BSOD / GSOD will appear). Then subsequently, in the event of an error in the execution of the source code in the ChocholousekPicons plugin, it will terminate regularly + also with the error reported by the plugin: "No operation! Picon update failed!".


    In the debugging information (debug-log file) it can be seen that the problem arises when reading the files "/etc/enigma2/userbouquets.*.tv" (userbouquets.*.radio) in connection with the decoding of UTF-8 characters. Specifically, there is a problem with decoding some character 0xD0.


    You can try to check your userbouquest files to see if their encoding is correct and if, for example, some other plugin has written some wrong characters into them. If these userbouquets files are fine, try reporting a bug on the opena.tv discussion forum. Although... at this moment, ATV 7.4 is still under development. So you can... but you also don't have to... report this BUG. The choice is only yours. If this is really a bug of ATV 7.4, then probably the developers just didn't notice this bug and will fix it soon.

    No, nothing arrived, sorry.


    Try the following:


    1. click on my nickname (under my avatar / my icon)

    2. then click on "User" - i.e. a stick figure icon

    3. where the context menu will appear... please choose the option: Create Conversation

    4. put the name of the subject in the first field (for example "chocholousek picons plugin")... and then below, in the large field, you can write a private message... and of course it is also possible to attach attachments in this private conversation

    I was wondering if you know how to turn on and get the debug file :). But you probably don't know that.


    Here is "HowTo" for OpenATV:

    MENU > Settings > System > Debug.... > Enable debug log = Yes


    Then use the green button to save the settings and do a quick restart of Enigma. After running Enigma2, enter the ChocholousekPicons plugin again and trigger the error. All done. Now just enter the folder "/home/root/logs" via FTP connection and copy the latest debug log file to the PC. Send me this debug-log file in a private message.


    Thanks.

    That will be some problem of Enigma2 update. I need to see the debug-log... if you know how, please create it and then send the debug-log file to the private message.


    I hope that at least there will be an error. If not... it will be necessary to install this Enigma2 for me as well (I don't know if this error will appear on my Vu+) and test the plugin again on this Enigma2.


    THX

    Wel... OK... so, I will also need the debug log from your Enigma2.


    What Enigma2 distribution are you actually using ?


    It depends on which Enigma2 distribution you are using, because the activation of debugging is different in each one and you can't access the debugging information in the same way in each one.

    Do you know how-to activate debugging in your Enigma2 ?


    Then after triggering the error in the plugin, just download the debug information file from the set-top box and send me this file in a private message. It is best to send only via private message - if there is too much private information about your set-top box in the LOG file.


    THX

    Hi viliev .


    Could you please attach a debug-log file or a screenshot ? How am I supposed to know where the problem is if you don't describe it in detail ? :drooling face:


    You can take a screenshot with the help of OpenWebif - opened in a web browser. Debug log creation and debugging activation depends on the used Enigma2. But an info-log file would also be sufficient if it exists in the "/tmp/chocholousekpicons.log" folder.

    Code
    cat hotovo1 hotovo2 hotovo3 > ok
    sed -i 's/    / /' ok


    >>>>> please modify the shell script "tichestart1.sh" as follows (to remove excess asterisk characters from the port number of the dream4ever cccam server) >>>>


    Code
    cat hotovo1 hotovo2 hotovo3 > ok
    sed -i 's/    / /' ok
    sed -i 's/*//' ok

    juanitoxxxl please try other forum thread :) - Picons by Chocholoušek


    I'm just a plugin developer. The picons themselves and their design are exclusively taken care of by Chocholousek. It's his project. I only created a enigma2 plugin for him that automates the update of Chocholousek's picons in Enigma2.


    But... if I'm not mistaken, picons are created primarily for satellite positions of satellites, not for providers. You probably did not check the correct positions of the German satellites... in the Chocholousek Picons updater plugin settings... I mean the satellite position 19.2E (https://www.lyngsat.com/packages/Sky-Deutschland.html) and/or possibly others - used in Germany ?

    So for the Skylink provider, IRDETO coding, you need to use the correct oscam-configuration. You also need an Oscam binary file with modification for Layer 2B support (extended security for IRDETO, which Skylink has been using for about 1-2 years). I can attach the configuration files to the post, but not the binary file, since it is forbidden to distribute modified oscam binary files here.