CastagnaIT / plugin.video.netflix

InputStream based Netflix plugin for Kodi
MIT License
1.89k stars 258 forks source link

Replaced HTTPX to Requests module #1622

Closed CastagnaIT closed 9 months ago

CastagnaIT commented 9 months ago

Check if this PR fulfills these requirements:

Types of changes

Description

Our local old httpx version have problems with new pyhton versions e.g. 3.11 by raising error AttributeError: module 'httpcore' has no attribute 'NetworkBackend'

and updating httpx to last version (0.25) cause folowing errors httpcore.RemoteProtocolError: Server disconnected at least while testing on android (#1621), that make almost unusuable the addon, so for now has been restored Requests module

With this will be lost http2 compatibility but since the login is broken, should be not a problem. NOTE: KeepAlive fix has been not reintroduced intentionally (ref #1065).

fix #1611

In case of Feature change / Breaking change:

Describe the current behavior

Describe the new behavior

Screenshots (if appropriate):