From 2330815204f158a28396757506bde98f202d3484 Mon Sep 17 00:00:00 2001 From: smirgol <14124899+smirgol@users.noreply.github.com> Date: Mon, 18 Nov 2024 23:45:51 +0100 Subject: [PATCH] Disable curl ssl verify peer on inputstream.adaptive --- resources/lib/videoplayer.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/lib/videoplayer.py b/resources/lib/videoplayer.py index 915c4a5..e58e01b 100644 --- a/resources/lib/videoplayer.py +++ b/resources/lib/videoplayer.py @@ -14,7 +14,7 @@ # # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . - +import json import time from typing import Optional from urllib.parse import urlencode @@ -171,12 +171,17 @@ def _prepare_and_start_playback(self): 'response_data': 'JBlicense' } + inputstream_config = { + 'ssl_verify_peer': False + } + item.setProperty("inputstream", "inputstream.adaptive") item.setProperty("inputstream.adaptive.manifest_type", "mpd") item.setProperty("inputstream.adaptive.license_type", "com.widevine.alpha") item.setProperty('inputstream.adaptive.stream_headers', urlencode(manifest_headers)) item.setProperty("inputstream.adaptive.manifest_headers", urlencode(manifest_headers)) item.setProperty('inputstream.adaptive.license_key', '|'.join(list(license_config.values()))) + item.setProperty('inputstream.adaptive.config', json.dumps(inputstream_config)) # @todo: i think other meta data like description and images are still fetched from args. # we should call the objects endpoint and use this data to remove args dependency (besides id)