xbmc / inputstream.adaptive

kodi inputstream addon for several manifest types
Other
453 stars 242 forks source link

License server answers error 403, simple request does not #1059

Closed joaopa00 closed 2 years ago

joaopa00 commented 2 years ago

Bug report

Describe the bug

License server with IA returns error 403. A simple request (through urlquick for instance) allows to download the license.

Expected Behavior

Here is a clear and concise description of what was expected to happen: The server should not answer "error 403" ,but send the license

Actual Behavior

answers "error 403"

To Reproduce

Steps to reproduce the behavior: You have to use an IP from United Kingdom

Here is the minimal code showing the problem:

print('license = ') print(urlquick.get('https://c5apps.channel5.com/wv/c5-wv-app-cert-20170524.bin')) item = Listitem() item.path = 'https://hwdash.channel5.com/cenc/C5410800002/C5410800002B/20221019215439/C5410800002B-tt.mpd' item.property[INPUTSTREAM_PROP] = 'inputstream.adaptive' item.property['inputstream.adaptive.manifest_type'] = 'mpd' item.property['inputstream.adaptive.license_type'] = 'com.widevine.alpha' item.property['inputstream.adaptive.license_key'] = 'https://c5apps.channel5.com/wv/c5-wv-app-cert-20170524.bin||R{SSM}|B'

Debuglog

The debuglog can be found here:

2022-10-19 18:29:38.810 T:61187 DEBUG : ------ Window Init (DialogBusy.xml) ------ 2022-10-19 18:29:38.855 T:61388 DEBUG : [Catch-up-TV-&-More.support] Dispatching to route: '/resources/lib/channels/uk/test/get_live_url/' 2022-10-19 18:29:38.855 T:61388 DEBUG : [Catch-up-TV-&-More.support] Callback parameters: '{'xmltv_id': '1013.tvguide.co.uk', 'item_id': 'test'}' 2022-10-19 18:29:38.855 T:61388 DEBUG : [Catch-up-TV-&-More.support] Attempting to import route: resources.lib.channels.uk.test 2022-10-19 18:29:38.903 T:61187 DEBUG : CGLContextEGL::SwapBuffers: sync check blocking 2022-10-19 18:29:38.919 T:61187 DEBUG : CGLContextEGL::SwapBuffers: sync sleep: 15077 2022-10-19 18:29:39.210 T:61388 DEBUG : licence = 2022-10-19 18:29:39.210 T:61388 DEBUG :

2022-10-19 18:29:39.226 T:61388 DEBUG : [urlquick] Cache is fresh 2022-10-19 18:29:39.226 T:61388 DEBUG : <Response [200]> 2022-10-19 18:29:39.226 T:61388 DEBUG :

2022-10-19 18:29:39.237 T:61388 DEBUG : [Catch-up-TV-&-More.resolver] Resolved Url: https://hwdash.channel5.com/cenc/C5410800002/C5410800002B/20221019215439/C5410800002B-tt.mpd 2022-10-19 18:29:39.237 T:61388 DEBUG : [Catch-up-TV-&-More.support] Route Execution Time: 26ms 2022-10-19 18:29:39.237 T:61388 INFO : CPythonInvoker(6, /home/david/.kodi/addons/plugin.video.catchuptvandmore/addon.py): script successfully run 2022-10-19 18:29:39.237 T:61388 DEBUG : onExecutionDone(6, /home/david/.kodi/addons/plugin.video.catchuptvandmore/addon.py) 2022-10-19 18:29:39.246 T:61388 DEBUG : . 2022-10-19 18:29:39.252 T:61187 INFO : Skipped 1 duplicate messages.. 2022-10-19 18:29:39.252 T:61187 DEBUG : ------ Window Deinit (DialogBusy.xml) ------ 2022-10-19 18:29:39.252 T:61389 DEBUG : Thread scriptobs 139871918224960 terminating 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerCoreFactory::GetPlayers(https://hwdash.channel5.com/cenc/C5410800002/C5410800002B/20221019215439/C5410800002B-tt.mpd) 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: system rules 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: matches rule: system rules 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: mms/udp 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: rtmp 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: rtsp 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: streams 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: matches rule: streams 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: mp2 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: dvd 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: discimage 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: nsv 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerSelectionRule::GetPlayers: considering rule: radio 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerCoreFactory::GetPlayers: matched 0 rules with players 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer) 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerCoreFactory::GetPlayers: for video=1, audio=0 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerCoreFactory::GetPlayers: for video=1, audio=1 2022-10-19 18:29:39.255 T:61187 DEBUG : CPlayerCoreFactory::GetPlayers: added 1 players 2022-10-19 18:29:39.258 T:61187 DEBUG : Radio UECP (RDS) Processor - new CDVDRadioRDSData 2022-10-19 18:29:39.258 T:61187 INFO : VideoPlayer::OpenFile: plugin://plugin.video.catchuptvandmore/resources/lib/channels/uk/test/get_live_url/?pickle=80049542000000000000007d94288c075f7469746c655f948c0474657374948c08786d6c74765f6964948c12313031332e747667756964652e636f2e756b948c076974656d5f6964946802752e 2022-10-19 18:29:39.258 T:61187 DEBUG : easy_acquire - Created session to https://hwdash.channel5.com 2022-10-19 18:29:39.272 T:61388 INFO : Python interpreter stopped 2022-10-19 18:29:39.272 T:61388 DEBUG : Thread LanguageInvoker 139871865693760 terminating 2022-10-19 18:29:40.321 T:61187 DEBUG : Curl::Debug - TEXT: Trying 205.185.216.42:443... 2022-10-19 18:29:40.673 T:61187 DEBUG : Curl::Debug - TEXT: Connected to hwdash.channel5.com (205.185.216.42) port 443 (#0) 2022-10-19 18:29:40.743 T:61187 DEBUG : Curl::Debug - TEXT: found 383 certificates in /etc/ssl/certs 2022-10-19 18:29:40.744 T:61187 DEBUG : Curl::Debug - TEXT: GnuTLS ciphers: NORMAL:-ARCFOUR-128:-CTYPE-ALL:+CTYPE-X509:-VERS-SSL3.0 2022-10-19 18:29:40.744 T:61187 DEBUG : Curl::Debug - TEXT: ALPN, offering h2 2022-10-19 18:29:40.744 T:61187 DEBUG : Curl::Debug - TEXT: ALPN, offering http/1.1 2022-10-19 18:29:41.619 T:61187 DEBUG : Curl::Debug - TEXT: SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: server certificate verification OK 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: server certificate status verification SKIPPED 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: common name: .channel5.com (matched) 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: server certificate expiration date OK 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: server certificate activation date OK 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: certificate public key: RSA 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: certificate version: #3 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: subject: C=US,ST=New York,O=Viacom Inc.,OU=MTS - Channel5,CN=.channel5.com 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: start date: Wed, 23 Mar 2022 00:00:00 GMT 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: expire date: Thu, 23 Mar 2023 23:59:59 GMT 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: issuer: C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Organization Validation Secure Server CA 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - TEXT: ALPN, server did not agree to a protocol 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - HEADER_OUT: HEAD /cenc/C5410800002/C5410800002B/20221019215439/C5410800002B-tt.mpd HTTP/1.1 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - HEADER_OUT: Host: hwdash.channel5.com 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - HEADER_OUT: User-Agent: KodifromDebian/19.4 (X11; Linux x86_64) Kodi_Fork_Kodi from Debian/1.0 Ubuntu/22.04 App_Bitness/64 Version/19.4-Debian-package-version:-2:19.4+dfsg1-2 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - HEADER_OUT: Accept: / 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - HEADER_OUT: Accept-Encoding: deflate, gzip, br, zstd 2022-10-19 18:29:41.625 T:61187 DEBUG : Curl::Debug - HEADER_OUT: Accept-Charset: UTF-8,;q=0.8 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - TEXT: Mark bundle as not supporting multiuse 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: HTTP/1.1 200 OK 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Date: Thu, 20 Oct 2022 04:29:41 GMT 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Connection: Keep-Alive 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: ETag: "1666216604" 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Cache-Control: max-age=1186026 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Content-Length: 14606 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Content-Type: application/dash+xml 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Last-Modified: Wed, 19 Oct 2022 21:56:44 GMT 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Accept-Ranges: bytes 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: x-amz-id-2: S6Z6BggLg9d+YKIwncuoEmXLVGnZCS9EBpTDk/CE15+AYyXwYAKGR4XsRPcuLkMI6hWAb4wSixU= 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: x-amz-request-id: ARQN289FAWD7PQQ6 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: x-amz-server-side-encryption: AES256 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: X-HW: 1666240181.dop062.lo4.t,1666240181.cds326.lo4.shn,1666240181.dop062.lo4.t,1666240181.cds080.lo4.c 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Origin: 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Methods: GET,OPTIONS 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Content-Type,Accept-Encoding,Accept-Language,Range 2022-10-19 18:29:41.979 T:61187 DEBUG : Curl::Debug - TEXT: Connection #0 to host hwdash.channel5.com left intact 2022-10-19 18:29:41.979 T:61187 DEBUG : CCurlFile::GetMimeType - https://hwdash.channel5.com/cenc/C5410800002/C5410800002B/20221019215439/C5410800002B-tt.mpd -> application/dash+xml 2022-10-19 18:29:41.979 T:61391 DEBUG : Thread VideoPlayer start, auto delete: false 2022-10-19 18:29:41.979 T:61187 DEBUG : OnPlayBackStarted: CApplication::OnPlayBackStarted 2022-10-19 18:29:41.979 T:61391 INFO : Creating InputStream 2022-10-19 18:29:41.979 T:61392 DEBUG : Thread BackgroundLoader start, auto delete: false 2022-10-19 18:29:41.980 T:61391 DEBUG : ADDON: Dll Initializing - InputStream Adaptive 2022-10-19 18:29:41.980 T:61391 DEBUG : SECTION:LoadDLL(/usr/lib/x86_64-linux-gnu/kodi/addons/inputstream.adaptive/inputstream.adaptive.so.19.0.0) 2022-10-19 18:29:41.980 T:61391 DEBUG : Loading: /usr/lib/x86_64-linux-gnu/kodi/addons/inputstream.adaptive/inputstream.adaptive.so.19.0.0 2022-10-19 18:29:41.983 T:61187 DEBUG : CVideoGUIInfo::InitCurrentItem(plugin://plugin.video.catchuptvandmore/resources/lib/channels/uk/test/get_live_url/?pickle=80049542000000000000007d94288c075f7469746c655f948c0474657374948c08786d6c74765f6964948c12313031332e747667756964652e636f2e756b948c076974656d5f6964946802752e) 2022-10-19 18:29:41.983 T:61187 DEBUG : CPlayerGUIInfo::InitCurrentItem(plugin://plugin.video.catchuptvandmore/resources/lib/channels/uk/test/get_live_url/?pickle=80049542000000000000007d94288c075f7469746c655f948c0474657374948c08786d6c74765f6964948c12313031332e747667756964652e636f2e756b948c076974656d5f6964946802752e) 2022-10-19 18:29:41.985 T:61238 DEBUG : Loading settings for plugin://plugin.video.catchuptvandmore/resources/lib/channels/uk/test/get_live_url/?pickle=80049542000000000000007d94288c075f7469746c655f948c0474657374948c08786d6c74765f6964948c12313031332e747667756964652e636f2e756b948c076974656d5f6964946802752e 2022-10-19 18:29:41.987 T:61392 DEBUG : Thread BackgroundLoader 139872010479168 terminating 2022-10-19 18:29:41.991 T:61391 INFO : AddOnLog: inputstream.adaptive: SetVideoResolution (720 x 480) 2022-10-19 18:29:41.991 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Open() 2022-10-19 18:29:41.991 T:61391 DEBUG : AddOnLog: inputstream.adaptive: found inputstream.adaptive.license_key: [not shown] 2022-10-19 18:29:41.991 T:61391 DEBUG : AddOnLog: inputstream.adaptive: found inputstream.adaptive.license_type: com.widevine.alpha 2022-10-19 18:29:41.991 T:61391 DEBUG : AddOnLog: inputstream.adaptive: found inputstream.adaptive.manifest_type: mpd 2022-10-19 18:29:41.992 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Initial bandwidth: 2111557 2022-10-19 18:29:41.992 T:61391 DEBUG : AddOnLog: inputstream.adaptive: MAXRESOLUTION selected: 0 2022-10-19 18:29:41.992 T:61391 DEBUG : AddOnLog: inputstream.adaptive: MAXRESOLUTIONSECURE selected: 0 2022-10-19 18:29:41.992 T:61391 DEBUG : AddOnLog: inputstream.adaptive: STREAMSELECTION selected: 2 2022-10-19 18:29:41.992 T:61391 DEBUG : AddOnLog: inputstream.adaptive: FORCENONSECUREDECODER selected: 0 2022-10-19 18:29:41.992 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Searching for decrypters in: /usr/lib/x86_64-linux-gnu/kodi/addons/inputstream.adaptive/ 2022-10-19 18:29:41.997 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Found decrypter: /usr/lib/x86_64-linux-gnu/kodi/addons/inputstream.adaptive/libssd_wv.so 2022-10-19 18:29:41.997 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Supported URN: urn:uuid:EDEF8BA9-79D6-4ACE-A3C8-27DCD51D21ED 2022-10-19 18:29:41.997 T:61391 DEBUG : CurlFile::Open(0x7f36800bf6f0) https://hwdash.channel5.com/cenc/C5410800002/C5410800002B/20221019215439/C5410800002B-tt.mpd 2022-10-19 18:29:42.083 T:61187 DEBUG : ------ Window Init (DialogBusy.xml) ------ 2022-10-19 18:29:42.186 T:61187 DEBUG : CGLContextEGL::SwapBuffers: sync check blocking 2022-10-19 18:29:42.201 T:61187 DEBUG : CGLContextEGL::SwapBuffers: sync sleep: 14959 2022-10-19 18:29:42.387 T:61391 DEBUG : Curl::Debug - TEXT: Trying 205.185.216.10:443... 2022-10-19 18:29:42.692 T:61391 DEBUG : Curl::Debug - TEXT: Connected to hwdash.channel5.com (205.185.216.10) port 443 (#0) 2022-10-19 18:29:42.762 T:61391 DEBUG : Curl::Debug - TEXT: found 383 certificates in /etc/ssl/certs 2022-10-19 18:29:42.762 T:61391 DEBUG : Curl::Debug - TEXT: GnuTLS ciphers: NORMAL:-ARCFOUR-128:-CTYPE-ALL:+CTYPE-X509:-VERS-SSL3.0 2022-10-19 18:29:42.762 T:61391 DEBUG : Curl::Debug - TEXT: ALPN, offering h2 2022-10-19 18:29:42.762 T:61391 DEBUG : Curl::Debug - TEXT: ALPN, offering http/1.1 2022-10-19 18:29:42.762 T:61391 DEBUG : Curl::Debug - TEXT: SSL re-using session ID 2022-10-19 18:29:44.097 T:61391 DEBUG : Curl::Debug - TEXT: SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: server certificate verification OK 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: server certificate status verification SKIPPED 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: common name: .channel5.com (matched) 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: server certificate expiration date OK 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: server certificate activation date OK 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: certificate public key: RSA 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: certificate version: #3 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: subject: C=US,ST=New York,O=Viacom Inc.,OU=MTS - Channel5,CN=.channel5.com 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: start date: Wed, 23 Mar 2022 00:00:00 GMT 2022-10-19 18:29:44.100 T:61391 DEBUG : Curl::Debug - TEXT: expire date: Thu, 23 Mar 2023 23:59:59 GMT 2022-10-19 18:29:44.101 T:61391 DEBUG : Curl::Debug - TEXT: issuer: C=GB,ST=Greater Manchester,L=Salford,O=Sectigo Limited,CN=Sectigo RSA Organization Validation Secure Server CA 2022-10-19 18:29:44.101 T:61391 DEBUG : Curl::Debug - TEXT: ALPN, server did not agree to a protocol 2022-10-19 18:29:44.101 T:61391 DEBUG : Curl::Debug - HEADER_OUT: GET /cenc/C5410800002/C5410800002B/20221019215439/C5410800002B-tt.mpd HTTP/1.1 2022-10-19 18:29:44.101 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Host: hwdash.channel5.com 2022-10-19 18:29:44.101 T:61391 DEBUG : Curl::Debug - HEADER_OUT: User-Agent: KodifromDebian/19.4 (X11; Linux x86_64) Kodi_Fork_Kodi from Debian/1.0 Ubuntu/22.04 App_Bitness/64 Version/19.4-Debian-package-version:-2:19.4+dfsg1-2 2022-10-19 18:29:44.101 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Accept: / 2022-10-19 18:29:44.101 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Accept-Encoding: gzip 2022-10-19 18:29:44.101 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Accept-Charset: UTF-8,;q=0.8 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - TEXT: Mark bundle as not supporting multiuse 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: HTTP/1.1 200 OK 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Date: Thu, 20 Oct 2022 04:29:44 GMT 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Connection: Keep-Alive 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: ETag: "1666216604" 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Cache-Control: max-age=1186023 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Content-Length: 14606 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Content-Type: application/dash+xml 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Last-Modified: Wed, 19 Oct 2022 21:56:44 GMT 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Accept-Ranges: bytes 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: x-amz-id-2: S6Z6BggLg9d+YKIwncuoEmXLVGnZCS9EBpTDk/CE15+AYyXwYAKGR4XsRPcuLkMI6hWAb4wSixU= 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: x-amz-request-id: ARQN289FAWD7PQQ6 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: x-amz-server-side-encryption: AES256 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: X-HW: 1666240183.dop237.lo4.t,1666240184.cds252.lo4.shn,1666240184.dop237.lo4.t,1666240184.cds080.lo4.c 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Origin: 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Methods: GET,OPTIONS 2022-10-19 18:29:44.461 T:61391 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Content-Type,Accept-Encoding,Accept-Language,Range 2022-10-19 18:29:44.818 T:61391 DEBUG : Curl::Debug - TEXT: Connection #0 to host hwdash.channel5.com left intact 2022-10-19 18:29:44.819 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Download finished: https://hwdash.channel5.com/cenc/C5410800002/C5410800002B/20221019215439/C5410800002B-tt.mpd 2022-10-19 18:29:44.819 T:61391 INFO : AddOnLog: inputstream.adaptive: Successfully parsed manifest file. #Periods: 1, #Streams in first period: 3, Type: VOD, Download speed: 263944.7023 Bytes/s 2022-10-19 18:29:44.819 T:61391 DEBUG : AddOnLog: inputstream.adaptive: New period, dispose sample decrypter and reinitialize 2022-10-19 18:29:44.819 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Entering encryption section 2022-10-19 18:29:44.821 T:61391 DEBUG : AddOnLog: inputstream.adaptive: CDM version: 4.10.2449.0 2022-10-19 18:29:44.933 T:61391 DEBUG : AddOnLog: inputstream.adaptive: cdm::OnInitialized: true 2022-10-19 18:29:44.933 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Initializing stream with KID: 53B10EC55524422EB2845B7980F52281 2022-10-19 18:29:45.125 T:61391 DEBUG : AddOnLog: inputstream.adaptive: CDMMessage: 1 arrived! 2022-10-19 18:29:45.125 T:61391 DEBUG : AddOnLog: inputstream.adaptive: SetSession: opened session with Id: B2E70E0F6DD9F466A362B36BCE7F9293 2022-10-19 18:29:45.138 T:61391 DEBUG : CurlFile::ParseAndCorrectUrl() adding custom header option 'Expect: ' 2022-10-19 18:29:45.138 T:61391 DEBUG : CurlFile::Open(0x7f36800bf6f0) https://c5apps.channel5.com/wv/c5-wv-app-cert-20170524.bin 2022-10-19 18:29:45.138 T:61391 DEBUG : easy_acquire - Created session to https://c5apps.channel5.com 2022-10-19 18:29:45.788 T:61391 DEBUG : Curl::Debug - TEXT: Trying 95.100.104.7:443... 2022-10-19 18:29:46.083 T:61391 DEBUG : Curl::Debug - TEXT: Connected to c5apps.channel5.com (95.100.104.7) port 443 (#0) 2022-10-19 18:29:46.130 T:61391 DEBUG : Curl::Debug - TEXT: found 383 certificates in /etc/ssl/certs 2022-10-19 18:29:46.130 T:61391 DEBUG : Curl::Debug - TEXT: GnuTLS ciphers: NORMAL:-ARCFOUR-128:-CTYPE-ALL:+CTYPE-X509:-VERS-SSL3.0 2022-10-19 18:29:46.130 T:61391 DEBUG : Curl::Debug - TEXT: ALPN, offering h2 2022-10-19 18:29:46.130 T:61391 DEBUG : Curl::Debug - TEXT: ALPN, offering http/1.1 2022-10-19 18:29:46.685 T:61391 DEBUG : Curl::Debug - TEXT: SSL connection using TLS1.3 / ECDHE_RSA_AES_256_GCM_SHA384 2022-10-19 18:29:46.689 T:61391 DEBUG : Curl::Debug - TEXT: server certificate verification OK 2022-10-19 18:29:46.689 T:61391 DEBUG : Curl::Debug - TEXT: server certificate status verification SKIPPED 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: common name: MTVI.com (matched) 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: server certificate expiration date OK 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: server certificate activation date OK 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: certificate public key: EC/ECDSA 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: certificate version: #3 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: subject: C=US,ST=New York,L=New York,O=Viacom International Inc.,CN=MTVI.com 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: start date: Wed, 14 Sep 2022 00:00:00 GMT 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: expire date: Sat, 16 Sep 2023 23:59:59 GMT 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: issuer: C=US,O=DigiCert Inc,CN=DigiCert TLS RSA SHA256 2020 CA1 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - TEXT: ALPN, server accepted to use http/1.1 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - HEADER_OUT: POST /wv/c5-wv-app-cert-20170524.bin HTTP/1.1 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Host: c5apps.channel5.com 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - HEADER_OUT: User-Agent: KodifromDebian/19.4 (X11; Linux x86_64) Kodi_Fork_Kodi from Debian/1.0 Ubuntu/22.04 App_Bitness/64 Version/19.4-Debian-package-version:-2:19.4+dfsg1-2 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Accept: / 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Accept-Encoding: gzip, deflate 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Accept-Charset: UTF-8,;q=0.8 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Content-Length: 1677 2022-10-19 18:29:46.690 T:61391 DEBUG : Curl::Debug - HEADER_OUT: Content-Type: application/x-www-form-urlencoded 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - TEXT: Mark bundle as not supporting multiuse 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: HTTP/1.1 403 Forbidden 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Server: AkamaiGHost 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Mime-Version: 1.0 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Content-Type: text/html 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Content-Length: 323 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Cache-Control: max-age=3600 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Expires: Thu, 20 Oct 2022 05:29:46 GMT 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Date: Thu, 20 Oct 2022 04:29:46 GMT 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Connection: close 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Content-Type,Accept-Encoding,Accept-Language,Cache-Control 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Methods: GET,OPTIONS 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - HEADER_IN: Access-Control-Allow-Origin: 2022-10-19 18:29:47.212 T:61391 DEBUG : Curl::Debug - TEXT: Closing connection 0 2022-10-19 18:29:47.215 T:61391 ERROR : CCurlFile::Open failed with code 403 for https://c5apps.channel5.com/wv/c5-wv-app-cert-20170524.bin:

2022-10-19 18:29:47.215 T:61391 ERROR : AddOnLog: inputstream.adaptive: License server returned failure 2022-10-19 18:29:47.215 T:61391 ERROR : AddOnLog: inputstream.adaptive: License update not successful (no keys) 2022-10-19 18:29:47.215 T:61391 DEBUG : AddOnLog: inputstream.adaptive: CloseSessionId: close session with Id: B2E70E0F6DD9F466A362B36BCE7F9293 2022-10-19 18:29:47.226 T:61391 DEBUG : AddOnLog: inputstream.adaptive: CDMMessage: 4 arrived! 2022-10-19 18:29:47.244 T:61391 DEBUG : AddOnLog: inputstream.adaptive: CloseSessionId: session closed 2022-10-19 18:29:47.244 T:61391 ERROR : AddOnLog: inputstream.adaptive: Initialize failed (SingleSampleDecrypter) 2022-10-19 18:29:47.244 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Session::~Session() 2022-10-19 18:29:47.262 T:61391 ERROR : CVideoPlayer::OpenInputStream - error opening [plugin://plugin.video.catchuptvandmore/resources/lib/channels/uk/test/get_live_url/?_pickle_=80049542000000000000007d94288c075f7469746c655f948c0474657374948c08786d6c74765f6964948c12313031332e747667756964652e636f2e756b948c076974656d5f6964946802752e] 2022-10-19 18:29:47.262 T:61391 INFO : CVideoPlayer::OnExit() 2022-10-19 18:29:47.262 T:61391 DEBUG : AddOnLog: inputstream.adaptive: Close() 2022-10-19 18:29:47.26 ### MPD/M3U8s/ISM An example or copy of a manifest (or manifests for HLS - master and variants) can be found here: [C5410800002B-tt.mpd](https://github.com/xbmc/inputstream.adaptive/files/9826277/C5410800002B-tt.txt) ### Screenshots Here are some links or screenshots to help explain the problem: ## Additional context or screenshots (if appropriate) Here is some additional context or explanation that might help: ### Your Environment Used Operating system: - [x] Android - [ ] iOS - [ ] tvOS - [x] Linux - [ ] OSX - [x] Windows - [ ] Windows UWP - Operating system version/name: - Kodi version: 19 - inputstream.adaptive version: 19 *note: Once the issue is made we require you to update it with new information should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.*
mbebe commented 2 years ago

@joaopa00 url : https://c5apps.channel5.com/wv/c5-wv-app-cert-20170524.bin is not for license. should be something like: https://cassie.channel5.com/api/v2/licences/widevine/208/C55C5C5C5C5C5?expiry=1666346566&tag=1111111111111111111111111111111111111111111111

joaopa00 commented 2 years ago

Thanks for the help. But even with your license link, I did not manage to play the stream. Did you manage?

CastagnaIT commented 2 years ago

you have to inspect your video provider and provide to ISAdaptive the right license configuration

joaopa00 commented 2 years ago

Thank you for the feedback. Thanks to your advices, I managed to play the stream (indeed the license URL was wrong) I close this bug then.

Again, thank you for the support.