![]() |
Win Creating your first Youtube Add-on - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Tips, tricks, and step by step guides (https://forum.kodi.tv/forumdisplay.php?fid=110) +--- Thread: Win Creating your first Youtube Add-on (/showthread.php?tid=254207) |
RE: Creating your first Youtube Add-on - zag - 2016-02-08 No this only works for a single youtube channel ID RE: Creating your first Youtube Add-on - liquidgee - 2016-02-08 (2016-02-08, 22:12)zag Wrote: No this only works for a single youtube channel ID Is there a way to setup a per link add-on? RE: Creating your first Youtube Add-on - andrewmo - 2016-02-14 This is excellent, thank you! RE: Creating your first Youtube Add-on - tshark2 - 2016-02-15 This is really helpful, thanks! RE: Creating your first Youtube Add-on - abbodj - 2016-02-17 Is there any way to link to a playlist rather than a channel? RE: Creating your first Youtube Add-on - speedwell68 - 2016-02-17 Will this only work on Windows PCs? I have tried it on Ubuntu 14.04 and am getting no joy? RE: Creating your first Youtube Add-on - RPico - 2016-02-25 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? RE: Creating your first Youtube Add-on - misty01 - 2016-02-27 (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. 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: plugintools.add_item( example 2 code: Here I separate the youtube video id and assign it to v_id_1 variable. Both ways will work. Code: v_id_1 = "GWpVTGnr_hA" RE: Creating your first Youtube Add-on - misty01 - 2016-02-27 (2016-02-17, 12:36)abbodj Wrote: Is there any way to link to a playlist rather than a channel? Yes, you can link to a playlist. Example 1: Code: plugintools.add_item( Example 2: Same as above except playlist id is assigned to pl_id_1 variable. Both have the same result. Code: pl_id_1 = "PLykzf464sU9-aOpnO-5cvGNU_p-lVjIv-" RE: Creating your first Youtube Add-on - misty01 - 2016-02-27 (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? Coding in python so will work across all platforms that kodi runs on. I would guess you have indenting errors in your code. Other minor coding mistakes like missing a comma " , " for instance can cause problems too. Best is to review the code from a known good working addon and emulate it. Don't give up, it's probably something minor and you'll kick yourself once you find it. (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? All youtube based addons using this code method will work properly if the youtube addon has the working api keys put in the proper places. I read comments in the main youtube thread that user ids no longer work, change to channel ids. That is not true. If working api keys (in youtube addon) are installed properly, then user id, channel id, playlist id and video id will work with this method. RE: Creating your first Youtube Add-on - Don_black00 - 2016-03-07 @misty01, @zag the addon says fail to install after I zipped it up. can you please look at the file and see what I did wrong. https://dl.dropboxusercontent.com/u/3542596/Addons/plugin.video.BattleRapZone-master.zip RE: Creating your first Youtube Add-on - misty01 - 2016-03-07 Just downloaded and took a quick look at the add-on structure, did not run it. You must be on Mac OS because there is a .DS_Store file in the add-on folder. This will prevent the add-on from installing from zip. Use CleanArchiver to auto-remove .DS_Store and Mac resource forks while it zips your add-on. Use normal zip, not any of the other zip methods offered by CleanArchiver. Edit: Ok, I loaded your add-on, but you have some issues. Code: Just a small part of your code. You are assigning value 'theUrltv' to variable 'YOUTUBE_CHANNEL_ID1', but later you don't call the variable. Also you use quotes where it causes a problem. Working example 1: Code: YOUTUBE_CHANNEL_ID1 = "theUrltv" Working example 2: Code: YOUTUBE_CHANNEL_ID1 = "theUrltv" #<< this line not needed if coded like below Hope that helps. RE: Creating your first Youtube Add-on - Don_black00 - 2016-03-11 @misty01, I cleaned it up and it installed but I get api error saying it is not enabled. How do I fix that issue. RE: Creating your first Youtube Add-on - zag - 2016-03-11 That may have something to do with the youtube add-on being broken currently with API key needing to be replaced. Check the other thread for the fix. http://forum.kodi.tv/showthread.php?tid=200735&page=243 RE: Creating your first Youtube Add-on - Don_black00 - 2016-03-13 Thanks, @zag, @ Misty01 now that I have that working. How can I create a custom view so that it defaults to thumbnail view. In addition, how can I do custom search in the channel for particular video(s). In addition can I also create a private channel and have people view it with the code I give them. |