[RELEASE] SC2Casts.com plugin - Starcraft 2
#46
I think it's broken again due to youtube changes.
Reply
#47
A full work over would be appreciated thou, since last version, all that worked here was the resent casts.
Top casts, Events and so on gives me a script error, worked well back in eden i remember.

EDIT: I suppose it's the same for all, but if not i can make a log and upload when it should work.
Reply
#48
This is a problem with the youtube plugin not the sc2casts plugin. The patch in the following link works if you want it working immediately or you can just wait a few days for them to release an update for the plugin

http://forum.xbmc.org/showthread.php?tid...pid1335605
Reply
#49
This addon isn't working at all for me.

Is this still up to date or have you stopped supporting this addon?


thanks,
Neil
Thatkookooguy
Reply
#50
Added a fix for the new youtube link. It's a single line change, so if you want to just edit the bsdfish code, you can replace line 161:

Code:
ideoContent=re.compile('<param name="movie" value="http://www.youtube.com/v/(.+?)\?.+?"></param>').findall(matchCount[i][1])

with

Code:
videoContent=re.compile('src="https://www.youtube.com/embed/(.+?)"').findall(matchCount[i][1])

I've also made my own fork of this since the only updates I've seen to this in over a year are some code formatting changes by retiman (which are incorporated into mine as well)

https://github.com/ekinolik/xbmc-plugin-sc2casts
xbmc-plugin-sc2casts-0.4.7 Download
Reply
#51
Thanks for the update!
Reply
#52
Another update to work with sc2casts updated layout. There's also a fix here that I missed last time so that single game matches will play as well.

Line 170 and 171:
Code:
-        checkSource = (re.compile('<span class="source_name">(.*?)</span>')
-                       .findall(link))
+        checkSource = (re.compile('<div class="latest_series" ?>'
+                       '<img src=".+?title="(.+?)"').findall(link))

Line 225 - 228
Code:
-            videoContent=(re.compile('<param name="movie" '
-                                     'value="%s/v/(.+?)'
-                                     '\?.+?"></param>' % self.VIDEO_URL)
-                          .findall(link))
+            videoContent=re.compile('src="https://www.youtube.com/embed'
+                                    '/(.+?)"').findall(link)

https://github.com/ekinolik/xbmc-plugin-sc2casts
Download xbmc-plugin-sc2casts 0.4.8
Reply
#53
(2013-11-25, 04:26)phek Wrote: Another update to work with sc2casts updated layout. There's also a fix here that I missed last time so that single game matches will play as well.

Line 170 and 171:
Code:
-        checkSource = (re.compile('<span class="source_name">(.*?)</span>')
-                       .findall(link))
+        checkSource = (re.compile('<div class="latest_series" ?>'
+                       '<img src=".+?title="(.+?)"').findall(link))

Line 225 - 228
Code:
-            videoContent=(re.compile('<param name="movie" '
-                                     'value="%s/v/(.+?)'
-                                     '\?.+?"></param>' % self.VIDEO_URL)
-                          .findall(link))
+            videoContent=re.compile('src="https://www.youtube.com/embed'
+                                    '/(.+?)"').findall(link)

http://hackerbot.net/pc/78-starcraft-2-i...and-cheats

new youtube embeds?
Reply
#54
been too busy lately to fix whatevers going on with the audio with no video. my guess is that its actually a problem with the youtube plugin since the audio works but like I said, havent had a chance to take a look.
Reply
#55
Hi, everybody.

After recent update to Kodi 15.1 (from ancient 13.2 Big Grin) SC2casts addon won't work anymore. It shows Youtube error when starting video. kodi log suggests to change syntax of the youtube request. Can anyone please fix the addon? Pretty please!!!! Smile
Reply
#56
Hi, @relyter, can you please add the Kodi log part you think suggested that? It can help a lot in fixing the problem
Thatkookooguy
Reply
#57
(2015-08-23, 09:38)thatkookooguy Wrote: Hi, @relyter, can you please add the Kodi log part you think suggested that? It can help a lot in fixing the problem

Hi, thatkookooguy. Thank you very much for response.
Historically only the first menu item in the plugin was working i.e. Recent casts. And that what i was trying to fix. Below is the part of kodi log concerning starcraft plugin.

Code:
12:01:15 T:4360  NOTICE: -->Python Interpreter Initialized<--
12:01:15 T:4360  NOTICE: SC2Casts-0.4.8
12:01:16 T:3972  NOTICE: Thread BackgroundLoader start, auto delete: false
12:01:17 T:6668  NOTICE: Thread FileCache start, auto delete: false
12:01:17 T:7568  NOTICE: Previous line repeats 2 times.
12:01:17 T:7568  NOTICE: Thread LanguageInvoker start, auto delete: false
12:01:17 T:7568  NOTICE: -->Python Interpreter Initialized<--
12:01:17 T:7568  NOTICE: SC2Casts-0.4.8
12:01:18 T:7560  NOTICE: Thread BackgroundLoader start, auto delete: false
12:01:18 T:5056  NOTICE: Thread FileCache start, auto delete: false
12:01:19 T:6344  NOTICE: Previous line repeats 2 times.
12:01:19 T:6344  NOTICE: Thread LanguageInvoker start, auto delete: false
12:01:19 T:6344  NOTICE: -->Python Interpreter Initialized<--
12:01:19 T:6396  NOTICE: Thread FileCache start, auto delete: false
12:01:19 T:6344  NOTICE: [plugin.video.youtube] Running: YouTube (5.1.7) on Isengard (15.1) with Python 2.7.8
12:01:19 T:6344 WARNING: [plugin.video.youtube] DEPRECATED "plugin://plugin.video.youtube/?action=play_video&videoid=vTDHKLUsOWE?start=0&showinfo=0"
12:01:19 T:6344 WARNING: [plugin.video.youtube] USE INSTEAD "plugin://plugin.video.youtube/play/?video_id=vTDHKLUsOWE?start=0"
12:01:21 T:5208  NOTICE: Thread FileCache start, auto delete: false
12:01:21 T:6344   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: 'title'
                                            Traceback (most recent call last):
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\impl\xbmc\xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\abstract_provider.py", line 157, in _internal_root
                                                return self.on_root(context, re_match)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 485, in on_root
                                                return yt_old_actions.process_old_action(self, context, re_match)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\helper\yt_old_actions.py", line 56, in process_old_action
                                                return _process_play_video(provider, context, re_match)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\helper\yt_old_actions.py", line 19, in _process_play_video
                                                return provider.on_play(new_context, re_match)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\register_provider_path.py", line 12, in wrapper
                                                return func(*args, **kwargs)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 363, in on_play
                                                return yt_play.play_video(self, context, re_match)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\helper\yt_play.py", line 17, in play_video
                                                video_streams = client.get_video_streams(context, video_id)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\client\youtube.py", line 85, in get_video_streams
                                                video_stream['title'], video_stream['container'], video_stream['video']['encoding'],
                                            KeyError: 'title'
                                            -->End of Python script error report<--
12:01:21 T:3472  NOTICE: Thread FileCache start, auto delete: false
12:01:21 T:2716   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?action=play_video&videoid=vTDHKLUsOWE?start=0&showinfo=0]
12:01:21 T:1420  NOTICE: Thread BackgroundLoader start, auto delete: false
12:01:21 T:5316  NOTICE: Thread FileCache start, auto delete: false
12:01:23 T:7616  NOTICE: Previous line repeats 3 times.

Well, i tried to change this in sc2casts.py.
Code:
12:01:19 T:6344 WARNING: [plugin.video.youtube] DEPRECATED "plugin://plugin.video.youtube/?action=play_video&videoid=vTDHKLUsOWE?start=0&showinfo=0"
12:01:19 T:6344 WARNING: [plugin.video.youtube] USE INSTEAD "plugin://plugin.video.youtube/play/?video_id=vTDHKLUsOWE?start=0"

Found one enrty, line 133. But there's still an error. Log is below.
Code:
12:16:57 T:3920  NOTICE: SC2Casts-0.4.8
12:16:57 T:3908  NOTICE: Thread FileCache start, auto delete: false
12:16:57 T:2620  NOTICE: Thread BackgroundLoader start, auto delete: false
12:16:57 T:6640  NOTICE: Thread FileCache start, auto delete: false
12:17:02 T:1432  NOTICE: Previous line repeats 6 times.
12:17:02 T:1432  NOTICE: Thread LanguageInvoker start, auto delete: false
12:17:03 T:1432  NOTICE: -->Python Interpreter Initialized<--
12:17:03 T:1432  NOTICE: SC2Casts-0.4.8
12:17:04 T:3336  NOTICE: Thread BackgroundLoader start, auto delete: false
12:17:04 T:6344  NOTICE: Thread LanguageInvoker start, auto delete: false
12:17:04 T:6344  NOTICE: -->Python Interpreter Initialized<--
12:17:05 T:6344  NOTICE: [plugin.video.youtube] Running: YouTube (5.1.7) on Isengard (15.1) with Python 2.7.8
12:17:07 T:6344   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: 'title'
                                            Traceback (most recent call last):
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\default.py", line 7, in <module>
                                                runner.run(__provider__)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\runner.py", line 32, in run
                                                __RUNNER__.run(provider, context)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\impl\xbmc\xbmc_runner.py", line 23, in run
                                                results = provider.navigate(context)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\abstract_provider.py", line 123, in navigate
                                                result = method(context, re_match)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\kodion\register_provider_path.py", line 12, in wrapper
                                                return func(*args, **kwargs)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\provider.py", line 363, in on_play
                                                return yt_play.play_video(self, context, re_match)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\helper\yt_play.py", line 17, in play_video
                                                video_streams = client.get_video_streams(context, video_id)
                                              File "D:\XBMC13\portable_data\addons\plugin.video.youtube\resources\lib\youtube\client\youtube.py", line 85, in get_video_streams
                                                video_stream['title'], video_stream['container'], video_stream['video']['encoding'],
                                            KeyError: 'title'
                                            -->End of Python script error report<--
12:17:07 T:7332   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/play/?video_id=vTDHKLUsOWE?start=0&showinfo=0]
12:17:07 T:7428  NOTICE: Thread BackgroundLoader start, auto delete: false
12:17:08 T:1708  NOTICE: Thread FileCache start, auto delete: false
12:17:09 T:2476  NOTICE: Previous line repeats 1 times.
Reply
#58
It's a bug in the youtube addon, that's being adressed by bromix: http://forum.kodi.tv/showthread.php?tid=200735&page=151
Reply

Logout Mark Read Team Forum Stats Members Help
[RELEASE] SC2Casts.com plugin - Starcraft 20