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.
Seems to work with video playing again.

However the "age verify" videos are still not playing, even with the fix of code in YouTubeCore.py that was mention in this forum.

(2012-09-15, 15:53)anteo Wrote: [ -> ]I managed to fix issues described above. I've attached fixed versions of video youtube (3.1.0) and simple downloader (0.9.3) plugins. What issues are fixed:
  • latest change in YouTube that totally broke viewing videos
  • unsupported (=http) protocol problem
  • exceptions in transformAnnotationToSSA (list out of index) for some videos
  • subtitles are not displayed
  • videos with non-ascii names are not downloaded or downloaded with all non-ascii characters stripped (I tested fix on Windows platform, so not sure about correct downloading on *nix platforms)

https://dl.dropbox.com/u/33024933/plugin...outube.zip
https://dl.dropbox.com/u/33024933/script...loader.zip

Sir, i tip my hat to you - playback works fine now Rofl
It works on Ubuntu 12.04 also (except play all).

Thanks anteo!
First of all. Thanks tobias and HenrikDK for working on such a wonderful, and useful plugin for XBMC, which my missus absolutely thrashes on a daily basis. >95% of our XBMC usage is with this plugin, she has many subscriptions which she likes to keep up with daily. A big thanks also goes out to anteo, for publishing a quick fix, that is at least able to get videos playing again.

It's nice to know that a more complete fix will likely be made available some time next week. I am a hobbyist developer, and would like to know if the development version of this plugin is available publically. This would be of great use for Youtube addicts, who absolutely must have their fix, and can handle flames and explosions. If the plugin is not working anyway (such as it is at this point in time), I see no harm in people "wasting their time", by going out of their way to install an unsupported and likely broken development version. When a supported update is released, one can simply switch back to using that.

Thanks again. Smile
(2012-09-14, 15:51)HenrikDK Wrote: [ -> ]
(2012-09-14, 15:09)pinelights Wrote: [ -> ]Hi just started to get error when trying to play any videos on all my machines - help! I can log in fine, browse but the moment i want to play any videos it can't Sad

Hi, Youtube changed the way they do playback now, and decided to serve up the "signature" (a security toke) in a separate variable. Combined with the unsuported protocol "=Http" problem, this has completely broken the url parser in our player core.

I Have a working fix in our development branch, unfortunately that code was left in a very unstable state. It will take some time to make the code production ready.

To make matters worse both Tobias and I are extremely busy the entire weekend so I'm not seeing any fixes being pushed until some time later next week.. Sad

/HenrikDK

Thanks and good luck, gents. I appreciate the hard work to keep this wonderful resource working for the community.

(2012-09-15, 15:53)anteo Wrote: [ -> ]I managed to fix issues described above. I've attached fixed versions of video youtube (3.1.0) and simple downloader (0.9.3) plugins. What issues are fixed:
  • latest change in YouTube that totally broke viewing videos
  • unsupported (=http) protocol problem
  • exceptions in transformAnnotationToSSA (list out of index) for some videos
  • subtitles are not displayed
  • videos with non-ascii names are not downloaded or downloaded with all non-ascii characters stripped (I tested fix on Windows platform, so not sure about correct downloading on *nix platforms)

https://dl.dropbox.com/u/33024933/plugin...outube.zip
https://dl.dropbox.com/u/33024933/script...loader.zip

I am happy to report that this workaround resolves our issue on a Mac running OS X 10.7, XBMC Eden RC2, and YouTube 3.1.0. I definitely recommend anyone else at least try this method.
does nothing for me. the downloader breaks youtube, and replacment does squat. for some reason reddittv playes first video than either cannot find video, or pluginfails
I tried this today... search is broken, The keyboard window opens and hangs for a while - It will come back, but it does not allow remote navigation/entry. When using a keyboard entry works but search does nothing, literally.
(2012-09-15, 19:08)seizmos Wrote: [ -> ]Thanks anteo , YT work fine but right click and then play all on YT playlist result script error..

Should work now. Download again:

https://dl.dropbox.com/u/33024933/plugin...outube.zip
(2012-09-16, 06:35)Livin Wrote: [ -> ]I tried this today... search is broken, The keyboard window opens and hangs for a while - It will come back, but it does not allow remote navigation/entry. When using a keyboard entry works but search does nothing, literally.

Could not reproduce this. I have a search feature working as expected. And even if there was a bug, my changes don't touch search capabilities of plugin at all
(2012-09-16, 00:22)timwall Wrote: [ -> ]Seems to work with video playing again.

However the "age verify" videos are still not playing, even with the fix of code in YouTubeCore.py that was mention in this forum.

Could you give me a link to any of such videos, maybe I can fix this problem too?
(2012-09-16, 07:25)anteo Wrote: [ -> ]
(2012-09-15, 19:08)seizmos Wrote: [ -> ]Thanks anteo , YT work fine but right click and then play all on YT playlist result script error..

Should work now. Download again:

https://dl.dropbox.com/u/33024933/plugin...outube.zip

I've tried your files and, while they work great on my windows box, my crystalbuntu box is having trouble logging into my account. Could the fact I have two-factor authentication be an issue? It doesn't prompt me to put in an authenticator pin and gives me a failed login prompt.
(2012-09-16, 09:47)Sonic Crash Wrote: [ -> ]I've tried your files and, while they work great on my windows box, my crystalbuntu box is having trouble logging into my account. Could the fact I have two-factor authentication be an issue? It doesn't prompt me to put in an authenticator pin and gives me a failed login prompt.
You have to have a separate password for accounts like this. Go to this page and create an application specific password.
https://accounts.google.com/b/0/IssuedAuthSubTokens
Nothing seems to work for me :/ even not anteo fix:

Code:
09:58:27 T:892  NOTICE: -->Python Interpreter Initialized<--
09:58:27 T:892  NOTICE: YouTube-3.1.0
09:58:27 T:892  NOTICE: CommonFunctions-1.1.0
09:58:34 T:892   ERROR: Error Type: <type 'exceptions.IndexError'>
09:58:34 T:892   ERROR: Error Contents: string index out of range
09:58:34 T:892   ERROR: Traceback (most recent call last):
                                              File "C:\Users\Tomek\AppData\Roaming\XBMC\addons\plugin.video.youtube\default.py", line 108, in <module>
                                                navigation.listMenu(params)
                                              File "C:\Users\Tomek\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeNavigation.py", line 108, in listMenu
                                                return self.list(params)
                                              File "C:\Users\Tomek\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeNavigation.py", line 186, in list
                                                (results, status) = self.scraper.scrape(params)
                                              File "C:\Users\Tomek\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeScraper.py", line 662, in scrape
                                                result = self.paginator(params)
                                              File "C:\Users\Tomek\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeScraper.py", line 643, in paginator
                                                (result, status) = self.core.getBatchDetails(result, params)
                                              File "C:\Users\Tomek\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeCore.py", line 344, in getBatchDetails
                                                temp = self.getVideoInfo(result["content"], params)
                                              File "C:\Users\Tomek\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeCore.py", line 962, in getVideoInfo
                                                self.getYTCache("vidstatus-", ytobjects, "Overlay")
                                              File "C:\Users\Tomek\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeCore.py", line 841, in getYTCache
                                                if res[i]:
                                            IndexError: string index out of range
09:58:34 T:2328   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.youtube/?path=/root/explore/shows&show=worldsdeadliest%3Ffeature%3Dsh_do_show_1_1&season=CLb_r_pcA16Z8&scraper=shows&
09:58:34 T:2328   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/?path=/root/explore/shows&show=worldsdeadliest%3Ffeature%3Dsh_do_show_1_1&season=CLb_r_pcA16Z8&scraper=shows&) failed

any ideas?
(2012-09-16, 10:11)jomotix Wrote: [ -> ]Nothing seems to work for me :/ even not anteo fix:
Did you apply both the zipfiles (including the simpledownloader fix)? Because this certainly does work.
(2012-09-16, 07:25)anteo Wrote: [ -> ]
(2012-09-15, 19:08)seizmos Wrote: [ -> ]Thanks anteo , YT work fine but right click and then play all on YT playlist result script error..

Should work now. Download again:

https://dl.dropbox.com/u/33024933/plugin...outube.zip
Can confirm the "Play All" works on XBMC Eden / Linux Mint 12 after applying this zipfile, and the original simple.downloader zipfile:
https://dl.dropbox.com/u/33024933/script...loader.zip

(2012-09-16, 10:11)jomotix Wrote: [ -> ]Nothing seems to work for me :/ even not anteo fix:

any ideas?

Try to move out or rename \XBMC\userdata\Database\commoncache.db
Not sure, but maybe it will work.

I also recommend to fully uninstall YouTube plugin, then install last version (3.1.0) and then replace original plugin files with mine
ok sorry for beeing kind of stupid i guess :/ i thought both WERE enabled

IT WORKS!!

i guess you have to apply them in the correct order maybe? First Youtube and then the simpledownload, because i am sure i applied them both for at least 2-3 times and it did not work.

Thank you for this great work you do! Smile
Nice fix, thanks.