Seite 5 von 5 ErsteErste ... 345
Ergebnis 41 bis 47 von 47
  1. #41
    Senior Mitglied Avatar von s3n0
    Registriert seit
    02.01.2017
    Ort
    Slovakia
    Beiträge
    1.461
    Thanks (gegeben)
    91
    Thanks (bekommen)
    418
    Total Downloaded
    323,0 KB
    Total Downloaded
    323,0 KB
    ReceiverDanke
    Box 1:
    Vu+ Zero 4K
     
     
    Box 2:
    Vu+ Solo SE V2
     
     
    Box 3:
    Formuer F4-TURBO
     
     
    If you wanted to write with me, you had to solve it via Skype. I can't write to you through the discussion forum. This is incredible chaos.


    Anyway, the code should be corrected by its author - Vhannibal. He could study at least the last 2 pages in this discussion and then try to find a bug + solution, for OpenATV-6.4 / Python 2.7.x and in the future also possibly OpenATV-6.5 / Python 3.8.x.

    I edited my post #37 ... the solution works, but it is not final. The error, as I have already written, is probably in badly formatted data (between Python data types: bytes / unicode / string), which are downloaded from the Vhannibal web / api server. Then the MessageBox (Screen layer for displaying the message text on the screen) cannot handle this character encoding.

    •   Alt Advertising

       

  2. #42
    Mitglied
    Registriert seit
    06.01.2021
    Beiträge
    33
    Thanks (gegeben)
    0
    Thanks (bekommen)
    3
    Total Downloaded
    1.014,2 KB
    Total Downloaded
    1.014,2 KB
    ReceiverDanke
    Yes now I have a 100% working plugin, but as I also said before strangely this works directly out of the box installed on OpenPLI 8.0 without any problems, so must be there some difference in OpenATV python from the other image.

    Going to PM you with my skype I think It still works and we see from there on.

    Thanks !!!
    Geändert von SpyLand (05.02.2021 um 01:40 Uhr)

  3. #43
    Senior Mitglied Avatar von s3n0
    Registriert seit
    02.01.2017
    Ort
    Slovakia
    Beiträge
    1.461
    Thanks (gegeben)
    91
    Thanks (bekommen)
    418
    Total Downloaded
    323,0 KB
    Total Downloaded
    323,0 KB
    ReceiverDanke
    Box 1:
    Vu+ Zero 4K
     
     
    Box 2:
    Vu+ Solo SE V2
     
     
    Box 3:
    Formuer F4-TURBO
     
     
    For the third time, I repeat that the data is probably downloaded incorrectly from the Vhannibal web / api. It must be either the <bytes> data type, either <unicode> or either <str>. However, currently this value contains an escape character for <unicode> type, while the variable is of ordinary <str> type. The data may be downloaded / specified incorrectly.

    However, this works also when testing under IF conditions in the source code, because the same type of data is used everywhere in the source code.

    Although it works (in my post #37), it is NOT a suitable solution. The BUG is about something else.

  4. #44
    Mitglied
    Registriert seit
    06.01.2021
    Beiträge
    33
    Thanks (gegeben)
    0
    Thanks (bekommen)
    3
    Total Downloaded
    1.014,2 KB
    Total Downloaded
    1.014,2 KB
    ReceiverDanke
    Right a full proof version and also counting with the future python3 will be good, as long the vhannibal server keeps having the updated lists of settings.

    Should we put here now this final version for OpenATV 6.4 even for now needs to be manually installed and is not 100% perfect ?

  5. #45
    Mitglied
    Registriert seit
    06.01.2021
    Beiträge
    33
    Thanks (gegeben)
    0
    Thanks (bekommen)
    3
    Total Downloaded
    1.014,2 KB
    Total Downloaded
    1.014,2 KB
    ReceiverDanke
    I leave here the final version of the plugin for who might need it on OpenATV 6.4.

    Even is not using the best or perfect code it works 100% without any problems so far,


    Don't forget that for install this it needs to be manually extracted directly on the receiver on this directory:

    /usr/lib/enigma2/python/Plugins/Extensions/
    Angehängte Dateien Angehängte Dateien

  6. Thanks Rohr bedankten sich
  7. #46
    Senior Mitglied Avatar von s3n0
    Registriert seit
    02.01.2017
    Ort
    Slovakia
    Beiträge
    1.461
    Thanks (gegeben)
    91
    Thanks (bekommen)
    418
    Total Downloaded
    323,0 KB
    Total Downloaded
    323,0 KB
    ReceiverDanke
    Box 1:
    Vu+ Zero 4K
     
     
    Box 2:
    Vu+ Solo SE V2
     
     
    Box 3:
    Formuer F4-TURBO
     
     
    Hello.

    I also looked at the source code a few days ago. It is enough to modify the download of data from the Vhannibal web / api in the "Moduli/Config.py" file. Just add a small improvement there, for example, to reformat the data type. I also edited my identations over source code (files plugin.py and Config.py) because it is incorrect, chaotic and often confusing.

    I changed the following in the file "Moduli/Config.py":

    Code:
    def DownloadSetting():
        lst = []
        try:
            req = urllib2.Request('http://www.vhannibal.net/asd.php')
            req.add_header('User-Agent', 'VAS14')
            response = urllib2.urlopen(req)
            html_data = response.read()
            response.close()
            x = re.compile('<td><a href="(.+?)">(.+?)</a></td>.*?<td>(.+?)</td>', re.DOTALL).findall(html_data)
            for link, name, date in x:
                lst.append((date, str(name.replace('Vhannibal ', '').decode('unicode_escape')), 'http://www.vhannibal.net/' + link))
        except:
            pass
        return lst
    Now the "settings" download works (data downloading), but the incorrect userbouquets are downloaded. I dont know why. I probably did something wrong due to incorrect identations somewhere.

    This source code was probably not written by an experienced programmer.

    There is huge chaos in the source code. For example, unnecessary pre-conditions (if) to test variables and inappropriate use of error exceptions (for the whole set of exceptions !) are used there. I noticed that there is a lot of chaos between the variables: self.name, name, self.NameSat, NameSat. Then I want to solve this code. It would be best to program the whole plugin again. Because to correct this chaos is for long hours and days behind the computer.


    I really don't feel like fixing the source code anymore - whether it's code readability (syntax) or correcting the correct functionality - such as when the plugin is in the right window after running the plugin and moves to the left window after some algorithm after a short time.

  8. #47
    Mitglied
    Registriert seit
    06.01.2021
    Beiträge
    33
    Thanks (gegeben)
    0
    Thanks (bekommen)
    3
    Total Downloaded
    1.014,2 KB
    Total Downloaded
    1.014,2 KB
    ReceiverDanke
    But there is one thing that I didn't understand, apart the code being confused and not perfect do you have any kind of problems with the plugin functionality?

    I use it without problems now. It saves the settings file, updates the channels and favorites all according the list I select. Also I can change from one list to another and everything else.
    Even the auto settings that checks and downloads new list when senses there is a new one online works, as long you have the receiver on of course. ; )


Seite 5 von 5 ErsteErste ... 345

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 10:44 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,26%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com