Kodi Community Forum
Release [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: Release [depricated] old YouTube Plugin - XBMC 13.0 Frodo/Gotham only (/showthread.php?tid=79487)



RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - luca.gianfelici - 2014-11-14

Vevo not working here on OpenELEC 4.2.1


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - gott_sei_dank - 2014-11-14

(2014-11-13, 15:53)VanZan Wrote: I've noticed that my YouTube history doesn't sync with my online account...I wonder is there a fix or have I buggered something on my end?

The sync has only ever been one-way, the plugin can read your history not write it. Weirdly it started properly working again for me yesterday after only showing a few entries of my history.

Vevo videos are probably broken because of the Youtube Music thing.


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - woodside - 2014-11-14

(2014-11-14, 14:00)gott_sei_dank Wrote:
(2014-11-13, 15:53)VanZan Wrote: I've noticed that my YouTube history doesn't sync with my online account...I wonder is there a fix or have I buggered something on my end?

Vevo videos are probably broken because of the Youtube Music thing.

Can I ask what you mean by "because of the Youtube Music thing"?
What does the Youtube music thing refer to? Thanks. Big Grin


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - danillll - 2014-11-14

He is referring to the new YouTube music service launched by Google 2 days ago


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - Kenoby - 2014-11-14

But what does that mean?
We will never have more VEVO videos on xbmc?


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - woodside - 2014-11-14

Hmmm... you could still play them if you go to their website. If they completely disallow the ability for Kodi to stream videos then that just throws a BIG FAT WRENCH into the addon I have been working on for over 6 months now.Confused


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - woodside - 2014-11-15

(2010-08-22, 20:42)TobiasTheCommie Wrote: Comment and suggestions welcome.

In case you encounter any bugs with our plugin, please do report them so we can make this rock solid.

Where would we report that hardly any of the youtube music videos are playing?
Like maybe one out 50 will play.


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - peppe_sr - 2014-11-15

i have same problem too. not only with this addon but even with the bromix one.
waiting for solution!!
Peppe


RE: VEVO Fix - redviolet - 2014-11-15

VEVO problem is caused by a change in the way google generates signatures.

This code is the one creating a signature now, and current YoutubePlayer.py parser doesn't catch it.

Code:
a.set("signature",cr(c));return a

This patch works for me, but further feedback will be welcome, especially if you can come up with a better regexp.

Code:
--- a/YouTubePlayer.py
+++ b/YouTubePlayer.py
@@ -467,7 +467,7 @@ class YouTubePlayer():
                 return ''

             # get main function name
-            match = re.search("signature=([$a-zA-Z]+)\([^)]\)", playerData)
+            match = re.search("set..signature..([$a-zA-Z]+)\([^)]\)", playerData)

             if match:
                 mainFunName = match.group(1)



RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - moneymaker - 2014-11-15

Is it possible to open yt live channels via plugin://?

Code:
plugin://plugin.video.youtube/?action=play_video&videoid=



RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - woodside - 2014-11-15

(2014-11-15, 13:38)redviolet Wrote: VEVO problem is caused by a change in the way google generates signatures.

This code is the one creating a signature now, and current YoutubePlayer.py parser doesn't catch it.

Code:
a.set("signature",cr(c));return a

This patch works for me, but further feedback will be welcome, especially if you can come up with a better regexp.

Code:
--- a/YouTubePlayer.py
+++ b/YouTubePlayer.py
@@ -467,7 +467,7 @@ class YouTubePlayer():
                 return ''

             # get main function name
-            match = re.search("signature=([$a-zA-Z]+)\([^)]\)", playerData)
+            match = re.search("set..signature..([$a-zA-Z]+)\([^)]\)", playerData)

             if match:
                 mainFunName = match.group(1)
Thanks very much... works great.

Big Grin I had to stare at your code for a while to figure out exactly how to apply your patch with me being so python dumb.
For those who are as python dumb as me with the code lingo above.

Replace line 470 in YouTubePlayer.py
from this...

PHP Code:
match re.search("signature=([$a-zA-Z]+)\([^)]\)"playerData

to this...

PHP Code:
match re.search("set..signature..([$a-zA-Z]+)\([^)]\)"playerData

[EDIT] Or better yet follow the post below... Thanks redviolet and tomer953


RE: [RELEASE] YouTube (Video) Plugin - YouTube Addon for XBMC - tomer953 - 2014-11-15

(2014-11-15, 13:38)redviolet Wrote: VEVO problem is caused by a change in the way google generates signatures.

This code is the one creating a signature now, and current YoutubePlayer.py parser doesn't catch it.

Code:
a.set("signature",cr(c));return a

This patch works for me, but further feedback will be welcome, especially if you can come up with a better regexp.

Code:
--- a/YouTubePlayer.py
+++ b/YouTubePlayer.py
@@ -467,7 +467,7 @@ class YouTubePlayer():
                 return ''

             # get main function name
-            match = re.search("signature=([$a-zA-Z]+)\([^)]\)", playerData)
+            match = re.search("set..signature..([$a-zA-Z]+)\([^)]\)", playerData)

             if match:
                 mainFunName = match.group(1)

Great!
I Uploaded the modified file to here
https://drive.google.com/file/d/0B8R_P390IQPOMVpKck5nUUxfZXM/view?usp=sharing
Just Replace it with YouTubePlayer.py in AppData\Roaming\XBMC\addons\plugin.video.youtube
and restrart XBMC.

Enjoy all


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - abstract_ - 2014-11-15

Thanks redviolet, it works great for me now


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - secreto - 2014-11-15

Not working for me, after I modify the .py in XBMC\addons\plugin.video.youtube, on android box, I get script error?

Works on PC though thanks


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - majherek - 2014-11-15

Hi,

I am unable to login with youtube plugin.

In logs I see:

16:17:55 T:140468782053312 NOTICE: CDVDPlayer::CloseFile()
16:17:55 T:140468782053312 NOTICE: DVDPlayer: waiting for threads to exit
16:17:55 T:140468782053312 NOTICE: DVDPlayer: finished waiting
16:22:28 T:140466198636288 NOTICE: Thread JobWorker start, auto delete: true
16:22:28 T:140465915533056 NOTICE: Thread LanguageInvoker start, auto delete: false
16:22:28 T:140465915533056 NOTICE: -->Python Interpreter Initialized<--
16:22:28 T:140465915533056 NOTICE: Loading cookies from :'/home/majherek/.xbmc/userdata/addon_data/plugin.video.youtube/yt-cookiejar.txt'
16:22:28 T:140465915533056 NOTICE: YouTube-4.4.10
16:22:28 T:140465915533056 NOTICE: CommonFunctions-2.5.1
16:23:22 T:140465965889280 NOTICE: Thread JobWorker start, auto delete: true
16:23:22 T:140466207028992 NOTICE: Thread LanguageInvoker start, auto delete: false
16:23:22 T:140466207028992 NOTICE: -->Python Interpreter Initialized<--
16:23:22 T:140466207028992 NOTICE: Loading cookies from :'/home/majherek/.xbmc/userdata/addon_data/plugin.video.youtube/yt-cookiejar.txt'
16:23:22 T:140466207028992 NOTICE: YouTube-4.4.10
16:23:22 T:140466207028992 NOTICE: CommonFunctions-2.5.1
16:23:23 T:140465915533056 NOTICE: Thread BackgroundLoader start, auto delete: false
16:23:23 T:140468782053312 ERROR: GetDirectory - Error getting plugin://plugin.video.youtube/?action=settings&path=%2froot%2flogin
16:23:23 T:140468782053312 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/?action=settings&path=%2froot%2flogin) failed
16:23:23 T:140465915533056 NOTICE: Thread LanguageInvoker start, auto delete: false
16:23:23 T:140465915533056 NOTICE: -->Python Interpreter Initialized<--
16:23:23 T:140465915533056 NOTICE: Loading cookies from :'/home/majherek/.xbmc/userdata/addon_data/plugin.video.youtube/yt-cookiejar.txt'
16:23:23 T:140465915533056 NOTICE: YouTube-4.4.10
16:23:23 T:140465915533056 NOTICE: CommonFunctions-2.5.1
16:23:23 T:140466207028992 NOTICE: Thread BackgroundLoader start, auto delete: false
16:26:05 T:140466207028992 NOTICE: Thread JobWorker start, auto delete: true




I do not have g+ account. I use 2-step verification. I generate apps password for XMBC.



Linux atom 3.2.0-38-generic #61-Ubuntu SMP Tue Feb 19 12:18:21 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

majherek@atom:~/.xbmc/temp$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty


majherek@atom:~/.xbmc/temp$ dpkg -l |grep xbmc
ii xbmc 2:13.2~git20140817.2155-final-0precise all XBMC Media Center (arch-independent data package)
ii xbmc-bin 2:13.2~git20140817.2155-final-0precise amd64



Can you help me?