-
-
Notifications
You must be signed in to change notification settings - Fork 264
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
Solve issue with missing art #1668
base: master
Are you sure you want to change the base?
Conversation
When encountering a movie with missing image data, we'd get `EXCEPTION: argument "value" for method "setArt" must be unicode or str`. This is because that's sometimes an empty dict rather than a string. This converts `{}` to `""` to resolve the issue.
there is nothing that identify your account in to this addon this PR is not correct, im not able to find "The Meg" video maybe wrong translated name or its geolocked please add a new debug LOG to "response" here: plugin.video.netflix/resources/lib/services/nfsession/session/path_requests.py Lines 33 to 34 in bb132cd
and so open addon to load the problematic list, then attach here the raw data as txt file or the full debug log |
Would it not be better to fix it at this place? plugin.video.netflix/resources/lib/kodi/infolabels.py Lines 263 to 276 in bb132cd
|
Yeah, I figured I was hacking in the wrong place. Thanks for the tips, but I'm not sufficiently up to speed on the codebase (and python is not my primary language). I'm not sure what to add to path_requests.py. I added a Here's a dump of my log upon disabling and then reenabling the Netflix addon, then searching for "The Meg": kodi-netflix-pull-1668.log The Meg is the only entry I've encountered with this problem, so it's unfortunate that it's not available in your region for you to verify the bug. @Falke-Design: isn't plugin.video.netflix/resources/lib/kodi/infolabels.py Lines 279 to 281 in bb132cd
Again, I'm not sure where the As this isn't the appropriate fix, what next step should I take? Close this PR and replace it with an Issue reporting the bug? Or should we just treat this as the bug report? |
heh how do you think to debug something if you leave kodi and the addon debug settings disabled? you cant... however with the link https://www.netflix.com/title/80237937 how we can see on each "art" data contents, suggests that there is something that need to be fixed in |
Yeah, I had the Netflix plugin's settings to enable debug but not Kodi's. Sorry about that, I had assumed that large base64 blob had what you wanted. Here's an updated dump with Kodi debug enabled: Rather than searching for "The Meg", this time I navigated to my Favourites area, which has a link straight into Netflix Search, and happened to remember I was previously looking at the results of that search. The custom debug line you requested starts with I doubt I can get to a better solution from here on my own. Let me know if I can do more to help. Since you don't have access to the title, I can help test once you've got something you think will work.
At least with this title, you're not missing much 😉 Thanks for all your hard work, by the way. I am very happy with this plugin. |
(Not that this makes it much better; see CastagnaIT#1668)
thanks for your attempt and the new log, but for now i block the PR because its a wrong solution |
I intercepted the requests and then returned the responses from the log. Saddly the error is not thrown. |
i also i have check whole json art data from log and all data its correct i think that a previously parsing for some reason failed and the wrong data has been stored to the cache so first you have to delete addon cache, go to addon Expert settings and delete cache from memory and disk |
I generated a new log with these steps:
This reproduced the problem, though the dict for The Meg still includes a proper I'm on Ubuntu 20.04 LTS (amd64) and everything is fully up to date, including Kodi 6:20.2+git20230630.0528-5f418d0b13-0~focal and plugin.video.netflix 1.23.1+matrix.1. A few items are upgraded beyond Ubuntu Focal but they hopefully don't matter here. Apologies for not mentioning that earlier. |
why you disabled the addon? |
Okay, good control. I figured the configuration was separate and was trying to spare myself some debug output to read through and redact (there are a lot of verbose addons that do a lot of nothing, like the Youtube addon, whose logs I've left alone). Again! Steps:
So clearing the cache removed the issue and prevented us from seeing what the true cause may have been. Log saved as kodi-netflix-pull-1668-20240109_2150.log |
thanks for the patience
in any case the cache data cannot help to identify the problem, because we lack the original raw data that we can use to understand the root of problem you can change the debug line i have added in the code, from so that also if you have the kodi/addon debug settings disabled it will be always printed on the log, |
Check if this PR fulfills these requirements:
Types of changes
Description
When encountering a movie with missing image data, the plugin refuses to show the list of movies. This is because that's sometimes an empty dict rather than a string. This converts
{}
to""
to resolve the issue.In case of Feature change / Breaking change:
Steps to reproduce the bug
Open the Netflix plugin and perform a search for "The Meg". At least at the moment, this will result in an error:
This is because there is missing data in the
state['art']
dictionary for The Meg. Even if you're searching for something else, this particular entry causes the problem. If you alter the code to dump the JSON to a log, you'll see this:(I loaded the
clearlogo
to determine which movie's metadata was broken. Apologies for the truncated paths, I'm not sure if there's anything in there that would identify my account.)As a result, you cannot see any search results that happen to include the broken item, even if it's quite a bit down the list.
Describe the new behavior
The new code simply replaces empty
dict
entries with emptystr
entries. You get the placeholder icon in place of the missing content (the poster in my view). Suboptimal, but I don't know how we can get better (I assume it's a Netflix bug).Note, I didn't dig too hard to see how this dict was populated. Maybe there's a better place for the fix, but my solution certainly solves the issue (though it doesn't find replacements for the missing images).