-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks. Is it possible to put multiple channels in the addon or only 1? #1
Comments
I am sure its possible yes, but I don't know how. It will work with any single channel out of the box though. |
Hi, I am the original coder of this "method" and can give some tips. Yes it is possible to put as many channels as desired. Here is code for X Factor International. This is a good working example because youtube uses both "user" and "channel" IDs. My code shows how to implement either situation. Anyway enjoy! -- coding: utf-8 --#------------------------------------------------------------ The X Factor International#------------------------------------------------------------ License: GPL (http://www.gnu.org/licenses/gpl-3.0.html)Based on code from youtube addon#------------------------------------------------------------ import os addonID = 'plugin.video.XFactorInternational' YOUTUBE_CHANNEL_ID1 = "UCex1kBiVgk1EEsf0Fi4D8HA" Entry pointdef run():
Main menudef main_list(params):
run() |
Very nice and easy to understand too! Thanks |
There is also the capability to implement a "fixed" search and displaying a playlist from a users youtube channel. I use that technique in my BestofNHK addon. The "fixed" search could easily be adopted to accept user input for any search parameter. Different thumbnail icons can be used by simply replacing "icon" with a url to a jpeg or png image as well. Here's a quick example of "fixed" search:
And here's a playlist example:
|
Hi, do you know if you can you link directly to a video off youtube rather than just the channel? Many thanks |
Yes you can link directly to a video. As you can see in the example, thumbnail pointing to jpg for icon and fanart pointing to bigger jpg for background image. Most important is to be sure parameter 'folder=False', if by mistake you set 'folder=True', then when you click the video link in kodi gui, the video will not play, instead you get a new blank menu page. Here's example 1 code:
example 2 code: Here I separate the youtube video id and assign it to v_id_1 variable. Both ways will work.
|
Brilliant. Thanks for replying |
Hi, me again! Do you know how to create submenus within the addon and then display different youtube links in each submenu? If that is at all possible. Many thanks |
Hi M8, Pls help im having error "Accessed not configured YouTube data API has not ........ |
Hi misty. love your work!!!!!!!!!!!!!!! What if the url contained "channel or playlist" but at the end would have "/videos"... something like... https://www.youtube.com/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ/videos Is it possible to link to content on a page like that? |
Misty same question for your Feb.27 comment. Thanks for being a great teacher!!! |
Is there away of putting given users or channels into different directories or groups. like say astronomy, biology? |
Hi, I follow all the steps and it works with 1 channel. When I do it with multiple channels I always get error Kodi 17 Krypton Any ideas ? |
Hey, first of all, thanks for all the great answers. One question I have and not sure how it could be done. I see that the "icon" is either, the same of the AddOn, or a hardcoded URL. Is there a way to grab it actumatically from the YouTube channel itself? |
Thanks. Is it possible to put multiple channels in the addon or only 1?
The text was updated successfully, but these errors were encountered: