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 - bitbanger - 2012-11-28

(2012-11-27, 22:28)Salabim Wrote: There is 1 problem with the Youtube add-on, for some reason it never shows any video's for this subscription :
https://www.youtube.com/user/Nudelyn (Notice the username is 'Leo Davidson')
... perhaps the space in the username is making the add-on not show any contents ?
I see a similar issue: among my subscriptions I have 'Fritzing Org', and although that channel has plenty of videos, the YT plugin doesn't find anything. However by search I can find the videos.
It's the only channel I subscribed that has a space as part of the name, so I was wondering that was the cause of the issue.



RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - sphere - 2012-11-28

Hi,

I have problems using the youtube add-on as playback handler for some youtube playlists in one of my add-ons.

For example this playlist: http://www.youtube.com/playlist?list=PL8BA670090C9CC01A
My add-on calls: plugin://plugin.video.youtube/?action=play_all&playlist=PL8BA670090C9CC01A

It throws a Script-Failure and starts with the playback of the second item.

Here is the important part of the xbmc.log:
Code:
11:31:36 T:2954383360 WARNING: [plugin.video.doku_monster] Using playback url: plugin://plugin.video.youtube/?action=play_all&playlist=PL8BA670090C9CC01A
11:31:36 T:2954383360   ERROR:  AddItems - called with an invalid handle.
11:31:36 T:2954383360   ERROR:  EndOfDirectory - called with an invalid handle.
11:31:36 T:2955448320  NOTICE: -->Python Interpreter Initialized<--
11:31:36 T:2955448320  NOTICE: YouTube-3.3.0
11:31:36 T:2955448320  NOTICE: CommonFunctions-1.4.0
11:31:40 T:2955448320   ERROR: Error Type: <type 'exceptions.TypeError'>
11:31:40 T:2955448320   ERROR: Error Contents: an integer is required
11:31:40 T:2955448320   ERROR: Traceback (most recent call last):
                                              File "/Users/x/Library/Application Support/XBMC/addons/plugin.video.youtube/default.py", line 110, in <module>
                                                navigation.executeAction(params)
                                              File "/Users/x/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubeNavigation.py", line 156, in executeAction
                                                self.playlist.playAll(params)
                                              File "/Users/x/Library/Application Support/XBMC/addons/plugin.video.youtube/YouTubePlaylistControl.py", line 91, in playAll
                                                listitem = self.xbmcgui.ListItem(label=video("Title"), iconImage=video("thumbnail"), thumbnailImage=video("thumbnail"))
                                            TypeError: an integer is required
11:31:40 T:2892522176   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.doku_monster/play/4095]
11:31:40 T:2959249408  NOTICE: -->Python Interpreter Initialized<--
11:31:40 T:2959249408  NOTICE: YouTube-3.3.0
11:31:40 T:2959249408  NOTICE: CommonFunctions-1.4.0
11:31:41 T:2959249408  NOTICE: links: 'dict'
11:31:41 T:2892522176  NOTICE: DVDPlayer: Opening: http://o-o---preferred---sn-h0j7sn7d---v8---lscache7.c.youtube.com/videoplayback?upn=vY3Pe8dcqII&sparams=algorithm,burst,cp,factor,gcr,id,ip,ipbits,itag,source,upn,expire&fexp=906371,911645,907519,916612,922401,920704,912806,927201,925706,928001,922403,913546,913556,916805,920201,911116,901451&ms=au&algorithm=throttle-factor&burst=40&ip=178.15.38.35&itag=34&gcr=de&sver=3&mt=1354098669&mv=m&source=youtube&key=yt1&ipbits=8&factor=1.25&cp=U0hUSVFNT19FSkNONF9JR1NHOk9EQmNFc2RMUkI4&expire=1354121600&id=7515ab805e4f81be&signature=49E918FAF238592E853A18D2E49006B6FD6DB627.67137A87DFDDDFC90844D20A35DC7C58DE340083 | Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:16.0.1) Gecko/20121011 Firefox/16.0.1
11:31:41 T:2892522176 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
11:31:41 T:2958716928  NOTICE: Creating InputStream
11:31:41 T:2958716928  NOTICE: Creating Demuxer
11:31:41 T:2958716928  NOTICE: Opening video stream: 0 source: 256
11:31:41 T:2958716928  NOTICE: Creating video codec with codec id: 28
11:31:41 T:2958716928  NOTICE: Creating video thread
11:31:41 T:2958716928  NOTICE: Opening audio stream: 1 source: 256
11:31:41 T:2960846848  NOTICE: running thread: video_thread
11:31:41 T:2958716928  NOTICE: Finding audio codec for: 86018
11:31:41 T:2958716928  NOTICE: Creating audio thread
11:31:41 T:2961379328  NOTICE: running thread: CDVDPlayerAudio::Process()
11:31:41 T:2961379328  NOTICE: Creating audio device with codec id: 86018, channels: 2, sample rate: 44100, no pass-through
11:31:41 T:2961379328 WARNING: CoreAudioRenderer::Initialize: Unable to locate configured device, falling-back to the system default.
11:31:41 T:2960846848  NOTICE:  fps: 25.000000, pwidth: 640, pheight: 352, dwidth: 640, dheight: 352
11:31:41 T:2961379328   ERROR: CCoreAudioRenderer::InitializePCM: The selected device (Built-in Output) does not have a speaker layout configured. Using the default layout.
11:31:41 T:2961379328   ERROR: CCoreAudioRenderer::InitializePCM:     Please go to Applications -> Utilities -> Audio MIDI Setup, and select 'Configure Speakers...'
11:31:42 T:2960846848 WARNING: CRenderManager::Configure - timeout waiting for previous frame
11:31:42 T:2960846848  NOTICE: Display resolution DESKTOP : 1920x1200 @ 60.00 - Full Screen (12)
11:31:42 T:2892522176  NOTICE: Using GL_TEXTURE_2D
11:31:42 T:2892522176  NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
11:31:42 T:2892522176  NOTICE: GL: NPOT texture support detected
11:31:42 T:2892522176  NOTICE: GL: Using GL_ARB_pixel_buffer_object
11:31:42 T:2892522176  NOTICE: CDVDPlayer::CloseFile()
11:31:42 T:2892522176  NOTICE: DVDPlayer: waiting for threads to exit
11:31:42 T:2958716928  NOTICE: CDVDPlayer::OnExit()
11:31:42 T:2958716928  NOTICE: DVDPlayer: closing audio stream
11:31:42 T:2958716928  NOTICE: Closing audio stream
11:31:42 T:2958716928  NOTICE: Waiting for audio thread to exit
11:31:42 T:2961379328  NOTICE: thread end: CDVDPlayerAudio::OnExit()
11:31:42 T:2958716928  NOTICE: Closing audio device
11:31:42 T:2958716928  NOTICE: Deleting audio codec
11:31:42 T:2958716928  NOTICE: DVDPlayer: closing video stream
11:31:42 T:2958716928  NOTICE: Closing video stream
11:31:42 T:2958716928  NOTICE: waiting for video thread to exit
11:31:42 T:2960846848  NOTICE: thread end: video_thread
11:31:42 T:2958716928  NOTICE: deleting video codec
11:31:42 T:2958716928  NOTICE: CDVDPlayer::OnExit() deleting demuxer
11:31:42 T:2958716928  NOTICE: CDVDPlayer::OnExit() deleting input stream
11:31:42 T:2892522176  NOTICE: DVDPlayer: finished waiting
11:31:42 T:2892522176  NOTICE: CDVDPlayer::CloseFile()
11:31:42 T:2892522176 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
11:31:42 T:2892522176  NOTICE: DVDPlayer: waiting for threads to exit
11:31:42 T:2892522176  NOTICE: DVDPlayer: finished waiting

The error is very easy to reproduce so if you need any more informations, please just try to play the above url.

thanks,
sphere


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - zarac - 2012-11-28

(2012-11-28, 08:26)ranger0293 Wrote:
(2012-11-28, 05:13)latebris Wrote: I'm on version 3.3.0 and I'm unable to login. It tells me "Login Failed: Unknown Error" - I am using two-factor authentication, and I suspect that might be the reason. It newer prompts me for the authentication code, and will not let me use an application-specific password.

Same here. Any fix for this?
I just enabled "debug" option in the Advanced settings of the addon and then it asked for the code.


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - ced64k - 2012-11-28

(2012-11-26, 10:02)NaDs Wrote:
(2012-11-25, 14:19)ced64k Wrote: I tried the 3.3.0 version but it still returns an error with the Play All or Shuffle All functions in playlists

yes i had the same problem..
i had to put this into the youtube plugin folder to get it to work again

https://dl.dropbox.com/u/64208624/YouTubePlaylistControl.py

Works, thx!




RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - bitbanger - 2012-11-29

Is there any chance to get an option to give thumbs up/down to watched videos?


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - latebris - 2012-11-29

(2012-11-28, 14:24)zarac Wrote:
(2012-11-28, 08:26)ranger0293 Wrote:
(2012-11-28, 05:13)latebris Wrote: I'm on version 3.3.0 and I'm unable to login. It tells me "Login Failed: Unknown Error" - I am using two-factor authentication, and I suspect that might be the reason. It newer prompts me for the authentication code, and will not let me use an application-specific password.

Same here. Any fix for this?
I just enabled "debug" option in the Advanced settings of the addon and then it asked for the code.

That didn't help for me.


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - wenter - 2012-11-29

I have XBMC v12 and youtube add-on v3.3.0. "Search" function does not work. It was showing some previous results but after I deleted them it shows empty folder. No keyboard windows pop-up to enter search word. I have tried removing and reinstalling add-on, but no luck. There was no add-on related error in the debug log. I have tried the line 769 fix, but no luck. Is there a fix for the "Search"?


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - SimonTesla - 2012-11-29

(2012-11-28, 05:13)latebris Wrote: I'm on version 3.3.0 and I'm unable to login. It tells me "Login Failed: Unknown Error" - I am using two-factor authentication, and I suspect that might be the reason. It newer prompts me for the authentication code, and will not let me use an application-specific password.

I have the same problem on an account with 2 factor auth. The debug log shows the following after making the request with the username/password in it:
Code:
21:01:11 T:14820  NOTICE: [YouTube-3.3.0] _fetchPage : 'connecting to server... https://accounts.google.com/ServiceLoginAuth'
21:01:12 T:14820  NOTICE: [YouTube-3.3.0] _fetchPage : 'done'
21:01:12 T:14820  NOTICE: [YouTube-3.3.0] _httpLogin : 'Captcha needs to be filled'
21:01:12 T:19640  NOTICE: Thread XBPyThread start, auto delete: false
21:01:12 T:19640  NOTICE: -->Python Interpreter Initialized<--
21:01:12 T:19640  NOTICE: YouTube-3.3.0 ARGV: ['plugin://plugin.video.youtube/', '1', '']
21:01:12 T:19640  NOTICE: [StorageClient-1.3.0] __init__ : 'Setting table to : YouTube'
21:01:12 T:19640  NOTICE: CommonFunctions-1.3.0
21:01:12 T:19640  NOTICE: [YouTube-3.3.0] __init__ : ''
21:01:12 T:19640  NOTICE: [StorageClient-1.3.0] __init__ : 'Setting table to : Downloader'
21:01:12 T:19640  NOTICE: [YouTube-3.3.0] __init__ : 'Done'
21:01:12 T:3812  NOTICE: Thread Background Loader start, auto delete: false
21:01:12 T:13960   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.youtube/?action=settings&path=%2froot%2flogin
21:01:12 T:13960   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.youtube/?action=settings&path=%2froot%2flogin) failed
21:01:12 T:12732  NOTICE: Thread XBPyThread start, auto delete: false
21:01:12 T:12732  NOTICE: -->Python Interpreter Initialized<--
21:01:12 T:12732  NOTICE: YouTube-3.3.0 ARGV: ['plugin://plugin.video.youtube/', '0', '']
21:01:13 T:12732  NOTICE: [StorageClient-1.3.0] __init__ : 'Setting table to : YouTube'
21:01:13 T:12732  NOTICE: CommonFunctions-1.3.0
21:01:13 T:12732  NOTICE: [YouTube-3.3.0] __init__ : ''
21:01:13 T:12732  NOTICE: [StorageClient-1.3.0] __init__ : 'Setting table to : Downloader'
21:01:13 T:12732  NOTICE: [YouTube-3.3.0] __init__ : 'Done'
21:01:13 T:18980  NOTICE: Thread Background Loader start, auto delete: false

A test account I set up without 2 factor auth logs in without a problem.

BTW, I notice that the debug logs include the plaintext password and login info, which have shown up in a number of the logs I've seen posted by people reporting similar issues while I researched this bug. I think the developers should probably rethink that approach if they want people to post complete logs.


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - HenrikDK - 2012-12-01

(2012-11-29, 07:03)SimonTesla Wrote: BTW, I notice that the debug logs include the plaintext password and login info, which have shown up in a number of the logs I've seen posted by people reporting similar issues while I researched this bug. I think the developers should probably rethink that approach if they want people to post complete logs.

Hi, we've tried very hard to remove passwords from the logs of later versions of the plugin, if you find any logs with such passwords in them from version 3.x of the plugin please pm me with the link to examples so we can see where the problem occours.

Code:
21:01:12 T:14820  NOTICE: [YouTube-3.3.0] _httpLogin : 'Captcha needs to be filled'

for people with 2 factor login this seems to be happening lately, theres no way we can defeate 2 factor login so we're considering removing support entirely. We might add application specific passwords instead but that would remove support for scraper based features like playback of 18+ videos and scraping user feeds that are only available on the homepage.

Regards HenrikDK
(2012-11-29, 05:23)wenter Wrote: I have XBMC v12 and youtube add-on v3.3.0. "Search" function does not work. It was showing some previous results but after I deleted them it shows empty folder. No keyboard windows pop-up to enter search word. I have tried removing and reinstalling add-on, but no luck. There was no add-on related error in the debug log. I have tried the line 769 fix, but no luck. Is there a fix for the "Search"?

Hi Frodo IS NOT SUPPORTED YET, team xbmc recently decided to change alot of the api's that our different plugins rely on (downloader is completely broken as an example)
(2012-11-29, 01:22)bitbanger Wrote: Is there any chance to get an option to give thumbs up/down to watched videos?

Short answer: no
Long answer: theres no room on the context menu.


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - HenrikDK - 2012-12-01

(2012-11-27, 22:28)Salabim Wrote: There is 1 problem with the Youtube add-on, for some reason it never shows any video's for this subscription :
https://www.youtube.com/user/Nudelyn (Notice the username is 'Leo Davidson')
... perhaps the space in the username is making the add-on not show any contents ?

Hi, I know youtube is currently changing the way users are named and integrating it with google+, i believe that this new integration is what's causing these problems. I've tried subscribing to the same user, and he doesn't appread in the xml feed provided by the youtube V2 api. Youtube recently introduced version 3 of their API which *might* fix some of these problems, but we're taking a wait and see approach before converting the plugin over to the new API.


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - HenrikDK - 2012-12-01

(2012-11-21, 04:39)okie Wrote: Hi,

I rum Eden and have version 3.3.0 plugin and when I try to play a playlist I get a youtube script error message ( below is from log file)
Any ideas??


Code:
20:19:08 T:5996   DEBUG: Python thread: start processing
20:19:08 T:5996  NOTICE: -->Python Interpreter Initialized<--
20:19:08 T:5996   DEBUG: XBPyThread::Process - The source file to load is C:\Users\deppeler\AppData\Roaming\XBMC\addons\plugin.video.youtube\default.py
20:19:08 T:5996   DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\deppeler\AppData\Roaming\XBMC\addons\plugin.video.youtube;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.cryptopy\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.demjson\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;C:\Program Files (x86)\XBMC\addons\script.module.pil\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.common.plugin.cache\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.simple.downloader\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.free.cable.database\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.coveapi\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.buggalo\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.mechanize\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.parsedom\lib;C:\Users\deppeler\AppData\Roaming\XBMC\addons\script.module.elementtree\lib;C:\Program Files (x86)\XBMC\addons\script.module.pysqlite\lib;C:\Program Files (x86)\XBMC\system\python\DLLs;C:\Program Files (x86)\XBMC\system\python\Lib;C:\Program Files (x86)\XBMC\python26.zip;C:\Program Files (x86)\XBMC\system\python\lib\plat-win;C:\Program Files (x86)\XBMC\system\python\lib\lib-tk;C:\Program Files (x86)\XBMC;C:\Program Files (x86)\XBMC\system\python;C:\Program Files (x86)\XBMC\system\python\lib\site-packages;
20:19:08 T:5996   DEBUG: XBPyThread::Process - Entering source directory C:\Users\deppeler\AppData\Roaming\XBMC\addons\plugin.video.youtube
20:19:08 T:5996   DEBUG: Instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 2.0 of the xbmc.python api
20:19:08 T:5996  NOTICE: YouTube-3.3.0
20:19:08 T:5996  NOTICE: CommonFunctions-1.3.0
20:19:09 T:5996    INFO: -->Python script returned the following error<--
20:19:09 T:5996   ERROR: Error Type: <type 'exceptions.TypeError'>
20:19:09 T:5996   ERROR: Error Contents: an integer is required
20:19:09 T:5996   ERROR: Traceback (most recent call last):
                                              File "C:\Users\deppeler\AppData\Roaming\XBMC\addons\plugin.video.youtube\default.py", line 110, in <module>
                                                navigation.executeAction(params)
                                              File "C:\Users\deppeler\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubeNavigation.py", line 156, in executeAction
                                                self.playlist.playAll(params)
                                              File "C:\Users\deppeler\AppData\Roaming\XBMC\addons\plugin.video.youtube\YouTubePlaylistControl.py", line 91, in playAll
                                                listitem = self.xbmcgui.ListItem(label=video("Title"), iconImage=video("thumbnail"), thumbnailImage=video("thumbnail"))
                                            TypeError: an integer is required
20:19:09 T:5996    INFO: -->End of Python script error report<--
20:19:09 T:4936   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
20:19:09 T:5996    INFO: Python script stopped

thanks

Hi this seems to be an intermittent issue, im unsure of why this is happening, but i am investigating..



RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - dugan26 - 2012-12-02

Greetings -

I have a problem - just started - ive read through many many posts but cant determine if my problem is part of an old post or if it has been fixed and it shoud work etc ...

Problem: enter youtube (all good)- when i play video from playlist (all good) - if i hit the C menu and do a play from here - i get script error ?

I just want to be able to play youtube videos in order ... without having to press play after every video - individual videos play fine

many thanks in advance ../

the dugan-


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - JimboJumbo - 2012-12-02


getting an error message when trying to shuffle and play a play list

http://pastebin.com/a8mtmWfz

Playing individual videos work fine.

Any ideas..



RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - debennett2 - 2012-12-03

I'm not sure how to figure this one out. Started happening at the same point when I put a new SSD drive in the system AND the same time beta 1 came out (been using nightlies every few days forever anyhow)

Youtube video from the app and from others like Reddit, bestofyoutube, etc all have the "loading" dialog for a full 10 seconds before they attempt to play. Consistent across the board with this. Other streaming works just fine (Hulu plugin, Revision 3, Twit, etc).

That is by far the most annoying this. Second comes the inability to search which I am gathering is still broke?

Thanks for any guidance!


RE: [RELEASE] YouTube (Video) Plugin - De facto default standard YouTube Addon for XBMC - Cyberyaga - 2012-12-04

I just made my new HTPC with XBMCbuntu with Frodo Beta 1. Everything was fine until this afternoon when I upgraded to Beta 2 :-\

This sucks.