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

Subscriptions Not Loading #953

Open
agentgodzilla opened this issue Nov 1, 2024 · 12 comments
Open

Subscriptions Not Loading #953

agentgodzilla opened this issue Nov 1, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@agentgodzilla
Copy link

Context

Please provide any relevant information about your setup

  • Add-on Version: 7.0.9.2 and 7.1.0.1
  • Kodi Version: 21.1
  • Kodi GUI Language: English
  • Operating System: CoreELEC-Amlogic-ng.arm-21.1.1-Omega_nightly_20241026-Generic
  • Operating System Language: English

Expected Behavior

Please describe the behavior you are expecting.

I'm expecting to be able to navigate to the addon, select my subscriptions and show the videos in my subscription feed.


Current Behavior

What is the current behavior?

Currently the screen just flashes for a second and doesn't load.


Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. Navigate to Addons
  2. Select Video Addons
  3. Select Youtube
  4. Select My Subscriptions "Folder"/Page

Log

Please include a complete debug log.

https://pastebin.com/qjWFn3bW

Additional Information

Please provide any additional information that may be helpful.

I've had this issue for a while now but I've done everything I can think of on my end to try to resolve it without completely factory resetting device. I can search/watch videos fine, issue is just my subscriptions from what I can tell.

Debugging Steps Attempted

  • Reinstall Youtube Addon
  • Try different Addon version
  • Manually purge all traces of youtube addon following an uninstall via SSH
  • Reset Kodi DB
  • Upgrade OS
  • Going back to default Kodi theme
  • Logging out and in again

Prior to resetting Kodi DB the error was a python stacktrace with a message similar to the file is not a DB and some line number, but it has been weeks since this and I don't have this log anymore. Now all I can see in debug logs is a generic message likeGetDirectory - Error getting plugin://plugin.video.youtube/special/my_subscriptions/?category_label=My%20Subscriptions

@agentgodzilla agentgodzilla added the bug Something isn't working label Nov 1, 2024
@MoojMidge
Copy link
Collaborator

Odd.

If you open your Subscriptions folder (not My Subscriptions) does anything show up?

@agentgodzilla
Copy link
Author

agentgodzilla commented Nov 3, 2024

Subscriptions folder doesn't show anything. It opens unlike "My Subscriptions" but it is empty.

2024-11-03 10:23:59.506 T:3934    debug <general>: CGUIMediaWindow::GetDirectory (plugin://plugin.video.youtube/subscriptions/list/?category_label=Subscriptions)
2024-11-03 10:23:59.506 T:3934    debug <general>:   ParentPath = [plugin://plugin.video.youtube/]
2024-11-03 10:23:59.506 T:5526    debug <general>: Thread waiting start, auto delete: false
2024-11-03 10:23:59.511 T:5172    debug <general>: CAddonDatabase::SetLastUsed[plugin.video.youtube] took 4 ms
2024-11-03 10:23:59.511 T:5526    debug <general>: CScriptRunner: running add-on script YouTube('plugin://plugin.video.youtube/subscriptions/list/', '48', '?category_label=Subscriptions')
2024-11-03 10:23:59.511 T:5526    debug <general>: GetLanguageInvoker - Reusing LanguageInvokerThread 102 for script /storage/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py
2024-11-03 10:23:59.511 T:5468    debug <general>: initializing python engine.
2024-11-03 10:23:59.511 T:5468    debug <general>: CPythonInvoker(102, /storage/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): start processing
2024-11-03 10:23:59.511 T:5468    debug <general>: CPythonInvoker(102): adding args:
2024-11-03 10:23:59.512 T:5468    debug <general>: CPythonInvoker(102):  plugin://plugin.video.youtube/subscriptions/list/
2024-11-03 10:23:59.512 T:5468    debug <general>: CPythonInvoker(102):  48
2024-11-03 10:23:59.512 T:5468    debug <general>: CPythonInvoker(102):  ?category_label=Subscriptions
2024-11-03 10:23:59.512 T:5468    debug <general>: CPythonInvoker(102):  resume:false
2024-11-03 10:23:59.512 T:5468    debug <general>: CPythonInvoker(102, /storage/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): entering source directory /storage/.kodi/addons/plugin.video.youtube/resources/lib
2024-11-03 10:23:59.512 T:5468    debug <general>: CPythonInvoker(102, /storage/.kodi/addons/plugin.video.youtube/resources/lib/plugin.py): instantiating addon using automatically obtained id of "plugin.video.youtube" dependent on version 3.0.0 of the xbmc.python api
2024-11-03 10:23:59.513 T:5468    debug <general>: [plugin.video.youtube] Starting Kodion framework by bromix...
2024-11-03 10:23:59.513 T:5468     info <general>: [plugin.video.youtube] Running: YouTube (7.0.9.2) on Omega (Kodi-21.1) with Python 3.11.9
                                                   Path: /subscriptions/list/
                                                   Params: {'category_label': 'Subscriptions'}
2024-11-03 10:23:59.516 T:5468    debug <general>: [plugin.video.youtube] API request:
                                                   version: |3|
                                                   method: |GET|
                                                   path: |subscriptions|
                                                   params: |{'order': 'alphabetical', 'maxResults': '50', 'part': 'snippet', 'mine': 'true', 'prettyPrint': 'false'}|
                                                   post_data: |None|
                                                   headers: |{'Host': 'www.googleapis.com', 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language': 'en-US,en;q=0.5', 'Authorization': '|logged in|', 'Accept': '*/*', 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; SM-G981B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Mobile Safari/537.36', 'DNT': '1'}|
2024-11-03 10:23:59.607 T:3934    debug <general>: ------ Window Init (DialogBusy.xml) ------
2024-11-03 10:23:59.767 T:5468    debug <general>: [plugin.video.youtube] API response: |200|
                                                   headers: |{'Content-Type': 'application/json; charset=UTF-8', 'Vary': 'Origin, X-Origin, Referer', 'Content-Encoding': 'gzip', 'Date': 'Sun, 03 Nov 2024 16:23:59 GMT', 'Server': 'scaffolding on HTTPServer2', 'Cache-Control': 'private', 'X-XSS-Protection': '0', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'Alt-Svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000', 'Transfer-Encoding': 'chunked'}|
2024-11-03 10:23:59.768 T:5468    debug <general>: [plugin.video.youtube] Get |youtube.view.hide_videos|: "[]" (str list, success)
2024-11-03 10:23:59.768 T:5468  warning <general>: [plugin.video.youtube] v3 response: Items list is empty
2024-11-03 10:23:59.769 T:5468    debug <general>: [plugin.video.youtube] Converting DirectoryItem |plugin://plugin.video.youtube/kodion/command/Action%28ParentDir%29/|
2024-11-03 10:23:59.770 T:5468    debug <general>: [plugin.video.youtube] Applying content-type: |files| for |/subscriptions/list/|
2024-11-03 10:23:59.770 T:5468    debug <general>: [plugin.video.youtube] Get |youtube.view.label.details|: True (bool, success)

@MoojMidge
Copy link
Collaborator

So that explains why My Subscriptions is empty - there are no Subscriptions being fetched so there is nothing to update.

Do you actually have any Subscriptions? Would need to login using an official client or on the website and double check if anything shows up there

@agentgodzilla
Copy link
Author

agentgodzilla commented Nov 3, 2024

So I do have subscriptions, and I 've gotten it loading now. It seems to be some weird interaction of sub/brand accounts on YouTube.

So I have a Google Account A with sub/brand Account B for YouTube.
I'm 99.9% certain subscriptions are under Account B.
If I log in to client with Account B I get no subscriptions
But if i log into Account A my subscriptions show up correctly.
If I log in on a browser in an incognito tab Account A isn't even an option.

I'm more than willing to label this a weird inconsistency on Googles side (Google Account vs YouTube account) and label this resolved, but I'm willing to investigate more with you if you would like. I might have merged the accounts at some point and that could be another source of weirdness but Account B is an option on google.com/device while authenticating.

@MoojMidge
Copy link
Collaborator

If I log in on a browser in an incognito tab Account A isn't even an option.

Can you clarify this a bit more? Are you unable to login to YouTube using Account A? Or you can but the subscriptions don't show up?

@agentgodzilla
Copy link
Author

agentgodzilla commented Nov 30, 2024

Sorry for delay in getting back to you. Both accounts work, but my subscriptions are under different accounts whether I'm using Youtube in browser or Kodi.

When logging in on Kodi I need to select the top option to get my subscriptions (account that is fully pixelated)
image

When logging in on browser I need to select the top option to get my subscriptions (picture of the pokemon Miltank)
image

@jemiller00

This comment was marked as off-topic.

@jemiller00

This comment was marked as off-topic.

@MoojMidge

This comment was marked as off-topic.

@jemiller00

This comment was marked as off-topic.

@jemiller00

This comment was marked as off-topic.

@jemiller00

This comment was marked as off-topic.

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

3 participants