Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Nebula video #33

Open
jbolla opened this issue Aug 12, 2022 · 2 comments
Open

Support Nebula video #33

jbolla opened this issue Aug 12, 2022 · 2 comments

Comments

@jbolla
Copy link

jbolla commented Aug 12, 2022

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 in share.py after the youtube block.

if 'nebula.app' in url:
    result = resolve_with_youtube_dl(url, {'format': 'best', 'no_color': 'true', 'ignoreerrors': 'true', 'username': '<my_username>', 'password': '<my_password>'}, action)
    if result:
        return

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.

@Tolriq
Copy link
Owner

Tolriq commented Aug 13, 2022

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.

@maltehol
Copy link

maltehol commented Aug 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants