Kodi Community Forum

Full Version: [RELEASE] SVT Play (Plugin) Video Addon - Sveriges Television (Swedish TV)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Some content seems to not be available via the XBMC plugin. First of all the "recommended" and "latest program" categories does not match whats displayed on svtplay.se. Some content I cannot find at all, no matter if i browse category, list programs on name or even search. Is this a limitation from SVT, a bug or am I doing something wrong?

An example would be http://www.svtplay.se/video/220694/varld...a-atombomb (maybe a bad one, as its only available for one more day)

Running OpenELEC 2.0 Beta 5(1.95.5) [XBMC-Eden].
I have exactly the same problem as kdid. Some shows are missing, for example "Lilyhammer".
smae problem as Kdid and geemax
the reason could be that svt has changed how they stream stuff and at the same time stopped bothering about keeping the iphone app xml (that the addon is using, I believe) up to date...
weird thing is that some shows come up in "Latest videos". They are updated all the time.
But some shows just dont show up even though several new programs have been sent. They cant even be found if you go to A-Ö and choose the program.
But all the shows are there on the svtplay.se

Example is Uppdrag Granskning. There is only first show of new season via XBMC, although 4 episodes have been broadcasted and exist on svtplay.se.
Xot plugin works as it should in case anyone needs to fill their addiction :p
When I do search from this plugin XBMC almost always crashes. Also, one old search term that I did is always pre-filled in the search box. Even thoughI've done successful searches since.

http://paste.ubuntu.com/1223036/

I am using the svtplay plugin 2.04 and gets te folloing error (xot works on some content) on openelec

NOTICE: An unhandled exception was triggered in the SVT Play adddon.
ERROR: Error Type: <class 'xml.parsers.expat.ExpatError'>
ERROR: Error Contents: no element found: line 2, column 0
ERROR: Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.svtplay/default.py", line 450, in <module>
deviceconfiguration()
File "/storage/.xbmc/addons/plugin.video.svtplay/default.py", line 53, in deviceconfiguration
node = load_xml("http://svtplay.se/mobil/deviceconfiguration.xml").documentElement.getElementsByTagName("body")[0]
File "/storage/.xbmc/addons/plugin.video.svtplay/default.py", line 437, in load_xml
raise ex
ExpatError: no element found: line 2, column 0
ERROR: GetDirectory - Error getting plugin://plugin.video.svtplay
ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.svtplay) failed
Hi, same error started happening for me today as well.
Same problem here. Seems like a problem with the SVT Play web service "http://svtplay.se/mobil/deviceconfiguration.xml" (se below)

xbmc.log snippet:


22:02:42 T:2896401088 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.svtplay)
22:02:42 T:2896401088 DEBUG: ParentPath = [plugin://plugin.video.svtplay]
22:02:42 T:2896401088 DEBUG: StartScript - calling plugin SVT Play('plugin://plugin.video.svtplay/','0','')
22:02:42 T:2896401088 INFO: initializing python engine.
22:02:42 T:2896401088 DEBUG: new python thread created. id=4
22:02:42 T:2896401088 DEBUG: WaitOnScriptResult - waiting on the SVT Play plugin...
22:02:42 T:2961305600 NOTICE: Thread XBPyThread start, auto delete: false
22:02:42 T:2961305600 DEBUG: Python thread: start processing
22:02:42 T:2961305600 NOTICE: -->Python Interpreter Initialized<--
22:02:42 T:2961305600 DEBUG: Process - The source file to load is /Users/lars/Library/Application Support/XBMC/addons/plugin.video.svtplay/default.py
22:02:42 T:2961305600 DEBUG: Process - Entering source directory /Users/lars/Library/Application Support/XBMC/addons/plugin.video.svtplay
22:02:42 T:2961305600 DEBUG: Instantiating addon using automatically obtained id of "plugin.video.svtplay" dependent on version 2.0 of the xbmc.python api
22:02:42 T:2961305600 DEBUG: LocalizeStrings: no strings.po file exist at /Users/lars/Library/Application Support/XBMC/addons/plugin.video.svtplay/resources/language/Swedish, fallback to strings.xml
22:02:42 T:2961305600 DEBUG: LocalizeStrings: no strings.po file exist at /Users/lars/Library/Application Support/XBMC/addons/plugin.video.svtplay/resources/language/English, fallback to strings.xml

22:02:42 T:2961305600 NOTICE: An unhandled exception was triggered in the SVT Play adddon.
22:02:42 T:2961305600 INFO: -->Python script returned the following error<--
22:02:42 T:2961305600 ERROR: Error Type: <class 'xml.parsers.expat.ExpatError'>
22:02:42 T:2961305600 ERROR: Error Contents: no element found: line 2, column 0
22:02:42 T:2961305600 ERROR: Traceback (most recent call last):
File "/Users/lars/Library/Application Support/XBMC/addons/plugin.video.svtplay/default.py", line 450, in <module>
deviceconfiguration()
File "/Users/lars/Library/Application Support/XBMC/addons/plugin.video.svtplay/default.py", line 53, in deviceconfiguration
node = load_xml("http://svtplay.se/mobil/deviceconfiguration.xml").documentElement.getElementsByTagName("body")[0]
File "/Users/lars/Library/Application Support/XBMC/addons/plugin.video.svtplay/default.py", line 437, in load_xml
raise ex
ExpatError: no element found: line 2, column 0
22:02:42 T:2961305600 INFO: -->End of Python script error report<--
22:02:42 T:2961305600 INFO: Python script stopped

22:02:42 T:2961305600 DEBUG: Thread XBPyThread 2961305600 terminating
22:02:42 T:2896401088 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
22:02:42 T:2896401088 ERROR: GetDirectory - Error getting plugin://plugin.video.svtplay
22:02:42 T:2896401088 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.svtplay) failed
22:02:43 T:2896401088 DEBUG: waiting for python thread 4 to stop
22:02:43 T:2896401088 DEBUG: python thread 4 destructed


Output from call to url "http://svtplay.se/mobil/deviceconfiguration.xml"
Code:
XML-tolkningsfel: inget element hittat
Adress: http://svtplay.se/mobil/deviceconfiguration.xml
Radnummer 2, Kolumn 1:
All the api calls seems to work but the problem is that the deviceconfiguration.xml file is empty since the iPhone app today is just a wrapper for their responsive site, and that file contained all the items that were listed in the first "page" for the addon. Not sure how we're gonna figure out what those items and what their urls were though...
Is there any way I can hardcode the plugin to go directly to the kids section, http://svtplay.se/mobil/c/96251/barn ?

My kid is staring blankly at the script error, saying "hände nu??"

=)
Seems like SVT refactored the phone app using pure js thus skipped "deviceconfig.xml". Here is a trace from the new SVT Play app running on an ipad:

Code:
GET http://www.svtplay.se/ - DIRECT/195.54.111.99 text/html
GET http://www.svtplay.se/public/2012.54/images/svt-play-2x.png - DIRECT/195.54.111.99 image/png
GET http://www.svtplay.se/public/2012.54/images/dark_loader.gif - DIRECT/195.54.111.99 image/gif
GET http://www.svt.se/cachable_image/1347024544000/svts/article279294.svt/ALTERNATES/small/handboll_1000x600.jpg - DIRECT/195.54.111.80 image/png
GET http://www.svtplay.se/public/2012.54/images/play-icon.png - DIRECT/195.54.111.99 image/png
GET http://www.svt.se/cachable_image/1344347696000/svts/article224583.svt/ALTERNATES/small/fridlyst_affisch_480.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svtplay.se/public/2012.54/images/live_icon_inactive.gif - DIRECT/195.54.111.99 image/gif
GET http://www.svt.se/cachable_image/1348904419000/svts/article323192.svt/ALTERNATES/large/intresseklubben.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1346930959000/this-is-england-86/article277307.svt/ALTERNATES/small/this-is-poster.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348836262000/svts/article321632.svt/ALTERNATES/small/musikspecial_thundersoul.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1347370778000/svts/article287196.svt/ALTERNATES/small/intresseklubbenaffisch_480.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348945046000/svts/article323589.svt/ALTERNATES/small/ekblom_992.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348942982000/svts/article323568.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348820616000/moraeus-med-mera/article317975.svt/ALTERNATES/small/moralasseb.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348936802000/svts/article323490.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348936801000/svts/article323488.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1346061750000/svts/article256968.svt/ALTERNATES/small/skavlan_affisch.png - DIRECT/195.54.111.80 image/png
GET http://www.svt.se/cachable_image/1348573715000/sverige/article313423.svt/ALTERNATES/small/sverige_affisch_ht2012t.png - DIRECT/195.54.111.80 image/png
GET http://www.svt.se/cachable_image/1348934940000/svts/article323462.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348934880000/svts/article323460.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348935300000/svts/article323466.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348943100000/svts/article323570.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348942920000/svts/article323564.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svtplay.se/public/2012.54/images/svt-logo-dark.png - DIRECT/195.54.111.99 image/png
GET http://www.svt.se/cachable_image/1348937100000/svts/article323500.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348936741000/svts/article323485.svt/ALTERNATES/small/default_title - DIRECT/195.54.111.80 image/jpeg
GET http://cdn.pubnub.com/pubnub-3.1.min.js - DIRECT/205.251.219.244 text/javascript
GET http://www.svtplay.se/public/2012.54/javascripts/script-built.js - DIRECT/195.54.111.99 application/javascript
GET http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js - DIRECT/173.194.71.95 text/javascript
GET http://www.svtplay.se/public/2012.54/images/body.png - DIRECT/195.54.111.99 image/png
GET http://www.google-analytics.com/ga.js - DIRECT/173.194.32.4 text/javascript
GET http://www.svt.se/cachable_image/1348835670000/svtplay/article321572.svt/ALTERNATES/large/tisisengland_play.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348904372000/svts/article323191.svt/ALTERNATES/large/fridlyst_glenn_hysen.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348904450000/svts/article323193.svt/ALTERNATES/large/sverige_lena_olin.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348835641000/svts/article321573.svt/ALTERNATES/large/musikspecial.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348729756000/veckans-forestallning/article317705.svt/ALTERNATES/large/manniskans-basta-992.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348819870000/svts/article320541.svt/ALTERNATES/large/guidetti-skavlan-992.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://www.svt.se/cachable_image/1348488022000/doobidoo/article310891.svt/ALTERNATES/large/doobholm2_992.jpg - DIRECT/195.54.111.80 image/jpeg
GET http://ld.svt.se/svt/svt/s? - DIRECT/87.249.105.51 text/html
GET http://www.google-analytics.com/__utm.gif? - DIRECT/173.194.32.4 image/gif
GET http://ld.svt.se/svt/svt/s? - DIRECT/87.249.105.51 image/gif
GET http://pubsub.pubnub.com/time/0 - DIRECT/54.247.180.184 text/javascript
GET http://pubsub.pubnub.com/time/0 - DIRECT/54.247.180.184 text/javascript
GET http://www.svtplay.se/ajax/videospager? - DIRECT/195.54.111.99 text/html
Since SVT has stopped using their xml-api themself according to http://kontakt.beta.svtplay.se/org/svt-p...se-brutet/, the only solution I can think of at the moment is to go back to scraping their web. Can't promise anything but if i find the time I'll look in to it tonight.
This can also be confirmed by the mail I got yesterday from SVT (thanks to SVT for replying as quickly on a late weekend night ;-)

Quote:Från: <XBMC member>
Till: [email protected]
Datum: lör, 29 sep 2012 21:06
Ämne SVT Play (swedish) for XBMC

Hej! SVT Play för XBMC använder "http://svtplay.se/mobil/deviceconfiguration.xml" som verkar slutat fungera. Har du någon koll på vad som hänt? Tack på förhand!

From: [email protected]
Date: Saturday, September 29, 2012
Subject: SVT Play (swedish) for XBMC
To: <XBMC member>

Mobilsajten har gått lagts ner. Numera kan man gå in på vanliga svtplay.se med mobilen. Läs gärna mer på blogg.svt.se/testbild.

Mvh,
xy

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42