kodi-svtplay / xbmc-svtplay Goto Github PK
View Code? Open in Web Editor NEWUnofficial addon for watching SVT Play on Kodi
License: GNU General Public License v3.0
Unofficial addon for watching SVT Play on Kodi
License: GNU General Public License v3.0
Choosing Kategorier/Öppet arkiv/Lasermannen renders an exception:
File "/home/mgu/projekt/xbmc-svtplay/default.py", line 697, in
viewProgram(url,page,index)
File "/home/mgu/projekt/xbmc-svtplay/default.py", line 187, in viewProgram
createDirectory(url,page,index,MODE_PROGRAM,MODE_VIDEO)
File "/home/mgu/projekt/xbmc-svtplay/default.py", line 299, in createDirectory
populateDirNoPaging(url,dirtype,tabname)
File "/home/mgu/projekt/xbmc-svtplay/default.py", line 393, in populateDirNoPaging
articles = getArticles(url,None,tabname)
File "/home/mgu/projekt/xbmc-svtplay/default.py", line 447, in getArticles
attrs = { "data-tabname": tabname })[0]
IndexError: list index out of range
When I start svtplay in xbmc I get text 30600 in a OK dialog. The app worked for a long time then it just stopped one day.
Log-entry:
18:43:47 T:140245077047040 NOTICE: -->Python Interpreter Initialized<--
18:43:49 T:140245077047040 ERROR: Error Type: <class 'urllib2.HTTPError'>
18:43:49 T:140245077047040 ERROR: Error Contents: HTTP Error 404: Not Found
18:43:49 T:140245077047040 ERROR: Traceback (most recent call last):
File "/home/derp/.xbmc/addons/plugin.video.svtplay/default.py", line 450, in
deviceconfiguration()
File "/home/derp/.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 "/home/derp/.xbmc/addons/plugin.video.svtplay/default.py", line 433, in load_xml
raise ex
HTTPError: HTTP Error 404: Not Found
18:43:49 T:140246685988800 ERROR: GetDirectory - Error getting plugin://plugin.video.svtplay
18:43:49 T:140246685988800 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.svtplay) failed
När man försöker kolla på livesändningar så stänger den ner efter ett par sekunder.
Felet verkar vara att den inte hittar swf playern. Jag ändrade raden SWF_PLAYER_URL i default..py till
SWF_PLAYER_URL = "http://www.svtplay.se/public/swf/video/svtplayer-2012.28.swf"
Sen fungerar Livesändningar ok.
Reported, not confirmed yet though.
Most if not all, menu entries results in script error.
Traceback (most recent call last):
File "/storage/.xbmc/addons/plugin.video.svtplay/default.py", line 364, in
viewEpisodes(ARG_URL)
File "/storage/.xbmc/addons/plugin.video.svtplay/default.py", line 172, in viewEpisodes
episodes = svt.getEpisodes(url)
File "/storage/.xbmc/addons/plugin.video.svtplay/resources/lib/svt.py", line 280, in getEpisodes
return getArticles(SECTION_EPISODES, url)
File "/storage/.xbmc/addons/plugin.video.svtplay/resources/lib/svt.py", line 329, in getArticles
ret = "href")[0]
IndexError: list index out of range
Alphabetic listing is empty when setting "A-Ö" true.
Can't fast forward or drag and drop timeindicatorr when playing Homeland on svtplay. Homeland video playing in SD resolution. I cant get it playing in 720, all other programs playing in 720 and in those I can fast forward video and drag and drop timeindicator.
XBMC Version: Frodo
I tried to checkout the frodo branch to see if I could get it working. I have checked out the folder in the addons folder. The addon is detected by XBMC but when I try to launch it the following information is seen in the logfile.
20:28:08 T:824 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named CommonFunctions
Traceback (most recent call last):
File "C:\test\XBMC\portable_data\addons\xbmc-svtplay\default.py", line 10, in
import CommonFunctions
ImportError: No module named CommonFunctions
-->End of Python script error report<--
20:28:08 T:824 INFO: Python script stopped
Is CommonFunctions your own dependency or is it a library / a common library for XBMC plugins?
They have changed the paging a little bit.
I am working on fixing the plugin.
Log from a Windows machine. Seems to be platform specific. "w+" is not handled correctly?
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: (2, 'No such file or directory', 'C:\\Users\\media\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\plugin.video.svtplay\\favorites.json')
Traceback (most recent call last):
File "C:\Users\media\AppData\Roaming\XBMC\addons\plugin.video.svtplay\resources\lib\FavoritesManager.py", line 99, in <module>
add(sys.argv[2], sys.argv[3])
File "C:\Users\media\AppData\Roaming\XBMC\addons\plugin.video.svtplay\resources\lib\FavoritesManager.py", line 25, in add
__save_to_disk()
File "C:\Users\media\AppData\Roaming\XBMC\addons\plugin.video.svtplay\resources\lib\FavoritesManager.py", line 88, in __save_to_disk
file_handle = open(FILE_PATH, "w+")
IOError: (2, 'No such file or directory', 'C:\\Users\\media\\AppData\\Roaming\\XBMC\\userdata\\addon_data\\plugin.video.svtplay\\favorites.json')
-->End of Python script error report<--
The plugin works very fine, except the picture is stuttering. There is about 0.5-1 seconds of smooth play, then the stream restarts approx. 0.25 seconds earlier. The actual timing seems to be isochronic as the sound stream is perfect.
I'm running version 3.2.0 of the xbmc-svtplay plugin.
Add the possibility to favorite a program for easy access.
Navigating to "Categories/Barn/Byggare Bob" and starting one of the episodes (top 4 tested) fails.
See log output below.
However "Categories/Barn/Bondgården" for example works just fine.
Comparing the URL:s thats being called, there is a slight difference as "Byggare Bob" contains "secure" as part of the URL (might be irrelevant)
Trying to open these URL:s in Windows/VLCPlayer produces the same behaviour:
"Bondgården" works, and "Byggare Bob fails.
[OUTPUT xbmc.log]
20:38:28 T:6036 NOTICE: -->Python Interpreter Initialized<--
20:38:29 T:6036 NOTICE: CommonFunctions-1.2.0
20:38:33 T:4340 NOTICE: DVDPlayer: Opening: http://svtplay10r-f.akamaihd.net/i/se/secure/20121007/1151547-014A/BOB_THE_BUILDER-014A-dad8aafd7288375c_,900,320,420,620,1660,2760,.mp4.csmil/master.m3u8
20:38:33 T:4340 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:38:33 T:5024 NOTICE: Creating InputStream
20:38:33 T:6036 ERROR: XFILE::CPluginDirectory::EndOfDirectory - called with an invalid handle.
20:38:34 T:5024 NOTICE: Creating Demuxer
20:38:40 T:5024 ERROR: CDVDDemuxFFmpeg::Open - Error, could not open file http://svtplay10r-f.akamaihd.net/i/se/secure/20121007/1151547-014A/BOB_THE_BUILDER-014A-dad8aafd7288375c_,900,320,420,620,1660,2760,.mp4.csmil/master.m3u8
20:38:40 T:5024 ERROR: CDVDPlayer::OpenDemuxStream - Error creating demuxer
20:38:40 T:5024 NOTICE: CDVDPlayer::OnExit()
20:38:40 T:5024 NOTICE: CDVDPlayer::OnExit() deleting input stream
20:38:40 T:4340 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.svtplay/?url=%2Fvideo%2F150839%3Ftype%3Dembed&mode=video]
20:38:40 T:4340 NOTICE: CDVDPlayer::CloseFile()
20:38:40 T:4340 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:38:40 T:4340 NOTICE: DVDPlayer: waiting for threads to exit
20:38:40 T:4340 NOTICE: DVDPlayer: finished waiting
Mostly stuff translated to swedish.
Excellent addon.
What:
I'm missing is a setting to automatically queue up all episodes in a series after the episode i have selected.
How:
A series contains 5 episodes.
When i start to play episode 2 episode 3, 4 and 5 are automatically queued which enables continous play.
Why:
When my daughter wants to see cartoons or similar where all the episodes are 5-10 minutes each this feature would be highly appreciated. :-)
Thanks,
Mattias
Some programs use swf verify and since this is not enabled for svtplay plugin, the player ends after a few seconds.
In the log you can see this:
18:56:52 T:2863111024 M:2030936064 INFO: HandleCtrl, SWFVerification ping received:
18:56:52 T:2863111024 M:2030936064 ERROR: HandleCtrl: Ignoring SWFVerification request, use --swfVfy!
Here is a user with problem writing in the forum:
http://forum.xbmc.org/showpost.php?p=978729&postcount=115
The solution is to tell xbmc-player to use swf verification. This can be done in the URL for the program like this:
url = params["url"] + " swfUrl=http://svtplay.se/flash/svtplayer-2011.18.swf swfVfy=1"
I have tried this and it seems to work well.
Two problems:
I have tried favorites but it generates an error
This is from xbmc.log:
22:25:00 T:2996102976 NOTICE: Starting XBMC (13.2 Git:0f3db05). Platform: x86 Linux 32-bit
21:18:02 T:2996102976 DEBUG: LIRC: Update - NEW at 151271654:000000037ff07be8 00 KEY_RECORD mceusb (KEY_RECORD)
21:18:02 T:2996102976 DEBUG: OnKey: 232 (0xe8) pressed, action is ContextMenu
21:18:02 T:2996102976 DEBUG: ------ Window Init (DialogContextMenu.xml) ------
21:18:03 T:2996102976 DEBUG: LIRC: Update - NEW at 151273147:000000037ff07bdd 00 KEY_OK mceusb (KEY_OK)
21:18:03 T:2996102976 DEBUG: OnKey: 11 (0x0b) pressed, action is Select
21:18:04 T:2996102976 DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------
21:18:04 T:1348803392 NOTICE: Thread LanguageInvoker start, auto delete: false
21:18:04 T:1348803392 INFO: initializing python engine.
21:18:04 T:1348803392 DEBUG: CPythonInvoker(94, special://home/addons/plugin.video.svtplay/resources/lib/FavoritesManager.py): start processing
21:18:04 T:1348803392 NOTICE: -->Python Interpreter Initialized<--
21:18:04 T:1348803392 DEBUG: CPythonInvoker(94, special://home/addons/plugin.video.svtplay/resources/lib/FavoritesManager.py): the source file to load is "special://home/addons/plugin.video.svtplay/resources/lib/FavoritesManager.py" ("/home/thnov/.xbmc/addons/plugin.video.svtplay/resources/lib/FavoritesManager.py")
21:18:04 T:1348803392 DEBUG: CPythonInvoker(94, special://home/addons/plugin.video.svtplay/resources/lib/FavoritesManager.py): setting the Python path to /home/thnov/.xbmc/addons/plugin.video.svtplay/resources/lib:/home/thnov/.xbmc/addons/script.module.pyamf/lib:/home/thnov/.xbmc/addons/script.module.xbmcswift/lib:/home/thnov/.xbmc/addons/script.module.simplejson/lib:/home/thnov/.xbmc/addons/script.module.beautifulsoup4/lib:/home/thnov/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:/home/thnov/.xbmc/addons/script.common.plugin.cache/lib:/home/thnov/.xbmc/addons/script.module.requests/lib:/home/thnov/.xbmc/addons/script.module.mechanize/lib:/usr/share/xbmc/addons/xbmc.debug/:/home/thnov/.xbmc/addons/script.module.parsedom/lib:/home/thnov/.xbmc/addons/script.module.xbmcswift2/lib:/home/thnov/.xbmc/addons/script.module.elementtree/lib:/home/thnov/.xbmc/addons/script.module.requests2/lib:/home/thnov/.xbmc/addons/script.module.simple.downloader/lib:/home/thnov/.xbmc/addons/script.module.buggalo/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-i386-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gst-0.10:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:/usr/lib/python2.7/dist-packages/ubuntu-sso-client
21:18:04 T:1348803392 DEBUG: CPythonInvoker(94, special://home/addons/plugin.video.svtplay/resources/lib/FavoritesManager.py): entering source directory /home/thnov/.xbmc/addons/plugin.video.svtplay/resources/lib
21:18:04 T:1348803392 NOTICE: CommonFunctions-2.5.1
21:18:04 T:1348803392 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.NameError'>
Error Contents: name 'helper' is not defined
Traceback (most recent call last):
File "/home/thnov/.xbmc/addons/plugin.video.svtplay/resources/lib/FavoritesManager.py", line 86, in
helper.infoMsg("FM called as script!")
NameError: name 'helper' is not defined
-->End of Python script error report<--
21:18:04 T:1348803392 INFO: Python script stopped
21:18:04 T:1348803392 DEBUG: Thread LanguageInvoker 1348803392 terminating
21:18:04 T:2996102976 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
21:18:09 T:2996102976 DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
^C
Since you have so few issues now :)
It would be really nice to have images on the categories. See http://www.svtplay.se/program
Keep up the good work!
Today SVT launched the new version of "Öppet arkiv", with full runs of classic shows. It does not work in XBMC-SVTPlay (3.3.0) (In fact, I get errors trying to browse "Kategorier"/Categories).
I suppose they changed their feeds.
The new version of "Öppet arkiv" also has gotten a new site and domain name, which may have something to do with it. The new HTTP address is http://www.oppetarkiv.se/ I have not looked into how the Atom or RSS looks, but i suppose the new site is not too differently built from the regular play.svt.se.
Question is if "Öppet arkiv" should be a new plug in, based on xbmc-svtplay, or if the latter should include the former. If no technical problems, I would vote for including the new "Öppet arkiv" in xbmc-svtplay.
I can bind a key such as F11 to go directly to a category such as news (nyheter) by using the runaddon call:
mode=ti
url=kategorier/nyheter
But I can not specify sub categories such as rapport for example:
url=kategorier/nyheter/rapport
I get a general script error without any useful error message from XBMC that the svtplay script died, is this a limit or did I run into a bug?
I am looking for this functionality!
The plugin (Frodo version) has its own setting for subtitles, why is that? There is already a setting in XBMC to use subtitles or not.
The XBMC setting can be switched while playing which is very convenient.
As it works now, if I want to turn on or off subtitles during playing I have to stop playing, go to context menu, change the setting and restart the video.
Videoplayback stutters when played on the Raspberry Pi. Have tried both
latest Raspbmc and OpenElec. Same result.
Works flawless on other systems I tried (Windows or Linux), so the problem
should be something related to the RPi.
From what I can tell, it does not seem like there is any lack of CPU-power, since
it is about 50% when playing a SVT-stream.
I will gladly supply any other information that will help solve this problem.
I downloaded your updated addon (3.0.0) on my ATV2. It was running but the videoplayback was jumpy on all (3) tested programs. The audio was ok.
The old version played fine on the former SVT-Play site on ATV2.
Any clue why video playback is now degraded?
Does not list any video
From the XBMC addons team:
For next time, could you please change the strings id 40001 and 40002. Id should be between 30000 and 30999 for plugins.
Running latest version of Raspbmc and every time I pull up programinfo, and then switch back to the list of programs XBMC crashes and restart.
Let me know if you need any debug info or something.
Thanks for a great addon btw!
Trying to use Categories and it generates an error.
This is from xbmc.log
22:25:00 T:2996102976 NOTICE: Starting XBMC (13.2 Git:0f3db05). Platform: x86 Linux 32-bit
21:11:35 T:2996102976 DEBUG: LIRC: Update - NEW at 150884724:000000037ff07bdd 00 KEY_OK mceusb (KEY_OK)
21:11:35 T:2996102976 DEBUG: OnKey: 11 (0x0b) pressed, action is Select
21:11:35 T:2996102976 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.svtplay/?mode=categories)
21:11:35 T:2996102976 DEBUG: ParentPath = [plugin://plugin.video.svtplay/?mode=search]
21:11:35 T:2094484288 NOTICE: Thread JobWorker start, auto delete: true
21:11:35 T:2094484288 DEBUG: StartScript - calling plugin SVT Play('plugin://plugin.video.svtplay/','79','?mode=categories')
21:11:35 T:2094484288 DEBUG: WaitOnScriptResult - waiting on the SVT Play (id=85) plugin...
21:11:35 T:2136447808 NOTICE: Thread LanguageInvoker start, auto delete: false
21:11:35 T:2136447808 INFO: initializing python engine.
21:11:35 T:2136447808 DEBUG: CPythonInvoker(85, /home/thnov/.xbmc/addons/plugin.video.svtplay/default.py): start processing
21:11:35 T:2136447808 NOTICE: -->Python Interpreter Initialized<--
21:11:35 T:2136447808 DEBUG: CPythonInvoker(85, /home/thnov/.xbmc/addons/plugin.video.svtplay/default.py): the source file to load is "/home/thnov/.xbmc/addons/plugin.video.svtplay/default.py"
21:11:35 T:2136447808 DEBUG: CPythonInvoker(85, /home/thnov/.xbmc/addons/plugin.video.svtplay/default.py): setting the Python path to /home/thnov/.xbmc/addons/plugin.video.svtplay:/home/thnov/.xbmc/addons/script.module.pyamf/lib:/home/thnov/.xbmc/addons/script.module.xbmcswift/lib:/home/thnov/.xbmc/addons/script.module.simplejson/lib:/home/thnov/.xbmc/addons/script.module.beautifulsoup4/lib:/home/thnov/.xbmc/addons/script.module.beautifulsoup/lib:/usr/share/xbmc/addons/script.module.pil/lib:/home/thnov/.xbmc/addons/script.common.plugin.cache/lib:/home/thnov/.xbmc/addons/script.module.requests/lib:/home/thnov/.xbmc/addons/script.module.mechanize/lib:/usr/share/xbmc/addons/xbmc.debug/:/home/thnov/.xbmc/addons/script.module.parsedom/lib:/home/thnov/.xbmc/addons/script.module.xbmcswift2/lib:/home/thnov/.xbmc/addons/script.module.elementtree/lib:/home/thnov/.xbmc/addons/script.module.requests2/lib:/home/thnov/.xbmc/addons/script.module.simple.downloader/lib:/home/thnov/.xbmc/addons/script.module.buggalo/lib:/usr/lib/python2.7:/usr/lib/python2.7/plat-i386-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/local/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages:/usr/lib/python2.7/dist-packages/PILcompat:/usr/lib/python2.7/dist-packages/gst-0.10:/usr/lib/python2.7/dist-packages/gtk-2.0:/usr/lib/pymodules/python2.7:/usr/lib/python2.7/dist-packages/ubuntu-sso-client
21:11:35 T:2136447808 DEBUG: CPythonInvoker(85, /home/thnov/.xbmc/addons/plugin.video.svtplay/default.py): entering source directory /home/thnov/.xbmc/addons/plugin.video.svtplay
21:11:35 T:2136447808 DEBUG: CPythonInvoker(85, /home/thnov/.xbmc/addons/plugin.video.svtplay/default.py): instantiating addon using automatically obtained id of "plugin.video.svtplay" dependent on version 2.14.0 of the xbmc.python api
21:11:35 T:2136447808 NOTICE: CommonFunctions-2.5.1
21:11:35 T:2996102976 DEBUG: ------ Window Init (DialogBusy.xml) ------
21:11:36 T:2136447808 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "/home/thnov/.xbmc/addons/plugin.video.svtplay/default.py", line 360, in
viewCategories()
File "/home/thnov/.xbmc/addons/plugin.video.svtplay/default.py", line 101, in viewCategories
categories = svt.getCategories()
File "/home/thnov/.xbmc/addons/plugin.video.svtplay/resources/lib/svt.py", line 63, in getCategories
title = common.parseDOM(article, "h2")[0]
IndexError: list index out of range
-->End of Python script error report<--
21:11:36 T:2996102976 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
21:11:36 T:2136447808 INFO: Python script stopped
21:11:36 T:2136447808 DEBUG: Thread LanguageInvoker 2136447808 terminating
21:11:36 T:2094484288 DEBUG: WaitOnScriptResult - plugin exited prematurely - terminating
21:11:36 T:2996102976 ERROR: GetDirectory - Error getting plugin://plugin.video.svtplay/?mode=categories
21:11:36 T:2996102976 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.svtplay/?mode=categories) failed
21:11:36 T:2996102976 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.svtplay/?mode=search)
21:11:36 T:2996102976 DEBUG: ParentPath = [plugin://plugin.video.svtplay/]
21:11:36 T:2996102976 DEBUG: Loading items: 11, directory: plugin://plugin.video.svtplay/?mode=search sort method: 0, ascending: false
21:11:36 T:2996102976 DEBUG: RunQuery took 2 ms for 224 items query: SELECT files.strFilename, files.playCount, bookmark.timeInSeconds, bookmark.totalTimeInSeconds FROM files LEFT JOIN bookmark ON files.idFile = bookmark.idFile AND bookmark.type = 1 WHERE files.idPath=2047
21:11:36 T:2136447808 NOTICE: Thread BackgroundLoader start, auto delete: false
21:11:36 T:2136447808 DEBUG: Thread BackgroundLoader 2136447808 terminating
21:11:36 T:2996102976 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
^C
Is it possible for the plugin to force xbmc to use cache/buffer (like cachemembuffersize) when playing video? when i play video from a plugin no cache is used (cache 0B 100% is displayed in the cideo information) and the video is choppy/stutters.
Log from playback: https://gist.github.com/4649698
If i download the video stream to a local webserver (with ffmpeg) and stream from that then the cache is used and it plays perfectly fine.
When I playback one of the segments in the m3u8 file it is cached/buffered and it plays perfectly (cache is used). Log from playing single segment segment:
20:03:53 T:2757493824 NOTICE: Thread CGUIDialogCache start, auto delete: true
20:03:53 T:3037683712 NOTICE: COMXPlayer: Opening: http://svtplay9q-f.akamaihd.net/i/world/open/20130125/1278818-005A/STJARNORNA_PA_S-005A-363fe074b865ae35_,900,348,564,1680,2800,.mp4.csmil/segment20_4_av.ts?null=&e=b2a7ace1bf661c32&id=
I use raspberry pi (raspbmc) with rc3 build of xbmc frodo.
Selecting top menu item "Kategorier" results in the following error and stack trace
File "/home/mgu/projekt/xbmc-svtplay/default.py", line 618, in
viewCategories()
File "/home/mgu/projekt/xbmc-svtplay/default.py", line 110, in viewCategories
categories = svt.getCategories()
File "/home/mgu/projekt/xbmc-svtplay/resources/lib/svt.py", line 126, in getCategories
title = common.parseDOM(li, "h2")[0]
IndexError: list index out of range
I don't know if SVT has made permanent changes to these news programs but when I tried to reproduce a bug using "Gävledala" I noticed that the website is different for that show.
Specifically:
Again, this could be temporary flukes in their CMS, guess we have to do some "random backoff" and see what happens.
As the title says.
Running:
Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39)
[GCC 4.4.5] on linux2 (Ubuntu Linux 2.6.35-27-generic)
Version 10.00~svn35648-maverick1 of xbmc
Version 1.0.3 of the SVT Plugin
21:15:26 T:2847906672 M:1836822528 ERROR: Error Type: exceptions.ValueError
21:15:26 T:2847906672 M:1836822528 ERROR: Error Contents: invalid literal for int():
21:15:26 T:2847906672 M:1836822528 ERROR: Traceback (most recent call last):
File "/home/nugator/.xbmc/addons/plugin.video.svtplay/default.py", line 15, in ?
SETTINGS_HIGHEST_BITRATE = [320, 850, 1400, 2400][int(settings.getSetting("highest_bitrate"))]
ValueError: invalid literal for int():
21:15:26 T:3077613440 M:1836822528 ERROR: GetDirectory - Error getting plugin://plugin.video.svtplay/
21:15:26 T:3077613440 M:1836822528 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.svtplay/) failed
Tried setting bitrate to low and still get the HD stream
Hi
I was glad to see the updated version of this add on.
But you might already know this, but i'll tell you anyway. Just to be sure. :)
In all of the news programs listing the news are one day old and the precent days news does not work.
Hope you will fix it
Thanks for making this
Add-on doesn't work anymore in Gotham 13.1.
Thanks for the great work on this add-on, let me know if I can do anything to help.
Searching for "quick". Found "Dokument inifrån - Thomas Quick del 1". Cannot play this.
Got this in xbmc.log:
20:23:27 T:102957056 ERROR: Playlist Player: skipping unplayable item: 0, path
[plugin://plugin.video.svtplay/?url=%2Fvideo%2F321577%2Fthomas-quick-del-1&mode
=video]
I am running org.xbmc.xbmc-ATV2-ffmpeg-1.2-20130406-rev-g88a6773 and plugin 3.3.0.
Seems like the structure of the data has changed and therefor listings and all the paths is invalid. I tried to just adjust the paths but it seems they have moved away from xml.svtplay.se.
I'm having trouble running svtplay, giving the following in the log:
12:28:26 T:2892102512 NOTICE: -->Python Interpreter Initialized<--
12:28:26 T:2892102512 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named CommonFunctions
Traceback (most recent call last):
File "/home/jens/.xbmc/addons/plugin.video.svtplay/default.py", line 12, in <module>
import CommonFunctions
ImportError: No module named CommonFunctions
-->End of Python script error report<--
12:28:26 T:2858531696 ERROR: GetDirectory - Error getting plugin://plugin.video.svtplay
I found issue 32, and tried youtube, which gave the same type of error.
CommonFunctions.py is located in addons/script.module.parsedom/lib/ and when I removed addons/script.module.parsedom/ and reinstalled youtube and svtplay it got recreated.
I then added:
import sys
open("/tmp/xmbc.log", "w").write(str(sys.path))
to the svtplay plugin which told me that the path was as follows (slightly reformatted):
['/home/jens/.xbmc/addons/plugin.video.svtplay',
'/home/jens/.xbmc/addons/script.module.xbmcswift/lib',
'/usr/share/xbmc/addons/script.module.simplejson/lib',
'/home/jens/.xbmc/addons/weather.wunderground/resources/lib/wunderground',
'/home/jens/.xbmc/addons/script.module.beautifulsoup/lib',
'/usr/share/xbmc/addons/script.module.pil/lib',
'/home/jens/.xbmc/addons/script.common.plugin.cache/lib',
'/home/jens/.xbmc/addons/script.module.simple.downloader/lib',
'/home/jens/.xbmc/addons/script.module.buggalo/lib',
'/home/jens/.xbmc/addons/script.module.xbmcswift2/lib',
'/home/jens/.xbmc/addons/script.module.elementtree/lib',
'/home/jens/.xbmc/addons/script.web.viewer/lib',
'/usr/share/xbmc/addons/script.module.pysqlite/lib',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7',
'/usr/lib/python2.7/dist-packages/ubuntu-sso-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-client',
'/usr/lib/python2.7/dist-packages/ubuntuone-control-panel',
'/usr/lib/python2.7/dist-packages/ubuntuone-couch',
'/usr/lib/python2.7/dist-packages/ubuntuone-installer',
'/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol',
'']
i.e the parsedom path is not included. I then copied CommonFunctions to the
addons/plugin.video.svtplay which made it work. Not fully sure why this happens but it started happening while using frodo rc1 and persisted into the released frodo, both versions from team-xbmc ppa on launchpad.
Seems like the plugin is dependent upon info in this xml:
http://svtplay.se/mobil/deviceconfiguration.xml
Unfortunately that XML is empty so the plugin crashes.
If you go into categories the last entry contains HTML code.
XBMC's ffmpeg is compiled without ssl support so videos are not playable.
Sometimes SVT servers seems overloaded and viewing in lower quality prevents the show to buffer all the time. Also maybe someone has a bad connection and needs lower quality to be able to view without buffer issues.
I personally have changed the script to use the 2:nd highest quality and generally it works better for me. But changing the script so that the user can select quality from a popup is better.
Today the best resolution is used by default ..
ps. I love the scipt :) I have worked on a program for windows written in .net that scapes the shows from all playt channels in sweden and since moving to openelec/xbmc I miss SVT play .. thanks for suppliing it to us ..
Let med know if there's anything I can do to help :)
default.py uses "real" tabs as indentation. I would propose to change this into 2 spaces instead.
URLs looking like the one below will not be recognized by the system. Should update parser.
bug log:
File "/home/...../.xbmc/addons/xbmc-svtplay-frodo/default.py", line 361, in startVideo
jsonString = common.parseDOM(html, "param", attrs = { "name": "flashvars" }, ret = "value")[0]
IndexError: list index out of range
-->End of Python script error report<--
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.