2016-02-08, 22:12
No this only works for a single youtube channel ID
(2016-02-08, 18:58)liquidgee Wrote:(2015-12-30, 14:59)zag Wrote: Here is a quick guide on creating an add-on that can browse any specific Youtube channel. It uses the plugin tools module from Jesús, so thanks to him its very easy.
I wanted to create a specific youtube channel Add-on as I browse a it regularly and wanted a quick way to get to those with minimum fuss.
I just copied an existing add-on I found, so please feel free to comment on the code or way of doing things. I'm always looking to improve.
Im trying to create an add-on using different YouTube links but not a whole channel. Will the individual link to certain video work the same way?
plugintools.add_item(
#action="",
title="Wheel of Musical Impressions with Demi Lovato",
url="plugin://plugin.video.youtube/play/?video_id=GWpVTGnr_hA",
thumbnail="https://i.ytimg.com/vi/GWpVTGnr_hA/mqdefault.jpg",
fanart="https://i.ytimg.com/vi/GWpVTGnr_hA/hqdefault.jpg",
folder=False )
v_id_1 = "GWpVTGnr_hA"
plugintools.add_item(
#action="",
title="Wheel of Musical Impressions with Demi Lovato",
url="plugin://plugin.video.youtube/play/?video_id=%s" % v_id_1,
thumbnail="https://i.ytimg.com/vi/GWpVTGnr_hA/mqdefault.jpg",
fanart="https://i.ytimg.com/vi/GWpVTGnr_hA/hqdefault.jpg",
folder=False )
(2016-02-17, 12:36)abbodj Wrote: Is there any way to link to a playlist rather than a channel?
plugintools.add_item(
#action="",
title="Best of Fallon",
url="plugin://plugin.video.youtube/playlist/PLykzf464sU9-aOpnO-5cvGNU_p-lVjIv-/",
thumbnail="https://yt3.ggpht.com/-x3CU1CXklQI/AAAAAAAAAAI/AAAAAAAAAAA/jPQ9GJeU53g/s100-c-k-no/photo.jpg",
folder=True )
pl_id_1 = "PLykzf464sU9-aOpnO-5cvGNU_p-lVjIv-"
plugintools.add_item(
#action="",
title="Best of Fallon",
url="plugin://plugin.video.youtube/playlist/%s/" % pl_id_1,
thumbnail="https://yt3.ggpht.com/-x3CU1CXklQI/AAAAAAAAAAI/AAAAAAAAAAA/jPQ9GJeU53g/s100-c-k-no/photo.jpg",
folder=True )
(2016-02-17, 21:25)speedwell68 Wrote: Will this only work on Windows PCs? I have tried it on Ubuntu 14.04 and am getting no joy?
(2016-02-25, 22:04)RPico Wrote: Current Youtube API troubles are causing the familliar "Project marked for deletion error". I notice that some addons are functioning under the latest upgrade (5.1.17), and some aren't. Does something need to be changed at the addon level to eliminate the error?
Just a small part of your code.
YOUTUBE_CHANNEL_ID1 = "theUrltv"
.
.
.
.
plugintools.add_item(
#action="",
title="Urban Rap League TV",
url="plugin://plugin.video.youtube/user/"theUrltv"/",
thumbnail="https://www.dropbox.com/home/Public/Plugin%20icons?preview=URLTV.jpg",
folder=True )
YOUTUBE_CHANNEL_ID1 = "theUrltv"
.
.
.
.
plugintools.add_item(
#action="",
title="Urban Rap League TV",
url="plugin://plugin.video.youtube/user/"+YOUTUBE_CHANNEL_ID1+"/",
thumbnail="https://www.dropbox.com/home/Public/Plugin%20icons?preview=URLTV.jpg",
folder=True )
OR
plugintools.add_item(
#action="",
title="Urban Rap League TV",
url="plugin://plugin.video.youtube/user/%s/" % YOUTUBE_CHANNEL_ID1,
thumbnail="https://www.dropbox.com/home/Public/Plugin%20icons?preview=URLTV.jpg",
folder=True )
YOUTUBE_CHANNEL_ID1 = "theUrltv" #<< this line not needed if coded like below
.
.
.
.
plugintools.add_item(
#action="",
title="Urban Rap League TV",
url="plugin://plugin.video.youtube/user/theUrltv/",
thumbnail="https://www.dropbox.com/home/Public/Plugin%20icons?preview=URLTV.jpg",
folder=True )