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