kodi-svtplay / xbmc-svtplay

Unofficial addon for watching SVT Play on Kodi
GNU General Public License v3.0
67 stars 34 forks source link

All sections still fail #197

Closed castalla closed 7 years ago

castalla commented 7 years ago

Latest update still results in all sections reporting error

linqcan commented 7 years ago

Please state exact steps to reproduce and what version of Kodi and SVT play you are running.

On Thu, Mar 30, 2017, 17:43 castalla notifications@github.com wrote:

Latest update still results in all sections reporting error

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nilzen/xbmc-svtplay/issues/197, or mute the thread https://github.com/notifications/unsubscribe-auth/AAy12BWMX4XTbX0mQRFUtmbtGPw__3bxks5rq82ngaJpZM4MujEV .

linqcan commented 7 years ago

I suspect you might be victim of #198 . Please supply logs to this ticket for me to verify,

castalla commented 7 years ago

SVTPlay 4.0.46 Kodi 16.5.5

Can't easily get a log as using Fire TV

linqcan commented 7 years ago

My best bet is to upgrade to Kodi 17

On Thu, Mar 30, 2017, 23:02 castalla notifications@github.com wrote:

SVTPlay 4.0.46 Kodi 16.5.5

Can't easily get a log as using Fire TV

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/nilzen/xbmc-svtplay/issues/197#issuecomment-290543995, or mute the thread https://github.com/notifications/unsubscribe-auth/AAy12BmYuvBbh6zApV9fN8v2vP78MPgWks5rrBhmgaJpZM4MujEV .

castalla commented 7 years ago

Same symptoms with Kodi 17 - plugin script error

linqcan commented 7 years ago

Ok, still suspect that you suffer from #198 but can't verify without a log, I'm afraid.

On Sat, Apr 1, 2017, 10:47 castalla notifications@github.com wrote:

Same symptoms with Kodi 17 - plugin script error

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/nilzen/xbmc-svtplay/issues/197#issuecomment-290906454, or mute the thread https://github.com/notifications/unsubscribe-auth/AAy12HLJv7wTHsCs2cWkpkhUznP4t5zRks5rrg8lgaJpZM4MujEV .

castalla commented 7 years ago

Finally got access to log - looks like there's an ssl error

11:24:00.931 T:18446744072510992136 WARNING: CPythonInvoker(5): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.

11:24:22.533 T:18446744072500315376   ERROR: GetDirectory - Error getting

11:24:59.149 T:18446744072511314528   ERROR: Previous line repeats 9 times.

11:24:59.150 T:18446744072511314528   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!

                                            Error Type: <class 'requests.exceptions.SSLError'>

                                            Error Contents: hostname 'www.svtplay.se' doesn't match either of '*.svt.se', 'svt.se', '*.stage.svt.se', 'stage.svt.se', '*.app.svt.se', 'app.svt.se'

                                            Traceback (most recent call last):

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.svtplay/default.py", line 378, in <module>

                                                viewSection(ARG_MODE, int(ARG_PAGE))

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.svtplay/default.py", line 128, in viewSection

                                                (items, more_items) = svt.getItems(section, page)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.svtplay/resources/lib/svt.py", line 304, in getItems

                                                json_data = __get_json(section_name+"?page="+str(page))

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.svtplay/resources/lib/svt.py", line 369, in __get_json

                                                response = requests.get(url)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/api.py", line 70, in get

                                                return request('get', url, params=params, **kwargs)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/api.py", line 56, in request

                                                return session.request(method=method, url=url, **kwargs)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 488, in request

                                                resp = self.send(prep, **send_kwargs)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 630, in send

                                                history = [resp for resp in gen] if allow_redirects else []

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 190, in resolve_redirects

                                                **adapter_kwargs

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/sessions.py", line 609, in send

                                                r = adapter.send(request, **kwargs)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/adapters.py", line 497, in send

                                                raise SSLError(e, request=request)

                                            SSLError: hostname 'www.svtplay.se' doesn't match either of '*.svt.se', 'svt.se', '*.stage.svt.se', 'stage.svt.se', '*.app.svt.se', 'app.svt.se'

                                            -->End of Python script error report<--

11:24:59.285 T:18446744072490119360   ERROR: GetDirectory - Error getting plugin://plugin.video.svtplay/?mode=popular

11:24:59.289 T:18446744072490119360   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.svtplay/?mode=popular) failed

11:25:03.413 T:18446744072500315376   ERROR: Unable to find plugin

11:25:03.413 T:18446744072490119360   ERROR: GetDirectory - Error getting plugin://

11:25:03.416 T:18446744072490119360   ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed

11:27:02.781 T:18446744072490119360  NOTICE: Storing total System Uptime

11:27:02.785 T:18446744072490119360  NOTICE: Saving settings

11:27:02.857 T:18446744072490119360  NOTICE: Saving skin settings

11:27:02.860 T:18446744072490119360  NOTICE: stop all

11:27:02.861 T:18446744072490119360  NOTICE: stop player

11:27:02.861 T:18446744072490119360  NOTICE: ES: Stopping event server

11:27:02.861 T:18446744072490119360  NOTICE: stopping upnp

11:27:03.626 T:18446744072505614800  NOTICE: ES: UDP Event server stopped

11:27:03.648 T:18446744072490119360  NOTICE: clean cached files!

11:27:03.952 T:18446744072490119360  NOTICE: closing down remote control service

11:27:03.953 T:18446744072490119360  NOTICE: stopped

11:27:04.158 T:18446744072490119360  NOTICE: destroy

11:27:04.158 T:18446744072490119360  NOTICE: unload skin

11:27:04.405 T:18446744072490119360  NOTICE: unload sections

11:27:04.425 T:18446744072490119360  NOTICE: special://profile/ is mapped to: special://masterprofile/

11:27:04.446 T:18446744072490119360  NOTICE: application stopped...
linqcan commented 7 years ago

This is an error related to the distribution you are running. The Python installation might be old or missing "SNI" support 1. I think you should contact the maintainers for FireTV.

castalla commented 7 years ago

Do you mean the Fire OS is deficient?

linqcan commented 7 years ago

Yes, that is my conclusion from scanning the internet. Not sure if there is any FireTV support at all, you have to look in the forums or here [1] I'm afraid. Just tried with Kodi 17.1 on Android (7.1.2) and had no issues.

As SSL is getting a requirement for SVTPlay I will soon drop support for Kodi <v17.

[1] http://kodi.wiki/view/HOW-TO:Install_Kodi_on_Fire_TV

castalla commented 7 years ago

Thanks for the note. All very strange as Kodi with SVT has worked for years (apart from the usual hiccups!).

All other plugins, streams are working as usual. - no updates to FireTV for months.

linqcan commented 7 years ago

Yes, but they (SVT) just recently turned on HTTPS/SSL for everything (you can verify this by visiting the site in your browser).

They (the other plugins) do not have their content behind HTTPS/SSL and/or are using the Python lib requests.

wader commented 7 years ago

I run Kodi 17.1 on FireTV and with verison 4.0.46 i can play more or less everything. Sometimes programs in the news section and live streams have some issues.

Looking at the certificate sent by www.svtplay.se it does not seem to match the names in the error message SSLError: hostname 'www.svtplay.se' doesn't match either of '*.svt.se', 'svt.se', '*.stage.svt.se', 'stage.svt.se', '*.app.svt.se', 'app.svt.se'. No wildcard and no app.svt.se at all... weird.

$ openssl s_client -connect www.svtplay.se:443 | openssl x509 -noout -text | grep DNS
depth=1 /C=US/O=GeoTrust Inc./CN=GeoTrust SSL CA - G3
verify error:num=20:unable to get local issuer certificate
verify return:0
                DNS:pejl.svt.se, DNS:api.svt.se, DNS:media.svt.se, DNS:amp.svt.se, DNS:applications.stage.svt.se, DNS:www.stage.oppetarkiv.se, DNS:svt.se, DNS:www.stage.svtplay.se, DNS:www.svtstatic.se, DNS:api.stage.svt.se, DNS:www.stage.svt.se, DNS:www.svtplay.se, DNS:www.oppetarkiv.se, DNS:applications.svt.se, DNS:www.svt.se

@castalla what kind of internet connection are you using, running thru some proxy? I get a feeling you get an old certificate for some strange reason.

linqcan commented 7 years ago

@wader Thanks for looking into this!

castalla commented 7 years ago

Yes, I'm using a smartdns - same problem on 2 different smartdns systems.

I first noticed a problem with the SVTPlay webpage when Windows browser complained about an invalid certificate.

On Kodi17.1 on FireTV I now get the various submenus but no program plays - just the error message.

wader commented 7 years ago

Ok. That I think rules out issue with FireTV, Kodi or this plugin. This looks very fishy:

$ host  www.svtplay.se 168.1.79.238 (168.1.79.238 is SmartDNS server)
Using domain server:
Name: 168.1.79.238
Address: 168.1.79.238#53
Aliases:

www.svtplay.se has address 54.242.237.204
$ host  www.svtplay.se
www.svtplay.se is an alias for www.svtplay.se.edgekey.net.
www.svtplay.se.edgekey.net is an alias for e6703.dscb.akamaiedge.net.
e6703.dscb.akamaiedge.net has address 95.101.97.5
e6703.dscb.akamaiedge.net has IPv6 address 2a02:26f0:e2:18e::1a2f
e6703.dscb.akamaiedge.net has IPv6 address 2a02:26f0:e2:1a1::1a2f

So SmartDNS returns 54.242.237.204 which seems to be an IP controlled by SmartDNS. My guess is your connection gets man-in-the-middled and then either SmartDNS has cache problems or SmartDNS connects to www.svtplay.com from a source IP that for some reason gets a misconfigured response from SVT.

castalla commented 7 years ago

Thanks. I'll try to get the smartdns outfit to look at it.

Although, the problem occurs with 2 different smartdns provders - so something more widespread?

wader commented 7 years ago

No idea really. My tip is to not use SmartDNS with svtplay 😄

castalla commented 7 years ago

I've tried several smartdns - all fail. The fact I got an invalid SSL cert. last week on Windows suggests that SVT may have messed up their SSL settings ...???

SmartDNS has worked for years with SVT - and still does with Windows (after last week's hiccup)

Pity.

wader commented 7 years ago

Did some more research. It seems like svtplay.se and www.svtplay.se resolve to different DNS records and also return different certificates.

$ openssl s_client -connect svtplay.se:443 | openssl x509 -noout -text | grep DNS
depth=1 /C=US/O=DigiCert Inc/CN=DigiCert SHA2 Secure Server CA
verify error:num=20:unable to get local issuer certificate
verify return:0
                DNS:*.svt.se, DNS:svt.se, DNS:*.stage.svt.se, DNS:stage.svt.se, DNS:*.app.svt.se, DNS:app.svt.se

$ openssl s_client -connect www.svtplay.se:443 | openssl x509 -noout -text | grep DNS
depth=1 /C=US/O=GeoTrust Inc./CN=GeoTrust SSL CA - G3
verify error:num=20:unable to get local issuer certificate
verify return:0
                DNS:pejl.svt.se, DNS:api.svt.se, DNS:media.svt.se, DNS:amp.svt.se, DNS:applications.stage.svt.se, DNS:www.stage.oppetarkiv.se, DNS:svt.se, DNS:www.stage.svtplay.se, DNS:www.svtstatic.se, DNS:api.stage.svt.se, DNS:www.stage.svt.se, DNS:www.svtplay.se, DNS:www.oppetarkiv.se, DNS:applications.svt.se, DNS:www.svt.se

My guess is that svtplay.se is not really suppose to be used with https at all... maybe it just happens to resolve to IP used by the other services we see in the certificate.

Looking at the plugin code it seems like svtplay.se is used (https://github.com/nilzen/xbmc-svtplay/blob/2534ce3a2d2f678f8a37aa2a1100695578929145/resources/lib/svt.py#L9) that i think should not really be a problem as it correctly redirects to https://www.svtplay.se.

http://svtplay.se redirects to http://www.svtplay.se/ http://www.svtplay.se/ redirect to https://www.svtplay.se/

Maybe the SmartDNS MITM stuff messes up this somehow?

@linqcan Would it be possible to change BASE_URL to https://www.svtplay.se or http://www.svtplay.se? I would not surprised if that would fix this... and might also make some requests faster 😄

linqcan commented 7 years ago

@wader Thanks for sharing! Will look into that for sure!

Reopen as a reminder to check if switching to another base URL will help avoid redirect.

castalla commented 7 years ago

Thanks for looking at this. Hope the base_url change can be made - even just as a test.

castalla commented 7 years ago

Any chance you could look at this? Thanks.

linqcan commented 7 years ago

Yep, up next. Sorry for the delay. If you want to try it yourself you can change thr URL in resources/lib/svt.py in your own installation.

On Fri, Apr 14, 2017, 16:55 castalla notifications@github.com wrote:

Any chance you could look at this? Thanks.

— You are receiving this because you modified the open/close state.

Reply to this email directly, view it on GitHub https://github.com/nilzen/xbmc-svtplay/issues/197#issuecomment-294168017, or mute the thread https://github.com/notifications/unsubscribe-auth/AAy12OeU6xHyN5NjzcoinCQM8N2QJ6Brks5rv4jwgaJpZM4MujEV .

castalla commented 7 years ago

Hi

Tried a fix

Sadly changing to www.svtplay.se didn't work

wader commented 7 years ago

Did you try https or http?

castalla commented 7 years ago

Used http://www.svtplay.se and https://

wader commented 7 years ago

Ok, can you try https?

castalla commented 7 years ago

Tried https://

No luck - script errors for every menu item

wader commented 7 years ago

https seems to work for me with Kodi 17.1 (16 will not work because of missing SNI support).

castalla commented 7 years ago

It must be something to do with the smartdns - no luck with 17.1 either.

wader commented 7 years ago

can you check the logs when using https://www.svtplay.se and 17.1?

castalla commented 7 years ago

Will do - will take some time as it's on a Fire TV Box

castalla commented 7 years ago

Here's the log:

13:52:39.170 T:18446744072499061976  NOTICE: special://profile/ is mapped to: special://masterprofile/

13:52:39.170 T:18446744072499061976  NOTICE: -----------------------------------------------------------------------

13:52:39.171 T:18446744072499061976  NOTICE: Starting Kodi (17.1 Git:20170320-fc1619b). Platform: Android ARM 32-bit

13:52:39.171 T:18446744072499061976  NOTICE: Using Release Kodi x32 build

13:52:39.171 T:18446744072499061976  NOTICE: Kodi compiled Mar 20 2017 by GCC 4.9.0 for Android ARM 32-bit API level 21 (API level 21)

13:52:39.171 T:18446744072499061976  NOTICE: Running on Amazon AFTB with Android 5.1.1 API level 22, kernel: Linux ARM 32-bit version 3.4.0-perf-ge67fcdb

13:52:39.175 T:18446744072499061976  NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi

13:52:39.176 T:18446744072499061976  NOTICE: Host CPU: ARMv7 Processor rev 0 (v7l), 4 cores available

13:52:39.176 T:18446744072499061976  NOTICE: Product: bueller, Device: bueller, Board: MSM8960 - Manufacturer: Amazon, Brand: Amazon, Model: AFTB, Hardware: qcom

13:52:39.177 T:18446744072499061976  NOTICE: External storage path = /storage/emulated/0; status = ok

13:52:39.177 T:18446744072499061976  NOTICE: ARM Features: Neon enabled

13:52:39.178 T:18446744072499061976  NOTICE: special://xbmc/ is mapped to: /data/data/org.xbmc.kodi/cache/apk/assets

13:52:39.178 T:18446744072499061976  NOTICE: special://xbmcbin/ is mapped to: /data/data/org.xbmc.kodi/cache/apk/assets

13:52:39.178 T:18446744072499061976  NOTICE: special://xbmcbinaddons/ is mapped to: /data/app/org.xbmc.kodi-1/lib/arm

13:52:39.178 T:18446744072499061976  NOTICE: special://masterprofile/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata

13:52:39.178 T:18446744072499061976  NOTICE: special://envhome/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files

13:52:39.178 T:18446744072499061976  NOTICE: special://home/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi

13:52:39.178 T:18446744072499061976  NOTICE: special://temp/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp

13:52:39.179 T:18446744072499061976  NOTICE: special://logpath/ is mapped to: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp

13:52:39.179 T:18446744072499061976  NOTICE: The executable running is: /data/app/org.xbmc.kodi-1/lib/arm/libkodi.so

13:52:39.179 T:18446744072499061976  NOTICE: Local hostname: localhost

13:52:39.179 T:18446744072499061976  NOTICE: Log File is located: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/temp//kodi.log

13:52:39.181 T:18446744072499061976  NOTICE: -----------------------------------------------------------------------

13:52:39.216 T:18446744072499061976  NOTICE: load settings...

13:52:39.254 T:18446744072499061976   DEBUG: CSettings: loaded settings definition from special://xbmc/system/settings/settings.xml

13:52:39.271 T:18446744072499061976 WARNING: CSettingInt: unknown options filler "audiocdactions" of "audiocds.autoaction"

13:52:39.293 T:18446744072499061976   DEBUG: CSettings: loaded settings definition from special://xbmc/system/settings/android.xml

13:52:39.295 T:18446744072499061976   DEBUG: Firmware implements AC3 RAW

13:52:39.295 T:18446744072499061976   DEBUG: Firmware implements EAC3 RAW

13:52:39.296 T:18446744072499061976   DEBUG: AESinkAUDIOTRACK - 32000 supported

13:52:39.296 T:18446744072499061976   DEBUG: AESinkAUDIOTRACK - 44100 supported

13:52:39.297 T:18446744072499061976   DEBUG: AESinkAUDIOTRACK - 48000 supported

13:52:39.298 T:18446744072499061976   DEBUG: AESinkAUDIOTRACK - 88200 supported

13:52:39.299 T:18446744072499061976   DEBUG: AESinkAUDIOTRACK - 96000 supported

13:52:39.299 T:18446744072499061976  NOTICE: Found 1 Lists of Devices

13:52:39.299 T:18446744072499061976  NOTICE: Enumerated AUDIOTRACK devices:

13:52:39.299 T:18446744072499061976  NOTICE:     Device 1

13:52:39.299 T:18446744072499061976  NOTICE:         m_deviceName      : AudioTrack

13:52:39.300 T:18446744072499061976  NOTICE:         m_displayName     : android

13:52:39.300 T:18446744072499061976  NOTICE:         m_displayNameExtra: audiotrack

13:52:39.300 T:18446744072499061976  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI

13:52:39.300 T:18446744072499061976  NOTICE:         m_channels        : FL,FR,FC,LFE,BL,BR,SL,SR

13:52:39.300 T:18446744072499061976  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000

13:52:39.300 T:18446744072499061976  NOTICE:         m_dataFormats     : AE_FMT_S16LE,AE_FMT_RAW

13:52:39.300 T:18446744072499061976  NOTICE:         m_streamTypes     : STREAM_TYPE_AC3,STREAM_TYPE_EAC3

13:52:39.339 T:18446744072499061976  NOTICE: No settings file to load (special://xbmc/system/advancedsettings.xml)

13:52:39.340 T:18446744072499061976  NOTICE: No settings file to load (special://masterprofile/advancedsettings.xml)

13:52:39.340 T:18446744072499061976  NOTICE: Default Video Player: VideoPlayer

13:52:39.340 T:18446744072499061976  NOTICE: Default Audio Player: paplayer

13:52:39.341 T:18446744072499061976  NOTICE: Disabled debug logging due to GUI setting. Level 0.

13:52:39.341 T:18446744072499061976  NOTICE: Log level changed to "LOG_LEVEL_NORMAL"

13:52:39.341 T:18446744072499061976  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.

13:52:39.342 T:18446744072499061976  NOTICE: Loaded playercorefactory configuration

13:52:39.343 T:18446744072499061976  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.

13:52:39.343 T:18446744072499061976  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.

13:52:39.420 T:18446744072499061976  NOTICE: Running database version Addons27

13:52:39.739 T:18446744072499061976  NOTICE: ADDONS: Using repository repository.xbmc.org

13:52:39.739 T:18446744072499061976  NOTICE: ADDONS: Using repository repo.hybrid

13:52:39.740 T:18446744072499061976  NOTICE: ADDONS: Using repository repository.Kinkin

13:52:39.740 T:18446744072499061976  NOTICE: ADDONS: Using repository repository.iptvxtra

13:52:39.740 T:18446744072499061976  NOTICE: ADDONS: Using repository repository.googlecode.xbmc-catchuptv-au

13:52:39.740 T:18446744072499061976  NOTICE: ADDONS: Using repository repository.k3oni.xbmc

13:52:39.889 T:18446744072500901688  NOTICE: Trying to open: 44100 samplerate 12 channelMask 4 encoding

13:52:39.895 T:18446744072500901688  NOTICE: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 45152 m_frames: 2822 m_frameSize: 8 channels: 2

13:52:39.992 T:18446744072499061976  NOTICE: InitWindowSystem: Using EGL Implementation: android

13:52:39.995 T:18446744072499061976  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 50.000000 Hz

13:52:39.995 T:18446744072499061976  NOTICE: Found resolution 1280 x 720 for display 0 with 1280 x 720 @ 60.000000 Hz

13:52:39.995 T:18446744072499061976  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 50.000000 Hz

13:52:39.995 T:18446744072499061976  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 60.000000 Hz

13:52:39.995 T:18446744072499061976  NOTICE: Found resolution 1920 x 1080 for display 0 with 1920 x 1080 @ 24.000000 Hz

13:52:39.995 T:18446744072499061976  NOTICE: Found (1920x1080@60.000000) at 19, setting to RES_DESKTOP at 16

13:52:39.995 T:18446744072499061976  NOTICE: Checking resolution 16

13:52:40.045 T:18446744072499061976  NOTICE: GL_VENDOR = Qualcomm

13:52:40.045 T:18446744072500901688  NOTICE: Trying to open: 44100 samplerate 12 channelMask 4 encoding

13:52:40.045 T:18446744072499061976  NOTICE: GL_RENDERER = Adreno (TM) 320

13:52:40.045 T:18446744072499061976  NOTICE: GL_VERSION = OpenGL ES 3.0 V@84.0 AU@05.00.02.006.020 (CL@)

13:52:40.045 T:18446744072499061976  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 3.00

13:52:40.045 T:18446744072499061976  NOTICE: GL_EXTENSIONS = GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_robustness GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_sync GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_depth_texture_cube_map GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_texture_sRGB_decode GL_EXT_texture_filter_anisotropic GL_EXT_multisampled_render_to_texture GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_disjoint_timer_query

13:52:40.056 T:18446744072500901688  NOTICE: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 45152 m_frames: 2822 m_frameSize: 8 channels: 2

13:52:40.946 T:18446744072500846432  NOTICE: Running database version Addons27

13:52:40.950 T:18446744072500846432  NOTICE: Running database version ViewModes6

13:52:40.961 T:18446744072500846432  NOTICE: Running database version Textures13

13:52:40.975 T:18446744072500846432  NOTICE: Running database version MyMusic60

13:52:41.001 T:18446744072500846432  NOTICE: Running database version MyVideos107

13:52:41.008 T:18446744072500846432  NOTICE: Running database version TV29

13:52:41.015 T:18446744072500846432  NOTICE: Running database version Epg11

13:52:41.610 T:18446744072499061976 WARNING: JSONRPC: Could not parse type "Setting.Details.SettingList"

13:52:42.673 T:18446744072499061976  NOTICE: initialize done

13:52:42.676 T:18446744072499061976  NOTICE: Running the application...

13:52:42.681 T:18446744072499061976  NOTICE: starting upnp client

13:52:42.707 T:18446744072499061976  NOTICE: GL_VENDOR = Qualcomm

13:52:42.707 T:18446744072499061976  NOTICE: GL_RENDERER = Adreno (TM) 320

13:52:42.707 T:18446744072499061976  NOTICE: GL_VERSION = OpenGL ES 3.0 V@84.0 AU@05.00.02.006.020 (CL@)

13:52:42.707 T:18446744072499061976  NOTICE: GL_SHADING_LANGUAGE_VERSION = OpenGL ES GLSL ES 3.00

13:52:42.708 T:18446744072499061976  NOTICE: GL_EXTENSIONS = GL_AMD_compressed_ATC_texture GL_AMD_performance_monitor GL_AMD_program_binary_Z400 GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_robustness GL_EXT_texture_format_BGRA8888 GL_EXT_texture_type_2_10_10_10_REV GL_NV_fence GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth_texture GL_OES_depth24 GL_OES_EGL_image GL_OES_EGL_sync GL_OES_EGL_image_external GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_fragment_precision_high GL_OES_get_program_binary GL_OES_packed_depth_stencil GL_OES_depth_texture_cube_map GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_3D GL_OES_texture_float GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_vertex_type_10_10_10_2 GL_OES_vertex_array_object GL_QCOM_alpha_test GL_QCOM_binning_control GL_QCOM_driver_control GL_QCOM_perfmon_global_mode GL_QCOM_extended_get GL_QCOM_extended_get2 GL_QCOM_tiled_rendering GL_QCOM_writeonly_rendering GL_EXT_sRGB GL_EXT_sRGB_write_control GL_EXT_texture_sRGB_decode GL_EXT_texture_filter_anisotropic GL_EXT_multisampled_render_to_texture GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_disjoint_timer_query

13:52:42.708 T:18446744072498641472  NOTICE: ES: Starting UDP Event server on port 9777

13:52:42.708 T:18446744072498641472  NOTICE: UDP: Listening on port 9777 (ipv6 : false)

13:52:42.948 T:18446744072510445088 WARNING: CreateLoader - unsupported protocol(playmedia("plugin) in playmedia("plugin://plugin.video.zattoobox/?ext=LiveTV&mode=watch&id=bbc-world-service").tbn

13:52:43.654 T:18446744072507012952  NOTICE: script.grab.fanart: Grab Fanart Service Started

13:52:43.758 T:18446744072509630048   ERROR: CCurlFile::Open failed with code 404 for http://hybrid-development-repo.googlecode.com/svn/trunk/addons.xml.md5

13:52:43.759 T:18446744072509630048   ERROR: Open - failed to open source <http://hybrid-development-repo.googlecode.com/svn/trunk/addons.xml.md5>

13:52:43.759 T:18446744072509630048   ERROR: CRepository: failed read 'http://hybrid-development-repo.googlecode.com/svn/trunk/addons.xml.md5'

13:52:43.964 T:18446744072507025240   ERROR: CCurlFile::Open failed with code 404 for https://offshoregit.com/kinkin-xbmc-repository/addons.xml.md5

13:52:43.964 T:18446744072507025240   ERROR: Open - failed to open source <https://offshoregit.com/kinkin-xbmc-repository/addons.xml.md5>

13:52:43.964 T:18446744072507025240   ERROR: CRepository: failed read 'https://offshoregit.com/kinkin-xbmc-repository/addons.xml.md5'

13:52:45.282 T:18446744072509630048   ERROR: CAddonMgr: Failed to parse addons.xml. Malformed.

13:52:49.358 T:18446744072507025240   ERROR: CAddonInstallJob[plugin.video.iplayerwww]: The dependency on inputstream.adaptive version 1.0.6 could not be satisfied.

13:52:49.459 T:18446744072507812936 WARNING: CPythonInvoker(5): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.

13:52:58.357 T:18446744072510445088   ERROR: GetDirectory - Error getting

13:58:47.638 T:18446744072526214248   ERROR: Previous line repeats 9 times.

13:58:47.638 T:18446744072526214248   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!

                                            Error Type: <type 'exceptions.ValueError'>

                                            Error Contents: No JSON object could be decoded

                                            Traceback (most recent call last):

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.svtplay/default.py", line 378, in <module>

                                                startVideo(ARG_URL)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.svtplay/default.py", line 273, in startVideo

                                                video_json = svt.getVideoJSON(url)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.svtplay/resources/lib/svt.py", line 314, in getVideoJSON

                                                return __get_video_json_for_video_id(video_id)

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.svtplay/resources/lib/svt.py", line 380, in __get_video_json_for_video_id

                                                return response.json()

                                              File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib/requests/models.py", line 850, in json

                                                return complexjson.loads(self.text, **kwargs)

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/json/__init__.py", line 339, in loads

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/json/decoder.py", line 364, in decode

                                              File "/home/jenkins/workspace/Android-ARM/tools/depends/xbmc-depends/arm-linux-androideabi-android-21/lib/python2.7/json/decoder.py", line 382, in raw_decode

                                            ValueError: No JSON object could be decoded

                                            -->End of Python script error report<--

13:58:47.796 T:18446744072499061976   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.svtplay/?url=video%2F1377041-001&mode=video]

13:59:06.165 T:18446744072531631912   ERROR: Unable to find plugin

13:59:06.165 T:18446744072499061976   ERROR: GetDirectory - Error getting plugin://

13:59:06.167 T:18446744072499061976   ERROR: CGUIMediaWindow::GetDirectory(plugin://) failed

13:59:29.524 T:18446744072499061976  NOTICE: Storing total System Uptime

13:59:29.528 T:18446744072499061976  NOTICE: Saving settings

13:59:29.594 T:18446744072499061976  NOTICE: Saving skin settings

13:59:29.600 T:18446744072499061976  NOTICE: stop all

13:59:29.601 T:18446744072499061976  NOTICE: stop player

13:59:29.601 T:18446744072499061976  NOTICE: ES: Stopping event server

13:59:29.601 T:18446744072499061976  NOTICE: stopping upnp

13:59:30.094 T:18446744072498641472  NOTICE: ES: UDP Event server stopped

13:59:30.115 T:18446744072499061976  NOTICE: clean cached files!

13:59:30.358 T:18446744072499061976  NOTICE: closing down remote control service

13:59:30.358 T:18446744072499061976  NOTICE: stopped

13:59:30.559 T:18446744072499061976  NOTICE: destroy

13:59:30.560 T:18446744072499061976  NOTICE: unload skin

13:59:30.944 T:18446744072499061976  NOTICE: unload sections

13:59:30.977 T:18446744072499061976  NOTICE: special://profile/ is mapped to: special://masterprofile/

13:59:31.007 T:18446744072499061976  NOTICE: application stopped...
linqcan commented 7 years ago

Looks like you are getting a valid HTTP reponse code but "corrupt" data. I'd say you contact SmartDNS to figure out way they are Man In The Middle (MITM) fiddle-ing you connection to SVTPlay. If not @wader has seen something else of interest.

In any case, I have switched to a HTTPS base URL now to avoid redirects as SVT forces HTTPS and does redirects for HTTP. Works on Ubuntu (both for me and Travis) and I will push this soon to see if it generates any regression for other users. https://github.com/nilzen/xbmc-svtplay/commit/d794a70b3fa02ea90973f484ccc83ad4a3deb5f1

I will close this issue as I do not consider your issues to be caused by the plugin, but please continue the discussion if you like to ("closing" is a formality).

castalla commented 7 years ago

Thanks for the update on this. I'll try raising it again with smartdns people. They've ignored all my previous reports! Strange all other streams from Norway and Denmark work.

jbbandos commented 5 years ago

Hi, I'm using smartdns, but SVT play works on librelec, and fails on fireTV. The exact same issue as people have documented here. I just copied the full .kodi structure from the working librelec to a fireTV stick, and SVT play won't work on fireTV. Just to be 100% sure, I copied that .kodi structure back from the fireTV to a new librelec install, and SVT play work there. Seems fireTV related to me.

The last few lines of kodi.log: tail -f /sdcard/Android/data/org.xbmc.kodi/files/.kodi/temp/kodi.log 2019-03-14 19:17:03.022 T:4928 NOTICE: VideoPlayer: waiting for threads to exit 2019-03-14 19:17:03.022 T:4928 NOTICE: VideoPlayer: finished waiting 2019-03-14 19:17:33.021 T:5466 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.svtplay/?url=ch-svt2&mode=video 2019-03-14 19:17:33.021 T:5466 ERROR: InputStream: Error opening, plugin://plugin.video.svtplay/?url=ch-svt2&mode=video 2019-03-14 19:17:33.023 T:5466 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.svtplay/?url=ch-barnkanalen&mode=video 2019-03-14 19:17:33.023 T:5466 ERROR: InputStream: Error opening, plugin://plugin.video.svtplay/?url=ch-barnkanalen&mode=video 2019-03-14 19:17:33.025 T:5468 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.svtplay/?url=ch-svt1&mode=video 2019-03-14 19:17:33.026 T:5468 ERROR: InputStream: Error opening, plugin://plugin.video.svtplay/?url=ch-svt1&mode=video 2019-03-14 19:17:33.027 T:5466 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.svtplay/?url=ch-kunskapskanalen&mode=video 2019-03-14 19:17:33.028 T:5466 ERROR: InputStream: Error opening, plugin://plugin.video.svtplay/?url=ch-kunskapskanalen&mode=video