2015-06-13, 14:38
(2015-06-13, 13:48)Razze Wrote:(2015-06-13, 12:52)bromix Wrote:(2015-06-13, 12:13)sphere Wrote: The resolving part is easy. But this needs to be integrated into the repository-system. A plugin needs to register its regular expressions in addon.xml and these expressions need to be in the repositories addons.xml so that it really gets a benefit.I agree totally with the last part (I think that's what you already posted in your thread of wishes) - love to see that. But I can't quite follow what you mean by 'repository-system'?
What can I do to push this further?
He's saying the repository needs to be aware of it so you/we can show something like "Kodi has received a call from addon X and can't handle this, to resolve this please install one of these addons: [List of Addons that can handel this]"
(2015-06-13, 12:54)Tolriq Wrote: As a reminder lot's of things are not in Kodi or XBMC because solution proposed where not perfect and no one have better solution but nothing was chosen over something that works and fill a need.
As long as the addon system permit this (and it's the case), I do not see why this should not be pushed because maybe one day someone in 3 years will do something at core level.
This.
Exactly.
In addon.xml a plugin should be able to register itself for an url pattern. An add-on repository, like the official one is, is just (more or less) one big .xml which contains all known addon.xml.
If I attend this years devcon, I will try my best to find someone who is able to code this (or someone who explains me what needs to be done and do it myself). Just keep on posting ideas how it can be solved in the best way.
EDIT:
My current best idea is this:
Code:
<addon id="my.cool.addon">
<extension point="xbmc.python.stream_resolver" library="resolver.py">
<regex>http://www.youtube.com\?v=.*</regex>
</extension>
</addon>
So another extension point with an "library" property to get the script plus one or multiple "regex" nodes containing regular expressions for any kind of urls.