Skip to content

Commit

Permalink
Disable curl ssl verify peer on inputstream.adaptive
Browse files Browse the repository at this point in the history
  • Loading branch information
smirgol committed Nov 18, 2024
1 parent 26f400d commit 2330815
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion resources/lib/videoplayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import json
import time
from typing import Optional
from urllib.parse import urlencode
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2330815

Please sign in to comment.