2015-11-12, 16:28
I work on some plugin that shows videos from youtube playlist.
I am using youtube API.
I am collecting info from youtube (title, videoId, thumbnail url, description) from all videos from playlist.
ListItems are created:
Now I am trying to set video description to list item by uncommenting lines
after that the description is set (and I can see it when switch view to mediaInfo), but the log file is filled with warnings and errors:
what should I do?
are this warnings/errors dangerous or harmless?
Is there some other way to set descriptions to youtube video items?
any idea?
I am using youtube API.
I am collecting info from youtube (title, videoId, thumbnail url, description) from all videos from playlist.
ListItems are created:
Code:
url = youtube_url(item.yt_id)
li = xbmcgui.ListItem(item.title, iconImage=item.thumb)
li.setProperty('isplayable', 'true')
li.setProperty('fanart_image', fanart)
#infoLabels = { 'title': item.title, 'plot' : item.description}
#li.setInfo( type="video", infoLabels=infoLabels)
xbmcplugin.addDirectoryItem(handle=addon_handle, url=url, listitem=li, isFolder=False)
Now I am trying to set video description to list item by uncommenting lines
Code:
infoLabels = { 'title': item.title, 'plot' : item.description }
li.setInfo( type="video", infoLabels=infoLabels)
after that the description is set (and I can see it when switch view to mediaInfo), but the log file is filled with warnings and errors:
Code:
18:06:46 T:140231709697792 NOTICE: Thread BackgroundLoader start, auto delete: false
18:06:46 T:140232471934720 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.youtube/play/?video_id=bG30_nEl1Wc
18:06:46 T:140232471934720 ERROR: InputStream: Error opening, plugin://plugin.video.youtube/play/?video_id=bG30_nEl1Wc
18:06:46 T:140232480327424 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.youtube/play/?video_id=NgeldQSW4Ng
18:06:46 T:140232480327424 ERROR: InputStream: Error opening, plugin://plugin.video.youtube/play/?video_id=NgeldQSW4Ng
18:06:46 T:140232480327424 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.youtube/play/?video_id=p4J_TPRexqI
18:06:46 T:140232480327424 ERROR: InputStream: Error opening, plugin://plugin.video.youtube/play/?video_id=p4J_TPRexqI
18:06:46 T:140232471934720 WARNING: CreateLoader - unsupported protocol(plugin) in plugin://plugin.video.youtube/play/?video_id=HNaXdswmgMw
18:06:46 T:140232471934720 ERROR: InputStream: Error opening, plugin://plugin.video.youtube/play/?video_id=HNaXdswmgMw
what should I do?
are this warnings/errors dangerous or harmless?
Is there some other way to set descriptions to youtube video items?
any idea?