Play youtube video from plugin
#16
gankens Wrote:Its F88FE41863FCB8AC

Link: http://www.youtube.com/p/F88FE41863FCB8AC

Seems to be saying its not playable
19:33:35 T:2691908928 M:1382289408 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?action=play_video&videoid=F88FE41863FCB8AC]

i went to this link:
http://www.youtube.com/watch?v=goUVg5b_X...r_embedded

in firefox with the youtube xbmc extension from here:
http://code.google.com/p/youtubexbmc/downloads/list

I pressed the "xbmc play playlist" button, and everything just worked ™
Reply
#17
sphere Wrote:Hi,

replace
Code:
url = 'plugin://plugin.video.youtube/?action=play_video&videoid='+ + match[0].replace('?','')
with
Code:
url = 'plugin://plugin.video.youtube/?action=play_video&videoid=' + match[0].replace('?','')
You have a double plus-sign.

didn't test the code but this one is definitely wrong Smile

regards,
sphere

That is for playback of videos, not of playlists.

Code:
url = 'plugin://plugin.video.youtube/?path=/root/playlists&action=play_all&playlist=' + match[0].replace('?','')

That should also be why you hit this error:

gankens Wrote:Almost there looks like the youtube plugin can't play playlists. getting this error


19:33:35 T:2953850880 M:1382260736 ERROR: Traceback (most recent call last):
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/default.py", line 48, in ?
navigator.executeAction(params)
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubeNavigation.py", line 203, in executeAction
player.playVideo(params)
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubePlayer.py", line 52, in playVideo
(video, status) = self.getVideoObject(params);
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubePlayer.py", line 251, in getVideoObject
(links, video) = self._getVideoLinks(video, params)
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubePlayer.py", line 322, in _getVideoLinks
video["apierror"] = re.compile('reason=(.*)%3Cbr').findall(content)[0]
NameError: global name 'content' is not defined
19:33:35 T:2691908928 M:1382289408 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?action=play_video&videoid=F88FE41863FCB8AC]
Reply
#18
Great I'll try the playlist command. Thanks for that.
Reply
#19
(2011-11-11, 14:15)TobiasTheCommie Wrote:
sphere Wrote:Hi,

replace
Code:
url = 'plugin://plugin.video.youtube/?action=play_video&videoid='+ + match[0].replace('?','')
with
Code:
url = 'plugin://plugin.video.youtube/?action=play_video&videoid=' + match[0].replace('?','')
You have a double plus-sign.

didn't test the code but this one is definitely wrong Smile

regards,
sphere 

That is for playback of videos, not of playlists.
Code:
url = 'plugin://plugin.video.youtube/?path=/root/playlists&action=play_all&playlist=' + match[0].replace('?','')

That should also be why you hit this error:
gankens Wrote:Almost there looks like the youtube plugin can't play playlists. getting this error


19:33:35 T:2953850880 M:1382260736 ERROR: Traceback (most recent call last):
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/default.py", line 48, in ?
navigator.executeAction(params)
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubeNavigation.py", line 203, in executeAction
player.playVideo(params)
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubePlayer.py", line 52, in playVideo
(video, status) = self.getVideoObject(params);
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubePlayer.py", line 251, in getVideoObject
(links, video) = self._getVideoLinks(video, params)
File "/Users/ganken/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubePlayer.py", line 322, in _getVideoLinks
video["apierror"] = re.compile('reason=(.*)%3Cbr').findall(content)[0]
NameError: global name 'content' is not defined
19:33:35 T:2691908928 M:1382289408 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?action=play_video&videoid=F88FE41863FCB8AC]
Reply
#20
Hi there, i know this is an old post but hopefully everyones still alive!, Im trying to get a playlistto play using the above code url = 'plugin://plugin.video.youtube/?path=/root/playlists&action=play_all&playlist=' + match[0].replace('?','') and heres the youtube url https://www.youtube.com/watch?v=MgsBYRVt...y7&index=2. Ive tried every combination and im DAMNED if i can get it to run any advice would greatly appreciated, cheers
Reply
#21
@kirkydman 
Code:
plugin://plugin.video.youtube/play/?play=1&playlist_id=PL2Ok8Z8MZwhMoqWb6kqSC3m4fnry3zHy7
Should work, see Integration with STRM files @ Add-on:YouTube (wiki)
Reply
#22
(2020-03-22, 09:22)kirkydman Wrote: Hi there, i know this is an old post but hopefully everyones still alive!, Im trying to get a playlistto play using the above code url = 'plugin://plugin.video.youtube/?path=/root/playlists&action=play_all&playlist=' + match[0].replace('?','') and heres the youtube url https://www.youtube.com/watch?v=MgsBYRVt...y7&index=2. Ive tried every combination and im DAMNED if i can get it to run any advice would greatly appreciated, cheers

Did you installed and configured the YouTube add-ons to workaround this issue: https://github.com/jdf76/plugin.video.yo...issues/736
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
Play youtube video from plugin00
This forum uses Lukasz Tkacz MyBB addons.