Skip to content

fix: Gem Authorization API changes#47

Open
micahg wants to merge 3 commits intomainfrom
fix/auth-api
Open

fix: Gem Authorization API changes#47
micahg wants to merge 3 commits intomainfrom
fix/auth-api

Conversation

@micahg
Copy link
Owner

@micahg micahg commented Feb 1, 2026

All of the heavy lifting here was done in copilot with GPT 5.2 Codex.

Closes #46

@gedakc
Copy link

gedakc commented Feb 1, 2026

Thank you @micahg for this fix. I tested the changes in this PR with Kodi 21.2 and was able to successfully play TV shows again. :-)

@ealehr
Copy link

ealehr commented Feb 1, 2026

Working for me as well... Thank you.

@micahg
Copy link
Owner Author

micahg commented Feb 1, 2026

wth... i'm not quite done yet.

@gedakc
Copy link

gedakc commented Feb 1, 2026

Okay. Let us know when you would like the changes tested again.

@micahg
Copy link
Owner Author

micahg commented Feb 1, 2026

hah @gedakc - I'm done now - just alphabetizing the show list.

@gedakc
Copy link

gedakc commented Feb 1, 2026

Thanks @micahg. I tested with the most recent code changes and can confirm that the TV shows play, and that the shows are now listed in ascending alphabetical order.

Your efforts to keep this add-on working are much appreciated. :-)

@dekay
Copy link

dekay commented Feb 6, 2026

@micahg This fix is mostly working for me. Shows, Films, and Live Channel categories work. Sports and Documentaries do not. I haven't tried the rest yet.

Looking at the log, I see error messages like "Unable to find key content in response from "

Thanks for your work on this! Just in time for the Olympics :-)

@ealehr
Copy link

ealehr commented Feb 6, 2026

@micahg This fix is mostly working for me. Shows, Films, and Live Channel categories work. Sports and Documentaries do not. I haven't tried the rest yet.

Looking at the log, I see error messages like "Unable to find key content in response from "

Thanks for your work on this! Just in time for the Olympics :-)

I'm not sure if this is strictly related to current "Authorization" issues, but I am also getting similar errors when attempting to access the "Documentaries", "News", and "Sports" sections from the main menu (as well).

The following log entries appear when I attempt to open the "News" section...

2026-02-06 12:44:59.007 T:834970 info : plugin.video.cbc: Unable to find key content in response from https://services.radio-canada.ca/ott/catalog/v2/gem/section/news?device=web
2026-02-06 12:44:59.011 T:834970 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: 'NoneType' object is not iterable
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.cbc/default.py", line 255, in
plugin.run()
File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
self._dispatch(self.path)
File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
view_func(**kwargs)
File "/storage/.kodi/addons/plugin.video.cbc/default.py", line 217, in layout_menu
if not GemV2.has_playable(items):
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/storage/.kodi/addons/plugin.video.cbc/resources/lib/gemv2.py", line 166, in has_playable
for item in items:
TypeError: 'NoneType' object is not iterable
-->End of Python script error report<--

2026-02-06 12:44:59.115 T:834968 error : GetDirectory - Error getting plugin://plugin.video.cbc/gem/layout/section/news
2026-02-06 12:44:59.141 T:722185 error : CGUIMediaWindow::GetDirectory(plugin://plugin.video.cbc/gem/layout/section/news) failed

I would like to add my appreciation for the work (already done) as the fix/auth-api branch is working for me (as well).

Thanks!

@dekay
Copy link

dekay commented Feb 7, 2026

It seems the issue of "Documentaries", "News", and "Sports" not working has been around since May 2025. See this post in the Kodi forums so it is a separate issue from that addressed here.

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

Successfully merging this pull request may close these issues.

Authentication fails with 4.0.21+matrix.1

4 participants