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

Links sent via uri2addon fail to play #946

Closed
benyamin-codez opened this issue Oct 29, 2024 · 1 comment
Closed

Links sent via uri2addon fail to play #946

benyamin-codez opened this issue Oct 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@benyamin-codez
Copy link

Context

  • Add-on Version: 7.1.1+beta.2
  • Kodi Version: 20.5
  • Kodi GUI Language: English
  • Operating System: 5.15.92-1-osmc
  • Operating System Language: English

Fault

Playing a YT video via uri2addon, e.g. using Yatse, results in an error.


Log

Snippet only:

 info <general>: [plugin.video.youtube] Plugin: Running |v7.1.1+beta.2|
                  Kodi: |v20.5 (Kodi Unknown release)|
                  Python: |v3.9.2|
                  Path: |/uri2addon/|
                  Params: |{'uri': 'https://youtube.com/watch?v=yRwS6T6HUME&si=VD__JJTBf6EB1YPT'}|
debug <general>: ------ Window Deinit (DialogBusy.xml) ------
debug <general>: Thread ScriptObs 1256542464 terminating
error <general>: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtube/uri2addon/?uri=https%3A%2F%2Fyoutube.com%2Fwatch%3Fv%3DyRwS6T6HUME%26si%3DVD__JJTBf6EB1YPT]
...
 info <general>: [plugin.video.youtube] Converting VideoItem |plugin://plugin.video.youtube/play/?video_id=yRwS6T6HUME|
error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                  - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                  Error Type: <class 'TypeError'>
                  Error Contents: not a valid non-string sequence or mapping object
                  Traceback (most recent call last):
                      File "/usr/lib/python3.9/urllib/parse.py", line 928, in urlencode
                      if len(query) and not isinstance(query[0], tuple):
                  TypeError: object of type 'NoneType' has no len()
                  
                  During handling of the above exception, another exception occurred:
                  
                  Traceback (most recent call last):
                      File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py", line 16, in <module>
                      plugin_runner.run()
                      File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin_runner.py", line 67, in run
                      plugin.run(provider, context, focused=(current_uri == new_uri))
                      File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/plugin/xbmc/xbmc_plugin.py", line 214, in run
                      item = self._PLAY_ITEM_MAP[result.__class__.__name__](
                      File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/items/xbmc/xbmc_items.py", line 485, in playback_item
                      headers = media_item.get_headers(as_string=True)
                      File "/home/osmc/.kodi/addons/plugin.video.youtube/resources/lib/youtube_plugin/kodion/items/media_item.py", line 223, in get_headers
                      return urlencode(self._headers)
                      File "/usr/lib/python3.9/urllib/parse.py", line 936, in urlencode
                      raise TypeError("not a valid non-string sequence "
                      File "/usr/lib/python3.9/urllib/parse.py", line 928, in urlencode
                      if len(query) and not isinstance(query[0], tuple):
                  TypeError: not a valid non-string sequence or mapping object
                  -->End of Python script error report<--

Additional Information

Began after upgrade to v7.1.1+beta.2


@benyamin-codez benyamin-codez added the bug Something isn't working label Oct 29, 2024
MoojMidge added a commit to MoojMidge/plugin.video.youtube that referenced this issue Oct 29, 2024
@MoojMidge
Copy link
Collaborator

Should be fixed in https://github.com/anxdpanic/plugin.video.youtube/releases/tag/v7.1.1%2Bbeta.3

@MoojMidge MoojMidge mentioned this issue Nov 14, 2024
@MoojMidge MoojMidge mentioned this issue Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants