My 30 Add-on API wishes - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9) +--- Thread: My 30 Add-on API wishes (/showthread.php?tid=154805) |
RE: My 30 Add-on API wishes - sphere - 2013-02-06 (2013-02-06, 19:29)da-anda Wrote: argh, tried to split your post, but it only would create a new topic. All I could do is to increase the max post length to fix it Works, thanks! RE: My 30 Add-on API wishes - zag - 2013-02-06 Some great suggestions here. In terms of 7.1 Wiki Documentation we are looking for some people to write: - An example video streaming plugin - An example audio streaming add-on - An example game plugin (tic-tac-toe or something like that) There is already a hello world article here. http://wiki.xbmc.org/index.php?title=HOW-TO:HelloWorld_addon RE: My 30 Add-on API wishes - leechguy - 2013-02-07 Please allow me to add two of my personal frustrations 5.15 Allow filling in setting defaults using a callback function For example the labelenum values in the settings.xml file are now hardcoded. It would be great if the possible values of the labelenum could be set during runtime using a callback function. 5.16 Service addons that start on XBMC startup should read settings from the Master User profile When using multiple profiles and not using the login screen, the user that was logged in during the last session will login. As such, the service addon that starts at startup (start="startup" in addon.xml) will read its settings from that user profile. This means that a service addon which runs at startup must be configured the same for all user profiles or the behaviour of the service is unknown. If such a service would always use the settings from the Master User profile the service addon would always use the correct settings. 5.16 I find especially annoying because it requires a lot of code to work arround this issue. RE: My 30 Add-on API wishes - pieh - 2013-02-11 (2013-02-05, 18:23)sphere Wrote: 2.1 always included skin graphicsI wouldn't force skins to include these graphics but rather make it suggestion. If skin wouldn't have such images we would fallback to graphics provided by plugin (we would need to add some mechanism to do it this way). This would be short term, long term I would like to add nice pagination handling in xbmc gui (maybe something like infinite scroll, so we stay in same list and items are being appended on demand) and same with search (so user could use global search that would search local library and addons that support searches and show results from different sources in same list) (2013-02-05, 18:23)sphere Wrote: 2.2 View-IDsWe have <viewtype> that specify how given view look like (from wiki: "The type of view. Choices are list, icon, wide, wrap, biglist, bigicon, bigwide, bigwrap, info and biginfo."). I think this could be used by plugins to state what viewtype is prefered, "thumbnail" would be "icon" viewtype I guess. (2013-02-05, 18:23)sphere Wrote: 2.3 Big Text Dialog/WindowI think we should try to make standard Ok-Dialog auto-sizable instead to avoid adding yet another dialog that need maintaining (2013-02-05, 18:23)sphere Wrote: 2.4 Skin defined fonts and font sizes (thanks to bossanova808)Something like this is obviously needed, WindowXML has great potential but because of lack of some standards it usually looks awful on non-confluence skins. I think that we need more than just font sizes here - at very least we need to describe what font styles (font family + font size + font weight/italics + upper/lower case + color) are used for in skin - some dialog headings might use same font size as button labels but mixing it will still make WindowXML look not as nice as it could. RE: My 30 Add-on API wishes - sphere - 2013-02-11 (2013-02-11, 17:43)pieh Wrote:Regarding images:(2013-02-05, 18:23)sphere Wrote: 2.1 always included skin graphicsI wouldn't force skins to include these graphics but rather make it suggestion. If skin wouldn't have such images we would fallback to graphics provided by plugin (we would need to add some mechanism to do it this way). This would be short term, long term I would like to add nice pagination handling in xbmc gui (maybe something like infinite scroll, so we stay in same list and items are being appended on demand) and same with search (so user could use global search that would search local library and addons that support searches and show results from different sources in same list) I also don't thing that forcing is needed, but the skin authors need to be informed about such a convention. I bet every skin author is interested in having plugin's look more unified to his skin. Regarding Pagination: Pagination mechanism included in the add-ons api would be great, but this is def. long term and needs most plugins/plugin frameworks changed. (2013-02-11, 17:43)pieh Wrote:Sounds good Then only a method (and any kind of priorizing cause some skins provide multiple views for one view-type) is needed to get these IDs readable by add-ons.(2013-02-05, 18:23)sphere Wrote: 2.2 View-IDsWe have <viewtype> that specify how given view look like (from wiki: "The type of view. Choices are list, icon, wide, wrap, biglist, bigicon, bigwide, bigwrap, info and biginfo."). I think this could be used by plugins to state what viewtype is prefered, "thumbnail" would be "icon" viewtype I guess. (2013-02-11, 17:43)pieh Wrote:auto-sizing sounds good but the ok-dialog needs three lines in the api. So we have to choices: 1. change the ok-dialog in gui and code (to accept one multiline-text argument) or 2. keep the ok-dialog in code and gui but add another dynamic sized (with auto close please) dialog.(2013-02-05, 18:23)sphere Wrote: 2.3 Big Text Dialog/WindowI think we should try to make standard Ok-Dialog auto-sizable instead to avoid adding yet another dialog that need maintaining May I pin your name next to some topics? *g* RE: My 30 Add-on API wishes - hippojay - 2013-02-12 Nice list - a lot of cross over with my own personal 'want' list. RE: My 30 Add-on API wishes - pieh - 2013-02-12 (2013-02-11, 18:42)sphere Wrote:Ok, this can be taken to Skin Development forum and presented to skinners to comment on. I'm not sure if we already can say "try in skin's graphics and fallback to graphics provided by plugin" - this might be possible with thumb / icon stuff (I'm always a little confused about that ). If not possible, I will see what's needed to do it.(2013-02-11, 17:43)pieh Wrote:Regarding images:(2013-02-05, 18:23)sphere Wrote: 2.1 always included skin graphicsI wouldn't force skins to include these graphics but rather make it suggestion. If skin wouldn't have such images we would fallback to graphics provided by plugin (we would need to add some mechanism to do it this way). This would be short term, long term I would like to add nice pagination handling in xbmc gui (maybe something like infinite scroll, so we stay in same list and items are being appended on demand) and same with search (so user could use global search that would search local library and addons that support searches and show results from different sources in same list) (2013-02-11, 18:42)sphere Wrote:I'll look into it. I'm thinking xbmcplugin.xbmcplugin.endOfDirectory(success=True, view_priority=['bigicon', 'icon', 'info']) (not all skins might include most desired viewtype, so we could define fallbacks and if none of defined views are there we just fallback to default list view). There might be one glitch: if we change from default view to something else we save it in ViewModesX.db database - so plugins that used workaround to pick thumbnail view will have already defined view id for given path - this means that this would have no effect (as we will want to use view that user defined and not one that is defined by plugin). We could clean saved views for plugins but I don't like this as it would remove view preferences of users(2013-02-11, 17:43)pieh Wrote:Sounds good Then only a method (and any kind of priorizing cause some skins provide multiple views for one view-type) is needed to get these IDs readable by add-ons.(2013-02-05, 18:23)sphere Wrote: 2.2 View-IDsWe have <viewtype> that specify how given view look like (from wiki: "The type of view. Choices are list, icon, wide, wrap, biglist, bigicon, bigwide, bigwrap, info and biginfo."). I think this could be used by plugins to state what viewtype is prefered, "thumbnail" would be "icon" viewtype I guess. (2013-02-11, 18:42)sphere Wrote:I'm thinking that we could replace 3 labels with textbox control (skinning wise), leave current api methods to not break addons (we would just concatenate those 3 lines and put it in textbox) and add new api method that would take single text block. Autoclose could be added as optional named param to existing ok-dialog.(2013-02-11, 17:43)pieh Wrote:auto-sizing sounds good but the ok-dialog needs three lines in the api. So we have to choices: 1. change the ok-dialog in gui and code (to accept one multiline-text argument) or 2. keep the ok-dialog in code and gui but add another dynamic sized (with auto close please) dialog.(2013-02-05, 18:23)sphere Wrote: 2.3 Big Text Dialog/WindowI think we should try to make standard Ok-Dialog auto-sizable instead to avoid adding yet another dialog that need maintaining (2013-02-11, 18:42)sphere Wrote: May I pin your name next to some topics? *g*Sure, but I'd prefer seperate trac tickets RE: My 30 Add-on API wishes - jmarshall - 2013-02-12 Regarding viewtypes, none of XBMC's filesystem layers require this, so I'd question whether it is the best method to apply for VFS add-ons. ATM all switching is generally done by the skin based on content type. It might be better to make the content type more fine-grained would be a good way to deal with this (e.g. content type should probably be a set of content types that apply). If we need a way to specify views specifically, then it could be done with something like video|art.wide|info or some such. RE: My 30 Add-on API wishes - sphere - 2013-02-21 So jmarshall, you questioned whether it would be the best method. Any decisions already made? Personally I don't mind the solution in detail, I only wrote down the imo easiest solution - I would be happy with both of that RE: My 30 Add-on API wishes - Nuka1195 - 2013-03-17 I have a patch for 5.4 background progress dialog. RE: My 30 Add-on API wishes - Martijn - 2013-03-17 (2013-03-17, 15:16)Nuka1195 Wrote: I have a patch for 5.4 background progress dialog.Does it use an existing skin xml file because we don't want to add new ones. RE: My 30 Add-on API wishes - Nuka1195 - 2013-03-17 It adds the ability to call the same dialog the cd ripper and library scanner uses. It's a a very simple/small patch While I have your attention why don't you open my pr's you closed on git. I also need those. dialog.h diff PHP Code: diff --git "a/C:\\DOCUME~1\\NukaBolt\\LOCALS~1\\Temp\\TortoiseGit\\Dia44.tmp\\Dialog-8f3fecd-left.h" "b/D:\\Development\\source\\XBMC\\xbmc\\interfaces\\legacy\\Dialog.h" dialog.cpp diff PHP Code: diff --git "a/C:\\DOCUME~1\\NukaBolt\\LOCALS~1\\Temp\\TortoiseGit\\Dia31.tmp\\Dialog-8f3fecd-left.cpp" "b/D:\\Development\\source\\XBMC\\xbmc\\interfaces\\legacy\\Dialog.cpp" shortly. 5.4 https://github.com/xbmc/xbmc/pull/2462 martijin, you have pm disabled, so: https://github.com/xbmc/xbmc/pulls/nuka1195?direction=desc&page=1&sort=created&state=closed RE: My 30 Add-on API wishes - sphere - 2013-03-17 Nice - exactly what I meant in 5.4. I see no GitHub PR for this, will you open one? RE: My 30 Add-on API wishes - Nuka1195 - 2013-03-18 <supportsearch> in addon.xml, or a parameter passed in xbmcplugin.endOfDirectory, then when selecting the search button, it would call your script with a search parameter provided, by the addon. same with actor, when in video info dialog and press actor, it calls your addon with a search parameter, i think there is a way for xbmc to tell if the current listing is from a plugin. RE: My 30 Add-on API wishes - sphere - 2013-04-01 Since 5.4 got merged (https://github.com/xbmc/xbmc/pull/2484) (thanks Nukka) maybe we can delete the other 7 redundant replies now? |