Kodi Community Forum

Full Version: [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2014-03-20, 15:11)sogopot Wrote: [ -> ]I integrated the fixes to get the YouTube and Vimeo addon working in Gotham Beta 2. I uploaded the addons with the fixes. Just uninstall your current addons and manually re-install with the fixed addons. For the YouTube addon, it's advised to delete the cookie "yt-cookiejar.txt" located in the following folder: xbmc/userdata/addon_data/plugin.video.youtube. For windows user's, you'll find the xbmc folder in C:\Users\UserAccount\AppData\Roaming.

DOWNLOAD LINK: https://www.mediafire.com/folder/ie3ammajgrc2o/xbmc_addons

LIST OF FIXES APPLIED

YOUTUBE FIXES
  • To solve the login problems, I added the fix from this post: Reply #52. If you continue to have login problems, you may have to find a different fix.
  • To fix a problem with VEVO videos not playing, as well as certain videos added to favorites not playing, I added the YouTubePlayer.py from this post: Reply #217
VIMEO FIXES
  • To get Vimeo working in Gotham Beta 2 I added the fixes found in this post: Post #256, and added the VimeoPlayer.py found in this post: Post #240
Thanks to all that fix and post ways to resolve broken addons Big Grin

Can you fix this by any chance ?
(2014-03-20, 15:11)sogopot Wrote: [ -> ]I integrated the fixes to get the YouTube and Vimeo addon working in Gotham Beta 2. I uploaded the addons with the fixes. Just uninstall your current addons and manually re-install with the fixed addons. For the YouTube addon, it's advised to delete the cookie "yt-cookiejar.txt" located in the following folder: xbmc/userdata/addon_data/plugin.video.youtube. For windows user's, you'll find the xbmc folder in C:\Users\UserAccount\AppData\Roaming.

DOWNLOAD LINK: https://www.mediafire.com/folder/ie3ammajgrc2o/xbmc_addons

LIST OF FIXES APPLIED

YOUTUBE FIXES
  • To solve the login problems, I added the fix from this post: Reply #52. If you continue to have login problems, you may have to find a different fix.
  • To fix a problem with VEVO videos not playing, as well as certain videos added to favorites not playing, I added the YouTubePlayer.py from this post: Reply #217
VIMEO FIXES
  • To get Vimeo working in Gotham Beta 2 I added the fixes found in this post: Post #256, and added the VimeoPlayer.py found in this post: Post #240
Thanks to all that fix and post ways to resolve broken addons Big Grin

Thanks. I tested this and subscriptions worked but Favourites didn't and gave "Unable to connect to remote server". Is there any way to make Favourites work as well?
hmm it works but it crashes xbmc alot...
Hey, can anyone confirm that or might know a solution?

For the time being I manually split my long playlist into three with 50 entries, but well..

https://github.com/HenrikDK/youtube-xbmc.../issues/51
(2014-03-22, 20:27)unexist Wrote: [ -> ]Hey, can anyone confirm that or might know a solution?

For the time being I manually split my long playlist into three with 50 entries, but well..

https://github.com/HenrikDK/youtube-xbmc.../issues/51


Taking your suggestion about splitting playlists. I noticed by cloning other channels long playlists into my account using this site http://ctrlq.org/youtube/playlists/ the cloned playlists do not cause XBMC to crash when I load them under the "my playlists" category.
(2014-03-22, 23:45)hams1000 Wrote: [ -> ]I mentioned it twice in this thread. The second time was just two posts above yours with a link to the first time I mentioned this bug. I know that was just a link without describing the issue. But the first time I mentioned it was on the last page, complete with debug log. Not buried by any means.

I was and I am still aware of your posts, but stuff like that is easily lost in a forum and I wanted to redirect attention to the issue on github.
(2014-03-23, 12:40)unexist Wrote: [ -> ]
(2014-03-22, 23:45)hams1000 Wrote: [ -> ]I mentioned it twice in this thread. The second time was just two posts above yours with a link to the first time I mentioned this bug. I know that was just a link without describing the issue. But the first time I mentioned it was on the last page, complete with debug log. Not buried by any means.

I was and I am still aware of your posts, but stuff like that is easily lost in a forum and I wanted to redirect attention to the issue on github.

Right on. Sorry to be so snappy mate. Also try the copying peoples playlists suggestion I made as a temporary solution
Hi, today I tried running a video from youtube plugin and the script failed. Here's the log. Any idea what can I do about it?

Code:
19:38:14 T:2458143552   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeEncodeError'>
                                            Error Contents: 'ascii' codec can't encode character u'\xe1' in position 5: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/default.py", line 120, in <module>
                                                navigation.executeAction(params)
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/YouTubeNavigation.py", line 143, in executeAction
                                                self.player.playVideo(params)
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/YouTubePlayer.py", line 80, in playVideo
                                                (video, status) = self.buildVideoObject(params)
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/YouTubePlayer.py", line 285, in buildVideoObject
                                                (links, video) = self.extractVideoLinksFromYoutube(video, params)
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/YouTubePlayer.py", line 418, in extractVideoLinksFromYoutube
                                                result = self.getVideoPageFromYoutube(get)
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/YouTubePlayer.py", line 401, in getVideoPageFromYoutube
                                                page = self.core._fetchPage({u"link": self.urls[u"video_stream"] % get(u"videoid"), "login": login})
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/YouTubeCore.py", line 447, in _fetchPage
                                                self.login._httpLogin()
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/YouTubeLogin.py", line 183, in _httpLogin
                                                ret = self.core._fetchPage(fetch_options)
                                              File "/home/tomorrow/.xbmc/addons/plugin.video.youtube/YouTubeCore.py", line 400, in _fetchPage
                                                request = urllib2.Request(link, urllib.urlencode(get("url_data")))
                                              File "/usr/lib/python2.7/urllib.py", line 1312, in urlencode
                                                v = quote_plus(str(v))
                                            UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 5: ordinal not in range(128)
                                            -->End of Python script error report<--
I had a problem with logging in but ran the fix per the uglyduckling blog and now I'm in but I wanna sit back and watch my subscriptions and have them auto-play one after another like I used to be able to do with leanback before they broke firefox support. Can this feature be added or is it already available? I tried ticking the autoplay next video option in video playback settings but that didn't do th trick. Thanks a bunch!
(2014-03-20, 15:11)sogopot Wrote: [ -> ]I integrated the fixes to get the YouTube and Vimeo addon working in Gotham Beta 2. I uploaded the addons with the fixes. Just uninstall your current addons and manually re-install with the fixed addons. For the YouTube addon, it's advised to delete the cookie "yt-cookiejar.txt" located in the following folder: xbmc/userdata/addon_data/plugin.video.youtube. For windows user's, you'll find the xbmc folder in C:\Users\UserAccount\AppData\Roaming.

DOWNLOAD LINK: https://www.mediafire.com/folder/ie3ammajgrc2o/xbmc_addons

LIST OF FIXES APPLIED

YOUTUBE FIXES
  • To solve the login problems, I added the fix from this post: Reply #52. If you continue to have login problems, you may have to find a different fix.
  • To fix a problem with VEVO videos not playing, as well as certain videos added to favorites not playing, I added the YouTubePlayer.py from this post: Reply #217
VIMEO FIXES
  • To get Vimeo working in Gotham Beta 2 I added the fixes found in this post: Post #256, and added the VimeoPlayer.py found in this post: Post #240
Thanks to all that fix and post ways to resolve broken addons Big Grin

Finally able to login to yt! Thanks mate!

The only missing part of your version was UTF-8 fix (http://www.me-likey.net/fix-youtube-login-xbmc/)

Cheers!
(2014-03-04, 23:56)calib3r Wrote: [ -> ]How do you get past age verify?

anyone?
Quote:Finally able to login to yt! Thanks mate!

The only missing part of your version was UTF-8 fix (http://www.me-likey.net/fix-youtube-login-xbmc/)

Cheers!

The link you posted is dead. What does this exactly fix? Is it a Country specific fix?

I'm in the USA and all is working fine with YouTube with the fixes that were integrated in the posted link. If anyone is still having problems, post what country you're from and the problem you're having so others can discuss or post a relevant fix.
Looks like the link is fine, just accidentally includes the trailing ")"
In Portugal it doesn't work. It gives the
Code:
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode character u'\xe1' in position 5: ordinal not in range(128)
error.
Hi!
I'm always have this:
Code:
01:35:29 580.325562 T:2779345984  NOTICE: -->Python Interpreter Initialized<--
01:35:35 585.625610 T:2779345984  NOTICE: Loading cookies from :'/home/pi/.xbmc/userdata/addon_data/plugin.video.youtube/yt-cookiejar.txt'
01:35:35 585.924744 T:2779345984  NOTICE: YouTube-4.4.6
01:35:38 588.607666 T:2779345984  NOTICE: CommonFunctions-2.5.1
01:36:01 612.258545 T:3036812064   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/video&action=play_video&videoid=htirocEJFOE]
I can login and navigate, but can't watch any video.
I have already tried all possible fixes (like youtubeplayer.py and youtubecore.py and others).
I also update my raspbmc to test build "xbmc-13-20140323-nc3".
I know python a little bit. How can i debug plugin and see python error? It doesn't mean debug log, i'll post debug log later. In other words what do i need for debugging this plugin on linux?
Sry for my english )
Ok here is debug:
Code:
16:11:44 53154.914062 T:2742023232  NOTICE: Thread LanguageInvoker start, auto delete: false
16:11:45 53156.347656 T:2742023232  NOTICE: -->Python Interpreter Initialized<--
16:11:49 53160.277344 T:2742023232  NOTICE: Loading cookies from :'/home/pi/.xbmc/userdata/addon_data/plugin.video.youtube/yt-cookiejar.txt'
16:11:49 53160.457031 T:2742023232  NOTICE: YouTube-4.4.6 ARGV: ['plugin://plugin.video.youtube/', '7', '?path=/root/video&action=play_video&videoid=FpH9ibylr4k']
16:11:51 53161.781250 T:2742023232  NOTICE: [StorageClient-2.5.4] '__init__' : 'Setting table to : YouTube'
16:11:52 53162.535156 T:2742023232  NOTICE: CommonFunctions-2.5.1
16:11:54 53164.691406 T:2742023232  NOTICE: [YouTube-4.4.6] __init__ : ''
16:11:54 53164.707031 T:2742023232  NOTICE: [StorageClient-2.5.4] '__init__' : 'Setting table to : Downloader'
16:11:54 53164.734375 T:2742023232  NOTICE: [YouTube-4.4.6] __init__ : 'Done'
16:11:54 53164.765625 T:2742023232  NOTICE: [YouTube-4.4.6] getXBMCVersion : '14.0'
16:11:54 53164.812500 T:2742023232  NOTICE: [YouTube-4.4.6] buildVideoObject : '{'action': 'play_video', 'path': '/root/video', 'videoid': 'FpH9ibylr4k'}'
16:11:54 53164.828125 T:2742023232  NOTICE: [StorageClient-2.5.4] 'get' : 'videoidcacheFpH9ibylr4k'
16:11:54 53164.859375 T:2742023232  NOTICE: [StorageClient-2.5.4] '_sock_init' : ''
16:11:54 53164.878906 T:2742023232  NOTICE: [StorageClient-2.5.4] '_sock_init' : 'Done: u'/home/pi/.xbmc/temp/commoncache.socket''
16:11:54 53165.128906 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'called for : {'api': 'true', 'link': 'http://gdata.youtube.com/feeds/api/videos/FpH9ibylr4k'}'
16:11:54 53165.167969 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'got default: http://gdata.youtube.com/feeds/api/videos/FpH9ibylr4k'
16:11:54 53165.214844 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'got api'
16:11:54 53165.257812 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'connecting to server... http://gdata.youtube.com/feeds/api/videos/FpH9ibylr4k'
16:11:54 53165.453125 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'done'
16:11:56 53166.699219 T:2742023232  NOTICE: [YouTube-4.4.6] updateVideoIdStatusInCache : 'videoidcache'
16:11:56 53166.742188 T:2742023232  NOTICE: [StorageClient-2.5.4] 'setMulti' : 'videoidcache'
16:11:56 53166.804688 T:2742023232  NOTICE: [StorageClient-2.5.4] '_sock_init' : ''
16:11:56 53166.867188 T:2742023232  NOTICE: [StorageClient-2.5.4] '_sock_init' : 'Done: u'/home/pi/.xbmc/temp/commoncache.socket''
16:11:56 53166.917969 T:2742023232  NOTICE: [YouTube-4.4.6] getVideoIdStatusFromCache : 'vidstatus-'
16:11:56 53166.937500 T:2742023232  NOTICE: [StorageClient-2.5.4] 'getMulti' : 'vidstatus-'
16:11:56 53166.968750 T:2742023232  NOTICE: [StorageClient-2.5.4] '_sock_init' : ''
16:11:56 53167.000000 T:2742023232  NOTICE: [StorageClient-2.5.4] '_sock_init' : 'Done: u'/home/pi/.xbmc/temp/commoncache.socket''
16:11:57 53167.714844 T:2742023232  NOTICE: [StorageClient-2.5.4] 'set' : 'videoidcacheFpH9ibylr4k'
16:11:57 53167.765625 T:2742023232  NOTICE: [StorageClient-2.5.4] '_sock_init' : ''
16:11:57 53167.812500 T:2742023232  NOTICE: [StorageClient-2.5.4] '_sock_init' : 'Done: u'/home/pi/.xbmc/temp/commoncache.socket''
16:11:57 53167.847656 T:2742023232  NOTICE: [YouTube-4.4.6] extractVideoLinksFromYoutube : 'trying website: {'action': 'play_video', 'path': '/root/video', 'videoid': 'FpH9ibylr4k'}'
16:11:57 53167.910156 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'called for : {'login': 'true', u'link': 'http://www.youtube.com/watch?v=FpH9ibylr4k&safeSearch=none'}'
16:11:57 53167.937500 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'got default: http://www.youtube.com/watch?v=FpH9ibylr4k&safeSearch=none'
16:11:57 53167.980469 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'got login'
16:11:57 53168.007812 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'connecting to server... http://www.youtube.com/watch?v=FpH9ibylr4k&safeSearch=none'
16:12:17 53188.125000 T:2742023232  NOTICE: [YouTube-4.4.6] _fetchPage : 'Socket timeout'
16:12:17 53188.144531 T:2742023232  NOTICE: [YouTube-4.4.6] getVideoPageFromYoutube : 'Step1: -1'
16:12:17 53188.195312 T:2742023232  NOTICE: [YouTube-4.4.6] isVideoAgeRestricted : '[]'
16:12:17 53188.210938 T:2742023232  NOTICE: [YouTube-4.4.6] extractVideoLinksFromYoutube : 'Couldn't get video page from YouTube'
16:12:17 53188.230469 T:2742023232  NOTICE: [YouTube-4.4.6] buildVideoObject : 'Done'
16:12:17 53188.242188 T:2742023232  NOTICE: [YouTube-4.4.6] playVideo : 'construct video url failed contents of video item {'Count': 7212, 'Rating': 4.948052, 'editid': '', 'Title': u'Ahead vs Alliance, Star Series Europe Day 19, Game 3', 'playlist_entry_id': u'FpH9ibylr4k', u'apierror': u"Couldn't locate video url", 'Overlay': '', 'videoid': u'FpH9ibylr4k', 'Date': '24-03-2014', 'Genre': u'Gaming', 'Studio': u'dotasltv', 'Duration': 52, 'Plot': u'Date Uploaded: 2014-03-24 21:25:57, View count: 7212\n\u0414\u0435\u0432\u044f\u0442\u044b\u0439 \u0441\u0435\u0437\u043e\u043d STARLADDER.TV \u0432 \u0440\u0430\u0437\u0433\u0430\u0440\u0435! \u041a\u0443\u043f\u0438 \u0431\u0438\u043b\u0435\u0442, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438 \u043b\u044e\u0431\u0438\u043c\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438 \u043f\u043e\u043b\u0443\u0447\u0438 \u044d\u043a\u0441\u043a\u043b\u044e\u0437\u0438\u0432\u043d\u044b\u0439 \u0441\u044d\u0442 \u043d\u0430 \u041b\u0438\u0447\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 Loading Screen.\n\u041c\u0430\u0433\u0430\u0437\u0438\u043d \u0437\u0430 \u0443\u0433\u043b\u043e\u043c \u2192 http://www.dota2.com/store/itemdetails/20417\n\u2014\n\u0411\u0443\u0434\u044c\u0442\u0435 \u0432 \u043a\u0443\u0440\u0441\u0435 \u0432\u0441\u0435\u0445 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043d\u0430\u0448\u0435\u0439 \u043b\u0438\u0433\u0438!\nhttp://dota2.starladder.tv \nhttp://vk.com/dotastarladder\nhttp://facebook.com/dotasltv\nhttp://twitter.com/dotasltv\nhttp://twitch.tv/starladder1/new', 'thumbnail': u'http://i.ytimg.com/vi/FpH9ibylr4k/0.jpg'}'
16:12:17 53188.265625 T:2742023232  NOTICE: [YouTube-4.4.6] showMessage : '<type 'unicode'> - <type 'unicode'>'
16:12:17 53188.347656 T:2680849472  NOTICE: Thread JobWorker start, auto delete: true
16:12:18 53188.683594 T:3036812064   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/video&action=play_video&videoid=FpH9ibylr4k]