Open jbolla opened 2 years ago
I don't know much about Kodi addons either :p I have no time to implement that soon sorry, but to be added it must be configurable via the addon setting page and support adding additional cases later.
If you use the slyguy Nebula addon, you can redirect the request to this Addon:
def resolve_with_nebula(url, action):
nebula_addon = xbmcaddon.Addon(id="slyguy.nebula")
if nebula_addon:
utils.play_url('plugin://slyguy.nebula/?play=%s' % data, action)
return true
and
if 'nebula.app' in url:
result = resolve_width_nebula(url, action)
if result:
return
Maybe one could add some settings to add any redirection for a plugin?
url | addon | playUrl |
---|---|---|
nebula.app | slyguy.nebula | ?play= |
myStreamService | plugin.video.myStreamingService | ?url= |
Not done any kodi addon development either, but I would look into it if such feature is wanted.
The yt_dlp library supports Nebula but it fails when executed through the share function of yatse since it doesn't have credentials. I put together a quick proof of concept by adding this snippet to
handle_unresolved_url
inshare.py
after the youtube block.If I knew more about your codebase and kodi addons I'd open a PR. I'd obviously want to load the username and password from config instead of hardcoding it. There may be other entrypoints aside from this one where you need to add it.