XBMC Community Forum
[RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC (/showthread.php?tid=79487)



- HenrikDK - 2011-08-01 21:10

gott_sei_dank Wrote:Tis exciting because a huge chunk of my viewing is now done through this wonderful addon, anyhoo the first problem I had was with My Subscriptions, great I thought sorted by a-z a nice improvement only to find a blank list after selecting more results, was unsuccessful in trying to unsubscribe, a couple of videos I tried didn't play (HD problem ?) and I was bit by a a problem which occurs I think with overlapping dialogues which kills XBMC.

I'm using the PVR ppa from https://launchpad.net/~lars-opdenkamp/+archive/xbmc-pvr which isn't the latest and greatest normally a little behind.

http://paste.ubuntu.com/655864/

Beyond the the playback issues and the gui.lock problems i think are cause by outdated nightly, i've been chewing my way trough the rest of the problems, pagination has been restored to subscriptions and it's now possible to unsubscribe again (youtube apparently has different opinions on whether a public api needs to be stable). I'll push out an update at the end of the week once i've gotten around to merging with version 2.6


- gott_sei_dank - 2011-08-01 23:11

The new version of the PVR build did fix the VP8 problems, though they seem slower to start with a little pause at the beginning probably a part of Youtube's master plan, hopefully the unstable api is also the cause of not being able to add favourites which is the only other problem I found. Keep up the good work Big Grin


4oD testers requested - TobiasTheCommie - 2011-08-03 10:58

If anyone feels up to running some 4oD tests send me a pm.

This will require you to run unstable xbmc(eden-pre), unstable librtmp(2.4) and unstable youtube plugin code(i'll provide it)

If you feel comfortable with all that, send me a pm.

ETA: Thanks to the help of gott_sei_dank it appears that 4oD is now working in our really really buggy pre-beta code. So it is coming.


- gott_sei_dank - 2011-08-03 11:49

Tobias I've sent you a pm, well I have tried not sure if they are getting through (sorry if they are Big Grin) but I'm not getting any acknowledgement that I've sent them.

edit

there is an option to save a copy of a pm, still a more obvious acknowledgement that a pm has been sent would be nice for simpletons like me


- TobiasTheCommie - 2011-08-03 12:22

Got it three times. is aok Smile

I've send you a pm. Crossed fingers here...


- gott_sei_dank - 2011-08-03 15:27

So I have been reminded Wink that with the pre-eden build searches are no longer are saved.


- quid246 - 2011-08-04 01:16

Running XBMC on Ubuntu 10.10... YT plugin was working fine last night, today it's not (same XBMC process running)... get the uncaught error when trying to launch a video from search.

Tried a reboot, no dice. Other online plugins working fine so it's not a network issue.

Log only shows:

Quote:18:51:24 T:2940484464 M:2831179776 NOTICE: -->Python Interpreter Initialized<--
18:51:24 T:2940484464 M:2831179776 NOTICE: YouTube-2.0.5
18:51:26 T:3079313264 M:2830446592 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/search&action=play_video&videoid=fMvSryOVKz0]

Did they change their API/interface?


- oBMTo - 2011-08-04 01:22

quid246 Wrote:Running XBMC on Ubuntu 10.10... YT plugin was working fine last night, today it's not (same XBMC process running)... get the uncaught error when trying to launch a video from search.

Tried a reboot, no dice. Other online plugins working fine so it's not a network issue.

Log only shows:



Did they change their API/interface?

Having same problems


Problem confirmed - kickit2 - 2011-08-04 01:46

It was running this morning actually and a few hours ago I noticed it die out.

I'm running XBMC PRE-11.0 GIT:201 10715-78a51df

XBMC plugin version 2.5.0

Im building the latest GIT pull now and I'll post back to let you know if that fixes it.

First part of excerpt from my xbmc.log
Code:
T:4491152 M:1713074176   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.youtube/?path=/root/explore/categories&scraper=categories&login=false&folder=true&)
16:24:25 T:4491152 M:1713074176   DEBUG:   ParentPath = [plugin://plugin.video.youtube/?path=/root/explore&login=false&]
16:24:25 T:3021994864 M:1713074176   DEBUG: StartScript - calling plugin YouTube('plugin://plugin.video.youtube/','0','?path=/root/explore/categories&scraper=categories&login=false&folder=true&')
16:24:25 T:3021994864 M:1713074176    INFO: initializing python engine.
16:24:25 T:3021994864 M:1713074176   DEBUG: new python thread created. id=39
16:24:25 T:3021994864 M:1713074176   DEBUG: WaitOnScriptResult - waiting on the YouTube plugin...
16:24:25 T:3042950000 M:1713074176   DEBUG: Thread XBPyThread start, auto delete: 0
16:24:25 T:3042950000 M:1713074176   DEBUG: Python thread: start processing
16:24:25 T:3042950000 M:1713074176  NOTICE: -->Python Interpreter Initialized<--
16:24:25 T:3042950000 M:1713074176   DEBUG: Process - The source file to load is /home/poquette/.xbmc/addons/plugin.video.youtube/default.py
16:24:25 T:3042950000 M:1713074176   DEBUG: Process - Setting the Python path to /home/poquette/.xbmc/addons/plugin.video.youtube:/home/poquette/.xbmc/addons/script.module.simplejson/lib:/home/poquette/.xbmc/addons/script.module.beautifulsoup/lib:/usr/local/share/xbmc/addons/script.module.pil/lib:/usr/local/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.7/site-packages/tvdb_api-1.5-py2.7.egg:/usr/lib/python2.7/site-packages/FlexGet-1.0-py2.7.egg:/usr/lib/python2.7/site-packages/progressbar-2.3_dev-py2.7.egg:/usr/lib/python2.7/site-packages/pynzb-0.1.0-py2.7.egg:/usr/lib/python2.7/site-packages/PyRSS2Gen-1.0.0-py2.7.egg:/usr/lib/python2.7/site-packages/html5lib-0.90-py2.7.egg:/usr/lib/python2.7/site-packages/PyYAML-3.09-py2.7-linux-i686.egg:/usr/lib/python2.7/site-packages/SQLAlchemy-0.6.5-py2.7.egg:/usr/lib/python2.7/site-packages/transmissionrpc-0.7-py2.7.egg:/usr/lib/python2.7/site-packages/tvnamer-2.0-py2.7.egg:/usr/lib/python2.7/site-packages/mpich2:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gst-0.10:/usr/lib/python2.7/site-packages/gtk-2.0:/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info:/usr/lib/python2.7/site-packages/webkit-1.0:
16:24:25 T:3042950000 M:1713074176   DEBUG: Process - Entering source directory /home/poquette/.xbmc/addons/plugin.video.youtube
16:24:25 T:3042950000 M:1713074176   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 2.0 of the xbmc.python api
16:24:25 T:3042950000 M:1713074176  NOTICE: YouTube2.5.0
16:24:26 T:4491152 M:1712947200   DEBUG: ------ Window Init (DialogBusy.xml) ------
16:24:26 T:4491152 M:1712947200   DEBUG: Alloc resources: 0.01ms (0.00 ms skin load)
16:24:26 T:4491152 M:1712947200   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/libexif-i486-linux.so)
16:24:26 T:4491152 M:1712947200   DEBUG: Unloading: libexif-i486-linux.so
16:24:26 T:3021994864 M:1712562176   DEBUG: WaitOnScriptResult- plugin returned successfully
16:24:26 T:3042950000 M:1712562176    INFO: Scriptresult: Success
16:24:26 T:3042950000 M:1712562176    INFO: Python script stopped
16:24:26 T:3042950000 M:1712562176   DEBUG: Thread Python Thread 3042950000 terminating
16:24:26 T:3032480624 M:1712562176   DEBUG: Thread Background Loader start, auto delete: 0
16:24:26 T:4491152 M:1712562176   DEBUG: waiting for python thread 39 to stop
16:24:26 T:4491152 M:1712562176   DEBUG: python thread 39 destructed
16:24:26 T:3032480624 M:1712562176   DEBUG: Thread Background Loader 3032480624 terminating
16:24:26 T:4491152 M:1712562176   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
16:24:27 T:4491152 M:1712562176   DEBUG: LIRC: Update - NEW at 914047:000000037ff07bdd 00 OK mceusb (OK)
16:24:27 T:4491152 M:1712562176   DEBUG: OnKey: 11 (0b) pressed, action is Select
16:24:27 T:4491152 M:1712562176   DEBUG: Clearing cached fileitems [plugin://plugin.video.youtube/?path=/root/explore/categories&category=%3Fc%3D2&scraper=categories&]
16:24:27 T:4491152 M:1712562176   DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.youtube/?path=/root/explore/categories&category=%3Fc%3D2&scraper=categories&)
16:24:27 T:4491152 M:1712562176   DEBUG:   ParentPath = [plugin://plugin.video.youtube/?path=/root/explore/categories&scraper=categories&login=false&folder=true&]
16:24:27 T:31058800 M:1712562176   DEBUG: StartScript - calling plugin YouTube('plugin://plugin.video.youtube/','0','?path=/root/explore/categories&category=%3Fc%3D2&scraper=categories&')
16:24:27 T:31058800 M:1712562176    INFO: initializing python engine.
16:24:27 T:31058800 M:1712562176   DEBUG: new python thread created. id=40
16:24:27 T:31058800 M:1712562176   DEBUG: WaitOnScriptResult - waiting on the YouTube plugin...
16:24:27 T:3042950000 M:1712562176   DEBUG: Thread XBPyThread start, auto delete: 0
16:24:27 T:3042950000 M:1712562176   DEBUG: Python thread: start processing
16:24:27 T:3042950000 M:1712562176  NOTICE: -->Python Interpreter Initialized<--
16:24:27 T:3042950000 M:1712562176   DEBUG: Process - The source file to load is /home/poquette/.xbmc/addons/plugin.video.youtube/default.py
16:24:27 T:3042950000 M:1712562176   DEBUG: Process - Setting the Python path to /home/poquette/.xbmc/addons/plugin.video.youtube:/home/poquette/.xbmc/addons/script.module.simplejson/lib:/home/poquette/.xbmc/addons/script.module.beautifulsoup/lib:/usr/local/share/xbmc/addons/script.module.pil/lib:/usr/local/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.7/site-packages/tvdb_api-1.5-py2.7.egg:/usr/lib/python2.7/site-packages/FlexGet-1.0-py2.7.egg:/usr/lib/python2.7/site-packages/progressbar-2.3_dev-py2.7.egg:/usr/lib/python2.7/site-packages/pynzb-0.1.0-py2.7.egg:/usr/lib/python2.7/site-packages/PyRSS2Gen-1.0.0-py2.7.egg:/usr/lib/python2.7/site-packages/html5lib-0.90-py2.7.egg:/usr/lib/python2.7/site-packages/PyYAML-3.09-py2.7-linux-i686.egg:/usr/lib/python2.7/site-packages/SQLAlchemy-0.6.5-py2.7.egg:/usr/lib/python2.7/site-packages/transmissionrpc-0.7-py2.7.egg:/usr/lib/python2.7/site-packages/tvnamer-2.0-py2.7.egg:/usr/lib/python2.7/site-packages/mpich2:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gst-0.10:/usr/lib/python2.7/site-packages/gtk-2.0:/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info:/usr/lib/python2.7/site-packages/webkit-1.0:
16:24:27 T:3042950000 M:1712562176   DEBUG: Process - Entering source directory /home/poquette/.xbmc/addons/plugin.video.youtube
16:24:27 T:3042950000 M:1712562176   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 2.0 of the xbmc.python api
16:24:27 T:3042950000 M:1712562176  NOTICE: YouTube2.5.0
16:24:27 T:4491152 M:1712504832   DEBUG: ------ Window Init (DialogBusy.xml) ------
16:24:27 T:4491152 M:1712504832   DEBUG: Alloc resources: 0.01ms (0.00 ms skin load)
16:24:28 T:31058800 M:1711497216    INFO: Loading skin file: DialogProgress.xml
16:24:28 T:31058800 M:1711497216   DEBUG: Load DialogProgress.xml: 2.51ms
16:24:28 T:31058800 M:1711497216   DEBUG: DialogProgress::StartModal called
16:24:28 T:31058800 M:1711497216   DEBUG: ------ Window Init (DialogProgress.xml) ------
16:24:28 T:31058800 M:1711497216   DEBUG: Alloc resources: 0.25ms (0.00 ms skin load)
16:24:29 T:31058800 M:1709084672   DEBUG: WaitOnScriptResult- plugin returned successfully
16:24:29 T:3042950000 M:1709084672    INFO: Scriptresult: Success
16:24:29 T:4491152 M:1709084672   DEBUG: Saving fileitems [plugin://plugin.video.youtube/?path=/root/explore/categories&category=%3Fc%3D2&scraper=categories&]
16:24:29 T:4491152 M:1709084672   DEBUG:   -- items: 26, sort method: 0, ascending: false
16:24:29 T:3042950000 M:1709084672    INFO: Python script stopped
16:24:29 T:3042950000 M:1709084672   DEBUG: Thread Python Thread 3042950000 terminating
16:24:29 T:3032480624 M:1709084672   DEBUG: Thread Background Loader start, auto delete: 0
16:24:29 T:4491152 M:1708068864   DEBUG: waiting for python thread 40 to stop
16:24:29 T:4491152 M:1708068864   DEBUG: python thread 40 destructed
16:24:29 T:3032480624 M:1707388928   DEBUG: Thread Background Loader 3032480624 terminating
16:24:29 T:4491152 M:1707388928   DEBUG: ------ Window Deinit (DialogProgress.xml) ------
16:24:29 T:4491152 M:1707294720   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
16:24:30 T:4491152 M:1707479040   DEBUG: LIRC: Update - NEW at 917447:000000037ff07bdd 00 OK mceusb (OK)
16:24:30 T:4491152 M:1707479040   DEBUG: OnKey: 11 (0b) pressed, action is Select
16:24:30 T:4491152 M:1707479040   DEBUG: StartScript - calling plugin YouTube('plugin://plugin.video.youtube/','0','?path=/root/explore/categories&action=play_video&videoid=JHmesVibyXc')



Problem confirmed (Cont.) - kickit2 - 2011-08-04 01:47

Final part of xbmc.log excerpt
Code:
16:24:30 T:4491152 M:1707479040    INFO: initializing python engine.
16:24:30 T:4491152 M:1707479040   DEBUG: new python thread created. id=41
16:24:30 T:4491152 M:1707479040   DEBUG: WaitOnScriptResult - waiting on the YouTube plugin...
16:24:30 T:3042950000 M:1707479040   DEBUG: Thread XBPyThread start, auto delete: 0
16:24:30 T:3042950000 M:1707479040   DEBUG: Python thread: start processing
16:24:30 T:3042950000 M:1707479040  NOTICE: -->Python Interpreter Initialized<--
16:24:30 T:3042950000 M:1707479040   DEBUG: Process - The source file to load is /home/poquette/.xbmc/addons/plugin.video.youtube/default.py
16:24:30 T:3042950000 M:1707479040   DEBUG: Process - Setting the Python path to /home/poquette/.xbmc/addons/plugin.video.youtube:/home/poquette/.xbmc/addons/script.module.simplejson/lib:/home/poquette/.xbmc/addons/script.module.beautifulsoup/lib:/usr/local/share/xbmc/addons/script.module.pil/lib:/usr/local/share/xbmc/addons/script.module.pysqlite/lib:/usr/lib/python2.7/site-packages/tvdb_api-1.5-py2.7.egg:/usr/lib/python2.7/site-packages/FlexGet-1.0-py2.7.egg:/usr/lib/python2.7/site-packages/progressbar-2.3_dev-py2.7.egg:/usr/lib/python2.7/site-packages/pynzb-0.1.0-py2.7.egg:/usr/lib/python2.7/site-packages/PyRSS2Gen-1.0.0-py2.7.egg:/usr/lib/python2.7/site-packages/html5lib-0.90-py2.7.egg:/usr/lib/python2.7/site-packages/PyYAML-3.09-py2.7-linux-i686.egg:/usr/lib/python2.7/site-packages/SQLAlchemy-0.6.5-py2.7.egg:/usr/lib/python2.7/site-packages/transmissionrpc-0.7-py2.7.egg:/usr/lib/python2.7/site-packages/tvnamer-2.0-py2.7.egg:/usr/lib/python2.7/site-packages/mpich2:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gst-0.10:/usr/lib/python2.7/site-packages/gtk-2.0:/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg-info:/usr/lib/python2.7/site-packages/webkit-1.0:
16:24:30 T:3042950000 M:1707479040   DEBUG: Process - Entering source directory /home/poquette/.xbmc/addons/plugin.video.youtube
16:24:30 T:3042950000 M:1707479040   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 2.0 of the xbmc.python api
16:24:30 T:3042950000 M:1707479040  NOTICE: YouTube2.5.0
16:24:30 T:3042950000 M:1707606016  NOTICE: YouTube2.5.0 getVideoObject trying embedded
16:24:30 T:3042950000 M:1707606016  NOTICE: YouTube2.5.0 getVideoObject trying website
16:24:31 T:3042950000 M:1707352064  NOTICE: YouTube2.5.0 couldn't locate fmt_url_map or fmt_stream_map, no videos on page?
16:24:31 T:3042950000 M:1707352064    INFO: Scriptresult: Success
16:24:31 T:3042950000 M:1707352064    INFO: Python script stopped
16:24:31 T:3042950000 M:1707352064   DEBUG: Thread Python Thread 3042950000 terminating
16:24:31 T:4491152 M:1707352064   DEBUG:  WaitOnScriptResult - plugin exited prematurely - terminating
16:24:31 T:4491152 M:1707352064   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/?path=/root/explore/categories&action=play_video&videoid=JHmesVibyXc]
16:24:31 T:4491152 M:1707352064   DEBUG: Playlist Player: no more playable items... aborting playback
16:24:31 T:3032480624 M:1707352064   DEBUG: Thread Background Loader start, auto delete: 0
16:24:31 T:4491152 M:1707352064   DEBUG: waiting for python thread 41 to stop
16:24:31 T:4491152 M:1707352064   DEBUG: python thread 41 destructed
16:24:31 T:4491152 M:1707352064   DEBUG: ------ Window Init (DialogKaiToast.xml) ------

If there is anything that might help, just let me know

UPDATE: Plugin remains broken with GIT:20110803-e852572


- pike - 2011-08-04 02:22

^please use pastebin services in future


- pike - 2011-08-04 02:40

what the frack, videos don't play anymore, not even my favourites...

http://pastebin.com/06BQuLM5


- quid246 - 2011-08-04 04:03

Noticed people on a ROKU forum also commenting YT is not playing for them anymore... this is obviously some kind of move by YT to block players that bypass any adverts.


- samzstein - 2011-08-04 04:25

youtube sucks!


- danillll - 2011-08-04 04:44

Just looked at the plugin code and I can confirm that youtube changed their html content which caused the regex in _extractVariables to fail ...