My 30 Add-on API wishes
#83
Hi,

I already know workarounds for most of my wishes, but they are still just workarounds Wink
Other than that,
thank you for your ideas! Smile

(2014-01-13, 18:14)Bstrdsmkr Wrote: 1.2 Could be accomplished with an addon that runs a proxy service. Some work is already being done on this front to implement multi-threaded connections
Interesting. I also thought about such a solution but ran into (for me) unsolvable problems. Do you have more details?

(2014-01-13, 18:14)Bstrdsmkr Wrote: 1.3 Maybe also doable via a proxy addon
Same like above.

(2014-01-13, 18:14)Bstrdsmkr Wrote: 2.3 I currently display the skin's text viewer dialog and set the text control's content to the changelog. I check version numbers in my main menu and if an upgrade has occured, I pop this window.
Yes I also do. But IMO this isn't optimal. Goal should be that only the relevant part of the changelog should be shown. Best would also if this "show changelog since last update"-setting should be configurable globally for all users. It should work similar like the App-Stores do.

(2014-01-13, 18:14)Bstrdsmkr Wrote: 4.4 My 2.3 workaround also accomplishes this
Of course your workaround works, but a generic integrated magically for all add-ons working solution should be preferred. See above Smile

(2014-01-13, 18:14)Bstrdsmkr Wrote: 5.7 I think this can be done with the AlarmClock builtin. Use the RunScript builtin as the command parameter, and set the next alarm within your script
This is an good enough workaround. I think about deleting this wish (or mark as done). There aren't very much usecases too.

(2014-01-13, 18:14)Bstrdsmkr Wrote: 5.9 This has been implemented through the URLResolver addon. Give it a list of pages and it gives you back a playable links
Is this add-on still maintened and in the official repository? Last time I checked, it was kind of outdated. An integrated solution should also be prefered here.
Also, the resolver parts could be splitted into seperate add-on this way. ATM a similar behavior still takes place when XBMC tries to open an unknown plugin-path, example: If plugin A adds a listitem with a path pointing to url like "plugin://B" (plugin B) and this plugin is available via any local installed repository XBMC asks "This requires add-on B, do you want to install?".

Have a look how Plex is it doing.

(2014-01-13, 18:14)Bstrdsmkr Wrote: 5.13 Wrap the main execution block in a try/except block. On exception, display the skin's text viewer and set it's content to traceback.print_exc()
Yes, this will work. And I also do something similar. But 99% of other add-ons show implicit "Script error in default.py" which isn't very helpful. If this message would be something like "default.py:35 KeyError: There is no 'param' in video" it would make the life of add-on developers more easy Wink
Also, this dialog shouldn't be a notification IMO, it should be an OK-Dialog (with a timeout).

(2014-01-13, 18:14)Bstrdsmkr Wrote: 7.1 Zag is working on cleaning up the dev wiki based on this thread: http://forum.xbmc.org/showthread.php?tid=179624
Yes, there was much done recently. This can be marked as solved shortly Smile

(2014-01-13, 18:14)Bstrdsmkr Wrote: Request for additions:
1. Ability to set addon settings based on the return value of a script, from within the settings dialog
This time I can tell you a workaround Smile
You can use a setting of type "action" to run your own add-on with given params to e.g. show a dynamic filled Dialog().select(). When this got closed you can store whatever you want in this setting's value.
See e.g. here:
Settings: https://github.com/dersphere/JamBMC/blob...gs.xml#L26
Add-on: https://github.com/dersphere/JamBMC/blob...on.py#L471

(2014-01-13, 18:14)Bstrdsmkr Wrote: 2. A small optimization: xbmc.executeJSONRPC() to accept a dict instead of just a str. The idea is that the method would convert the dict in C instead of Python. Could speed things up on things like the RPi when there are a large amount of JSONRPC transactions
Good idea, I will add it with an addition: It should accept _and return_ python native objects (dicts) because the response will be more expensive to parse than the request.
My GitHub. My Add-ons:
Image
Reply


Messages In This Thread
My 30 Add-on API wishes - by sphere - 2013-02-05, 18:23
RE: My 30 Add-on API wishes - by Martijn - 2013-02-05, 19:16
RE: My 30 Add-on API wishes - by MassIV - 2013-02-05, 19:28
RE: My 30 Add-on API wishes - by bossanova808 - 2013-02-06, 02:33
RE: My 30 Add-on API wishes - by sphere - 2013-02-06, 10:07
RE: My 30 Add-on API wishes - by marv_el - 2013-02-06, 09:47
RE: My 30 Add-on API wishes - by Martijn - 2013-02-06, 10:03
RE: My 30 Add-on API wishes - by takoi - 2013-02-06, 10:43
RE: My 30 Add-on API wishes - by takoi - 2013-02-06, 12:40
Odp: My 30 Add-on API wishes - by Marx1 - 2013-02-06, 14:37
RE: My 30 Add-on API wishes - by Memphiz - 2013-02-06, 14:45
RE: My 30 Add-on API wishes - by sphere - 2013-02-06, 16:26
RE: My 30 Add-on API wishes - by da-anda - 2013-02-06, 19:29
RE: My 30 Add-on API wishes - by sphere - 2013-02-06, 21:29
Odp: My 30 Add-on API wishes - by Marx1 - 2013-02-06, 19:43
RE: My 30 Add-on API wishes - by zag - 2013-02-06, 23:28
RE: My 30 Add-on API wishes - by hippojay - 2013-02-12, 00:30
RE: My 30 Add-on API wishes - by leechguy - 2013-02-07, 18:44
RE: My 30 Add-on API wishes - by pieh - 2013-02-11, 17:43
RE: My 30 Add-on API wishes - by sphere - 2013-02-11, 18:42
RE: My 30 Add-on API wishes - by pieh - 2013-02-12, 09:54
RE: My 30 Add-on API wishes - by jmarshall - 2013-02-12, 21:57
RE: My 30 Add-on API wishes - by pieh - 2013-04-06, 09:33
RE: My 30 Add-on API wishes - by sphere - 2013-02-21, 15:42
RE: My 30 Add-on API wishes - by Nuka1195 - 2013-03-17, 15:16
RE: My 30 Add-on API wishes - by Martijn - 2013-03-17, 15:18
RE: My 30 Add-on API wishes - by Nuka1195 - 2013-03-17, 15:31
RE: My 30 Add-on API wishes - by sphere - 2013-03-17, 19:29
RE: My 30 Add-on API wishes - by Nuka1195 - 2013-03-18, 00:14
RE: My 30 Add-on API wishes - by sphere - 2013-04-01, 13:31
RE: My 30 Add-on API wishes - by ruuk - 2013-04-05, 20:06
RE: My 30 Add-on API wishes - by pieh - 2013-04-06, 09:50
RE: My 30 Add-on API wishes - by sphere - 2013-04-06, 09:54
RE: My 30 Add-on API wishes - by pieh - 2013-04-06, 10:21
RE: My 30 Add-on API wishes - by sphere - 2013-04-06, 10:39
RE: My 30 Add-on API wishes - by pieh - 2013-04-06, 11:02
RE: My 30 Add-on API wishes - by Bstrdsmkr - 2013-04-06, 17:29
RE: My 30 Add-on API wishes - by Nuka1195 - 2013-04-06, 23:43
RE: My 30 Add-on API wishes - by pan2 - 2013-04-07, 17:03
RE: My 30 Add-on API wishes - by Martijn - 2013-04-16, 08:30
RE: My 30 Add-on API wishes - by Nuka1195 - 2013-04-16, 18:44
RE: My 30 Add-on API wishes - by Martijn - 2013-04-20, 21:22
RE: My 30 Add-on API wishes - by Bstrdsmkr - 2013-04-21, 00:09
RE: My 30 Add-on API wishes - by jmarshall - 2013-04-21, 07:07
RE: My 30 Add-on API wishes - by sphere - 2013-04-21, 10:33
RE: My 30 Add-on API wishes - by takoi - 2013-04-21, 11:29
RE: My 30 Add-on API wishes - by ruuk - 2013-04-21, 20:49
RE: My 30 Add-on API wishes - by Martijn - 2013-04-21, 20:57
RE: My 30 Add-on API wishes - by Baswazz - 2013-05-05, 10:08
RE: My 30 Add-on API wishes - by sphere - 2013-05-05, 16:04
RE: My 30 Add-on API wishes - by Desvio - 2013-06-14, 23:32
RE: My 30 Add-on API wishes - by EDevil - 2013-07-31, 18:43
RE: My 30 Add-on API wishes - by sphere - 2013-07-31, 21:12
RE: My 30 Add-on API wishes - by sarbes - 2013-08-04, 04:04
RE: My 30 Add-on API wishes - by sphere - 2013-08-04, 12:27
RE: My 30 Add-on API wishes - by sphere - 2013-08-07, 23:46
RE: My 30 Add-on API wishes - by rogerthis - 2013-08-09, 11:44
RE: My 30 Add-on API wishes - by fightnight - 2013-08-10, 11:52
RE: My 30 Add-on API wishes - by Fice - 2013-10-07, 22:54
RE: My 30 Add-on API wishes - by sphere - 2013-10-09, 00:47
RE: My 30 Add-on API wishes - by Roman_V_M - 2013-10-09, 14:56
RE: My 30 Add-on API wishes - by Basje - 2013-11-16, 00:46
RE: My 30 Add-on API wishes - by jmarshall - 2013-11-16, 01:04
RE: My 30 Add-on API wishes - by Basje - 2013-11-16, 19:41
RE: My 30 Add-on API wishes - by jmarshall - 2013-11-17, 04:23
RE: My 30 Add-on API wishes - by Basje - 2013-11-17, 12:52
RE: My 30 Add-on API wishes - by jmarshall - 2013-11-18, 00:46
RE: My 30 Add-on API wishes - by Basje - 2013-11-18, 10:39
RE: My 30 Add-on API wishes - by zag - 2013-11-18, 11:34
RE: My 30 Add-on API wishes - by Basje - 2013-11-19, 00:20
RE: My 30 Add-on API wishes - by jmarshall - 2013-11-19, 01:23
RE: My 30 Add-on API wishes - by Basje - 2013-11-19, 01:25
RE: My 30 Add-on API wishes - by queeup - 2013-12-01, 18:17
Re: RE: My 30 Add-on API wishes - by Basje - 2013-12-02, 01:05
RE: My 30 Add-on API wishes - by sphere - 2013-12-12, 01:52
RE: My 30 Add-on API wishes - by Basje - 2013-12-12, 23:01
RE: My 30 Add-on API wishes - by Basje - 2014-01-13, 12:35
RE: My 30 Add-on API wishes - by sphere - 2014-01-13, 13:46
RE: My 30 Add-on API wishes - by takoi - 2013-12-13, 12:28
RE: My 30 Add-on API wishes - by Bitboy - 2014-01-13, 12:22
RE: My 30 Add-on API wishes - by Bstrdsmkr - 2014-01-13, 18:14
RE: My 30 Add-on API wishes - by sphere - 2014-01-14, 11:26
RE: My 30 Add-on API wishes - by HenrikDK - 2014-01-14, 13:24
RE: My 30 Add-on API wishes - by Bstrdsmkr - 2014-01-14, 15:03
RE: My 30 Add-on API wishes - by Anthirian - 2014-05-09, 12:08
RE: My 30 Add-on API wishes - by robweber - 2014-05-09, 15:28
RE: My 30 Add-on API wishes - by Anthirian - 2014-05-09, 15:31
RE: My 30 Add-on API wishes - by tria - 2014-08-08, 02:12
RE: My 30 Add-on API wishes - by ndxtg - 2014-08-09, 03:49
RE: My 30 Add-on API wishes - by takoi - 2014-08-10, 13:38
RE: My 30 Add-on API wishes - by takoi - 2014-08-18, 17:38
RE: My 30 Add-on API wishes - by uksa007 - 2015-01-06, 02:33
RE: My 30 Add-on API wishes - by sphere - 2014-10-10, 12:24
RE: My 30 Add-on API wishes - by zag - 2014-10-10, 12:47
RE: My 30 Add-on API wishes - by KenV99 - 2014-11-19, 23:26
RE: My 30 Add-on API wishes - by Karnagious - 2014-11-20, 00:54
RE: My 30 Add-on API wishes - by takoi - 2015-01-06, 13:16
RE: My 30 Add-on API wishes - by ruuk - 2015-01-06, 13:39
RE: My 30 Add-on API wishes - by jjd-uk - 2015-01-06, 14:35
Re: RE: My 30 Add-on API wishes - by Martijn - 2015-01-06, 22:34
RE: My 30 Add-on API wishes - by lukemb - 2015-01-11, 19:01
RE: My 30 Add-on API wishes - by ronie - 2015-01-09, 00:55
RE: My 30 Add-on API wishes - by BePov - 2015-02-01, 22:17
RE: My 30 Add-on API wishes - by BeesKnees - 2015-04-22, 03:03
RE: My 30 Add-on API wishes - by BeesKnees - 2015-04-22, 21:31
RE: My 30 Add-on API wishes - by phil65 - 2015-06-12, 21:06
RE: My 30 Add-on API wishes - by sphere - 2015-06-12, 22:30
RE: My 30 Add-on API wishes - by Sorien - 2015-12-23, 10:41
Logout Mark Read Team Forum Stats Members Help
My 30 Add-on API wishes6