DAZN (basierend auf Eurosport-Player)

  • Warum sollte man diese Abfrage auslagern? Inwiefern wird das Problem dadurch behoben?

    Meine Idee ist, dass das irgendwie mit requests bisher hinzubekommen sei als direkt in inputstream.adpative. Habe heute ein wenig mit den übergebenen Header-Daten gespielt, aber leider ohne Erfolg. Windows mag, Android nicht.

  • Verschiedene Tests haben ergeben das die aktuelle Version des Addons unter Kodi 20.5 (Nexus) auch noch neben Windows auch unter Andriod (mit urllib3 - 2.1.0) noch läuft. Wer also diese Kodi-Version noch am Laufen hat, kann dies gern einmal ausprobieren.

    Gruß Weri

  • zu urllib3:

    Das Problem ist in der Datei ssl_.py im Ordner script.module.urllib3-2.2.3\lib\urllib3\util

    Tauscht man in Zeile 331 den neuen Code

    Code
    if getattr(context, "post_handshake_auth", None) is not None:

    gegen den alten von 2.1.0 aus

    Code
    if (
            cert_reqs == ssl.CERT_REQUIRED
            and getattr(context, "post_handshake_auth", None) is not None
    ):

    funktioniert auch 2.2.3 bestens (zumindest über Windows :D)

  • Auch nach Neustart nicht. So hab ich 's geändert:

        # an SSLContext created by pyOpenSSL.                                                                  
       if (                                                                                                   
           cert_reqs == ssl.CERT_REQUIRED                                                                     
           and getattr(context, "post_handshake_auth", None) is not None                                      
          ):                                                                                                  
       # The order of the below lines setting verify_mode and check_hostname                                  
       # matter due to safe-guards SSLContext has to prevent an SSLContext with                               
       # check_hostname=True, verify_mode=NONE/OPTIONAL.                                                      
       # We always set 'check_hostname=False' for pyOpenSSL so we rely on our own                             
       # 'ssl.match_hostname()' implementation.                                                               
           if cert_reqs == ssl.CERT_REQUIRED and not IS_PYOPENSSL:                                            
               context.verify_mode = cert_reqs                                                                
               context.check_hostname = True                                                                  
           else:                                                                                              
               context.check_hostname = False                                                                 
               context.verify_mode = cert_reqs                                                                
                                                                                                              
       try:                                                                                                   
           context.hostname_checks_common_name = False                                                        
       except AttributeError:  # Defensive: for CPython < 3.8.9 and 3.9.3; for PyPy < 7.3.8  

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!