Closed yeahme49 closed 3 years ago
The issue is the screen blanks once playback starts, it blanks again before where a commercial would be (i have ad-free d+) and once again after where a commercial would be. so depending on the length of the show and number of commercial breaks there should be, i get 7-12 screen blanks during a show and it's pretty annoying. after changing it to be 29.970 in the m3u8 file the problems went away.
@yeahme49 - here is an example for you: https://github.com/matthuisman/proxy.plugin.example
updated using example, tested and it appears to work. thank you for the help @matthuisman
i just seen you only need to change the framerate in the file? Kodi detects the correct framerate once playback starts... you may get a black screen for a second while it changes...
do you really need to change it at all?
Your proxy is also way over-complicated.
just use Requests in the proxy to fetch the file (like the old code) then no need for any of the gzip_producer stuff. also get ride of protocol_version = "HTTP/1.1" It'll cause headaches if you don't set content-length and keep-alive stuff. If you remove that, it'll use nice and simple 1.0 and close the connection once the file is finished.
I'll see if I can get a simple sample up that is Python2 / Python3 compatible :)