xbmc
xbmc copied to clipboard
Use cookie auth if requesting the manifest fails with token auth
Some content, like Amazon Freevee, is not available when using token auth. By allowing to use cookie auth if token auth does not work, it will be possible to play that content without degrading the quality of anything that is available with token auth.
Admittedly, just stuffing the code into a loop that iterates over [True, False] is a bit of a hack, but it seemed cleaner that just putting the code there a second time. I would have prefered a method, but given that the return values from _getPlaybackVars are used later, this could have become a bit messy. In a loop they will just "leak" to the outside, because of python.
This successfully fixed https://github.com/Sandmann79/xbmc/issues/640
https://github.com/Sandmann79/xbmc/blob/master/plugin.video.amazon-test/resources/lib/network.py#L278 Hardcoding only Android devicetypeid can support HEVC (H.265) is wrong. I'm sure cookie auth can get FreeVee HEVC (H.265) content.
Thanks for the quick Freevee fix for Android...StollD...this one works well for me.
I thought I had already merged this when I released 0.9.6, I didn't even test it ç_ç /facepalm
Thank you for the contribution :)