anxdpanic / plugin.video.youtube

Watch your favorite YouTube content on Kodi
https://ytaddon.panicked.xyz/forum
691 stars 114 forks source link

`uri2addon` doesn't support clip #655

Closed regseb closed 7 months ago

regseb commented 7 months ago

Context


Expected Behavior

When I send a clip with JSON-RPC to the uri2addon route: Kodi should play the clip.


Current Behavior

When I send a clip with JSON-RPC to the uri2addon route: Kodi does nothing.


Steps to Reproduce

  1. In Kodi, Allow remote control via HTTP (Settings / Services / Control).
  2. Execute (by changing the IP address) : curl -d '{ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "file": "plugin://plugin.video.youtube/uri2addon/?uri=https%3A%2F%2Fwww.youtube.com%2Fclip%2FUgkxI0KsdOZA-Pq3tUjucaib8b1tbixLMXhz" } } }' -H 'Content-type: application/json' 127.0.0.1:8080/jsonrpc
  3. Kodi doesn't play clip.

When you send the video (from which the clip is extracted): it works.

  1. Execute (by changing the IP address) : curl -d '{ "jsonrpc": "2.0", "method": "Player.Open", "params": { "item": { "file": "plugin://plugin.video.youtube/uri2addon/?uri=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5C85S-RBm_I" } } }' -H 'Content-type: application/json' 127.0.0.1:8080/jsonrpc
  2. Kodi play video.

Log

# After step 2 (uri2addon with clip).
T:18237 warning <CWebserver[8080]>: invalid response data with range start at 1 and end at 0
T:14198    info <general>: [plugin.video.youtube] Running: YouTube (7.0.4+nexus.1) on Nexus (Kodi-20.3) with Python 3.9.2
                           Path: /uri2addon/
                           Params: {'uri': 'https://www.youtube.com/clip/UgkxI0KsdOZA-Pq3tUjucaib8b1tbixLMXhz'}

# After step 4 (uri2addon with video).
T:18240 warning <CWebserver[8080]>: invalid response data with range start at 1 and end at 0
T:14198    info <general>: [plugin.video.youtube] Running: YouTube (7.0.4+nexus.1) on Nexus (Kodi-20.3) with Python 3.9.2
                           Path: /uri2addon/
                           Params: {'uri': 'https://www.youtube.com/watch?v=5C85S-RBm_I'}
T:14198    info <general>: [plugin.video.youtube] Running: YouTube (7.0.4+nexus.1) on Nexus (Kodi-20.3) with Python 3.9.2
                           Path: /play/
                           Params: {'video_id': '5C85S-RBm_I'}
T:585      info <general>: VideoPlayer::OpenFile: plugin://plugin.video.youtube/uri2addon/?uri=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5C85S-RBm_I
T:18243    info <general>: Creating InputStream
# ...

Additional Information

https://github.com/anxdpanic/plugin.video.youtube/commit/72480b5b5c606dd3f4540d94312fa9e996a31e9d

Support Youtube Clips

MoojMidge commented 7 months ago

Works fine for me. Can you provide a debug log of when you try to play the clip?

regseb commented 7 months ago

Here are the debug logs from the clip:

T:31048   debug <CWebserver[8080]>: request received for /jsonrpc
T:31048 warning <CWebserver[8080]>: invalid response data with range start at 1 and end at 0
T:31048   debug <libmicrohttpd>: Application reported internal error, closing connection.
T:20038   debug <general>: onExecutionDone(8, /home/osmc/.kodi/addons/plugin.video.twitch/resources/lib/addon_runner.py)
T:19985   debug <general>: CScriptRunner: running add-on script YouTube('plugin://plugin.video.youtube/uri2addon/', '2', '?uri=https%3A%2F%2Fwww.youtube.com%2Fclip%2FUgkxI0KsdOZA-Pq3tUjucaib8b1tbixLMXhz')
T:31049   debug <general>: Thread LanguageInvoker start, auto delete: false
T:31049   debug <general>: initializing python engine.
T:31049   debug <general>: CPythonInvoker(9, /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): start processing
T:20038   debug <general>: .
T:31050   debug <general>: Thread ScriptObs start, auto delete: false
T:20038   debug <general>: Python interpreter stopped
T:20038   debug <general>: Thread LanguageInvoker 3567251712 terminating
T:31049   debug <general>: -->Python Interpreter Initialized<--
T:31049   debug <general>: 

T:31049   debug <general>: CPythonInvoker(9, /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): the source file to load is "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py"
T:31049   debug <general>: CPythonInvoker(9): full python path:
T:31049   debug <general>: CPythonInvoker(9):   custom python path:
T:31049   debug <general>: CPythonInvoker(9):     /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib
T:31049   debug <general>: CPythonInvoker(9):     /home/osmc/.kodi/addons/script.module.certifi/lib
T:31049   debug <general>: CPythonInvoker(9):     /home/osmc/.kodi/addons/script.module.chardet/lib
T:31049   debug <general>: CPythonInvoker(9):     /home/osmc/.kodi/addons/script.module.idna/lib
T:31049   debug <general>: CPythonInvoker(9):     /home/osmc/.kodi/addons/script.module.infotagger/resources/modules
T:31049   debug <general>: CPythonInvoker(9):     /home/osmc/.kodi/addons/script.module.inputstreamhelper/lib
T:31049   debug <general>: CPythonInvoker(9):     /home/osmc/.kodi/addons/script.module.requests/lib
T:31049   debug <general>: CPythonInvoker(9):     /home/osmc/.kodi/addons/script.module.urllib3/lib
T:31049   debug <general>: CPythonInvoker(9):   default python path:
T:31049   debug <general>: CPythonInvoker(9):     /usr/lib/python39.zip
T:31049   debug <general>: CPythonInvoker(9):     /usr/lib/python3.9
T:31049   debug <general>: CPythonInvoker(9):     /usr/lib/python3.9/lib-dynload
T:31049   debug <general>: CPythonInvoker(9):     /usr/local/lib/python3.9/dist-packages
T:31049   debug <general>: CPythonInvoker(9):     /usr/lib/python3/dist-packages
T:31049   debug <general>: CPythonInvoker(9): adding args:
T:31049   debug <general>: CPythonInvoker(9):  plugin://plugin.video.youtube/uri2addon/
T:31049   debug <general>: CPythonInvoker(9):  2
T:31049   debug <general>: CPythonInvoker(9):  ?uri=https%3A%2F%2Fwww.youtube.com%2Fclip%2FUgkxI0KsdOZA-Pq3tUjucaib8b1tbixLMXhz
T:31049   debug <general>: CPythonInvoker(9):  resume:false
T:31049   debug <general>: CPythonInvoker(9, /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): entering source directory /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib
T:31049   debug <general>: CPythonInvoker(9, /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 3.0.1 of the xbmc.python api
T:19985   debug <general>: ------ Window Init (DialogBusy.xml) ------
T:31049   debug <general>: [plugin.video.youtube] JSONStore.load - loading:
                           |/home/osmc/.kodi/userdata/addon_data/plugin.video.youtube/api_keys.json|
T:31049   debug <general>: [plugin.video.youtube] JSONStore.save - data unchanged:
                           |/home/osmc/.kodi/userdata/addon_data/plugin.video.youtube/api_keys.json|
T:31049   debug <general>: [plugin.video.youtube] JSONStore.load - loading:
                           |/home/osmc/.kodi/userdata/addon_data/plugin.video.youtube/access_manager.json|
T:31049   debug <general>: [plugin.video.youtube] JSONStore.save - data unchanged:
                           |/home/osmc/.kodi/userdata/addon_data/plugin.video.youtube/access_manager.json|
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |youtube.api.key|: "AIz...8Gg" (str, success)
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |youtube.api.id|: "684...9h523" (str, success)
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |youtube.api.secret|: "GOC...Yua" (str, success)
T:31049   debug <general>: [plugin.video.youtube] User: |1|, Using API key set: |own|
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |requests.ssl.verify|: True (bool, success)
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |requests.timeout.connect|: 9 (int, success)
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |requests.timeout.read|: 27 (int, success)
T:31049   debug <general>: [plugin.video.youtube] Starting Kodion framework by bromix...
T:31049    info <general>: [plugin.video.youtube] Running: YouTube (7.0.4+nexus.1) on Nexus (Kodi-20.3) with Python 3.9.2
                           Path: /uri2addon/
                           Params: {'uri': 'https://www.youtube.com/clip/UgkxI0KsdOZA-Pq3tUjucaib8b1tbixLMXhz'}
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |kodion.setup_wizard.forced_runs|: 2 (int, success)
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |kodion.setup_wizard|: False (bool, success)
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |kodion.cache.size|: 10 (int, success)
T:31049   debug <general>: [plugin.video.youtube] JSONStore.load - loading:
                           |/home/osmc/.kodi/userdata/addon_data/plugin.video.youtube/access_manager.json|
T:31049   debug <general>: [plugin.video.youtube] JSONStore.save - data unchanged:
                           |/home/osmc/.kodi/userdata/addon_data/plugin.video.youtube/access_manager.json|
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |requests.ssl.verify|: True (bool, success)
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |requests.timeout.connect|: 9 (int, success)
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.access_token.expires) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.hdr) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.limit.30) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.1) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_stream.selection.2) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.live_streams) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.mpd.proxy.port) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.playback.history) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.refresh_token) was not found.
T:31049   debug <CSettingsManager>: requested setting (kodion.video.quality.mpd) was not found.
T:31049   debug <CSettingsManager>: requested setting (simple.requests.ssl.verify) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.api.last.hash) was not found.
T:31049   debug <CSettingsManager>: requested setting (youtube.view.description.show_channel_name) was not found.
T:31049   debug <general>: [plugin.video.youtube] Get |requests.timeout.read|: 27 (int, success)
T:31049   debug <general>: [plugin.video.youtube] Unknown hostname "consent.youtube.com" in url "https://consent.youtube.com/m?continue=https%3A%2F%2Fwww.youtube.com%2Fclip%2FUgkxI0KsdOZA-Pq3tUjucaib8b1tbixLMXhz%3Fcbrd%3D1&gl=FR&m=0&pc=yt&cm=2&hl=en&src=1"
T:19985   debug <general>: ------ Window Deinit (DialogBusy.xml) ------
T:31050   debug <general>: Thread ScriptObs 3558859008 terminating
T:31049   debug <general>: [plugin.video.youtube] Profiling stats:          10805 function calls (10451 primitive calls) in 0.728 seconds

                              Ordered by: cumulative time, internal time
                              List reduced from 331 to 50 due to restriction <50>

                              ncalls  tottime  percall  cumtime  percall filename:lineno(function)
                                   1    0.000    0.000    0.709    0.709 xbmc_plugin.py:38(run)
                                   1    0.000    0.000    0.684    0.684 abstract_provider.py:116(navigate)
                                   1    0.000    0.000    0.625    0.625 abstract_provider.py:300(wrapper)
                                   1    0.000    0.000    0.624    0.624 provider.py:274(on_uri2addon)
                                   1    0.000    0.000    0.549    0.549 url_resolver.py:240(resolve)
                                   1    0.000    0.000    0.549    0.549 function_cache.py:71(run)
                                   1    0.000    0.000    0.549    0.549 storage.py:399(_get)
                                   1    0.000    0.000    0.348    0.348 storage.py:182(__exit__)
                                   1    0.000    0.000    0.348    0.348 storage.py:251(_close)
                                   1    0.348    0.348    0.348    0.348 {method 'close' of 'sqlite3.Connection' objects}
                                   1    0.000    0.000    0.200    0.200 storage.py:177(__enter__)
                                   1    0.000    0.000    0.200    0.200 storage.py:185(_open)
                                   4    0.000    0.000    0.199    0.050 storage.py:262(_execute)
                                   1    0.197    0.197    0.197    0.197 {method 'executescript' of 'sqlite3.Cursor' objects}
                                   1    0.000    0.000    0.074    0.074 url_resolver.py:213(__init__)
                                   6    0.004    0.001    0.064    0.011 xbmc_plugin_settings.py:123(get_int)
                                  23    0.000    0.000    0.059    0.003 re.py:198(search)
                                  23    0.001    0.000    0.058    0.003 re.py:289(_compile)
                                   4    0.058    0.014    0.058    0.014 {method 'getSettingInt' of 'xbmcaddon.Addon' objects}
                                  23    0.001    0.000    0.055    0.002 sre_compile.py:759(compile)
                                   2    0.000    0.000    0.052    0.026 url_resolver.py:44(__init__)
                                   2    0.000    0.000    0.052    0.026 requests.py:49(__init__)
                                   1    0.000    0.000    0.052    0.052 url_resolver.py:190(__init__)
                                  23    0.001    0.000    0.036    0.002 sre_parse.py:937(parse)
                                   2    0.000    0.000    0.035    0.017 abstract_settings.py:160(get_timeout)
                               47/23    0.001    0.000    0.035    0.002 sre_parse.py:435(_parse_sub)
                               60/23    0.010    0.000    0.034    0.001 sre_parse.py:493(_parse)
                                   3    0.002    0.001    0.029    0.010 xbmc_plugin_settings.py:76(get_bool)
                                   2    0.027    0.013    0.027    0.013 {method 'getSettingBool' of 'xbmcaddon.Addon' objects}
                                   1    0.000    0.000    0.023    0.023 abstract_settings.py:102(is_setup_wizard_enabled)
                                   1    0.000    0.000    0.022    0.022 abstract_context.py:161(get_function_cache)
                                   1    0.000    0.000    0.017    0.017 abstract_settings.py:94(cache_size)
                                   2    0.000    0.000    0.017    0.009 abstract_settings.py:154(verify_ssl)
                                  23    0.000    0.000    0.017    0.001 sre_compile.py:598(_code)
                              105/23    0.006    0.000    0.013    0.001 sre_compile.py:71(_compile)
                                   1    0.000    0.000    0.011    0.011 xbmc_context.py:263(__init__)
                                   1    0.000    0.000    0.009    0.009 xbmc_plugin_settings.py:21(__init__)
                                   1    0.000    0.000    0.009    0.009 xbmc_plugin_settings.py:67(flush)
                                   1    0.000    0.000    0.009    0.009 methods.py:325(get_kodi_setting_bool)
                                   1    0.009    0.009    0.009    0.009 {built-in method xbmc.getCondVisibility}
                                 4/1    0.000    0.000    0.007    0.007 <frozen importlib._bootstrap>:1002(_find_and_load)
                                 4/1    0.000    0.000    0.007    0.007 <frozen importlib._bootstrap>:967(_find_and_load_unlocked)
                                 953    0.005    0.000    0.007    0.000 sre_parse.py:164(__getitem__)
                                 4/1    0.000    0.000    0.007    0.007 <frozen importlib._bootstrap>:659(_load_unlocked)
                                 4/1    0.000    0.000    0.006    0.006 <frozen importlib._bootstrap_external>:784(exec_module)
                                 5/1    0.000    0.000    0.006    0.006 <frozen importlib._bootstrap>:220(_call_with_frames_removed)
                                 4/1    0.000    0.000    0.006    0.006 {built-in method builtins.exec}
                                   1    0.000    0.000    0.006    0.006 __init__.py:2(<module>)
                                 574    0.003    0.000    0.005    0.000 sre_parse.py:254(get)
                                2032    0.005    0.000    0.005    0.000 {method 'append' of 'list' objects}

T:31049   debug <general>: CPythonInvoker(9, /home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): script successfully run

When I see the Unknown hostname "consent.youtube.com" in url "..." error, I get a ping consent.youtube.com

PING consent.youtube.com (142.250.203.238): 56 data bytes
64 bytes from 142.250.203.238: seq=0 ttl=115 time=10.488 ms
64 bytes from 142.250.203.238: seq=1 ttl=115 time=11.092 ms
64 bytes from 142.250.203.238: seq=2 ttl=115 time=10.269 ms
64 bytes from 142.250.203.238: seq=3 ttl=115 time=11.124 ms
^C
--- consent.youtube.com ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 10.269/10.743/11.124 ms
MoojMidge commented 7 months ago

Go to Settings > Maintenance > Clear function cache > Confirm Yes then try it again.

regseb commented 7 months ago

Thanks @MoojMidge. It works after clearing the cache.

MoojMidge commented 7 months ago

No problem.

You must have tried it in an older version of the plugin where the redirect to consent.youtube.com wasn't handled, and that result was then cached.

In v7.0.4 the redirect is now bypassed, but you must have updated less than one day after trying it previously, so the previously cached (incorrect) result was still being used.