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

Add Recommended Shows failed #9796

Closed
hunter-nl opened this issue Aug 14, 2021 · 6 comments
Closed

Add Recommended Shows failed #9796

hunter-nl opened this issue Aug 14, 2021 · 6 comments

Comments

@hunter-nl
Copy link

Describe the bug
A clear and concise description of what the bug is.
When doing a search for new recommended shows, Nothing is showing. Only warning appears in the log.

To Reproduce
Steps to reproduce the behavior:

  1. Add Recommended Shows
  2. Click on "Search for new recommended shows from imdb"
  3. Look in the Log

Expected behavior
A clear and concise description of what you expected to happen.
Showing the recommended shows

Screenshots
If applicable, add screenshots to help explain your problem.

Medusa (please complete the following information):

  • OS: [e.g. ubuntu 14.04 x64] Rocky Linux 8.4
  • Branch: [e.g. master, develop] master
  • Commit: [e.g. c65ca2] 25e7b60
  • Python version: [e.g. 3.6.8] 3.8.6
  • Database version: [e.g. 44.12] 44.18

Debug logs (at least 50 lines):
General > Advanced Settings > Enable debug
(I did the steps 4 times)

2021-08-14 12:48:44 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Finished caching recommended shows
2021-08-14 12:48:44 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Could not get imdb recommended shows because of error: 'NoneType' object is not iterable
2021-08-14 12:48:44 WARNING	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Could not parse show tt10293938 with error: KeyError('genres')
2021-08-14 12:48:44 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Started caching recommended shows
2021-08-14 12:43:59 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Finished caching recommended shows
2021-08-14 12:43:59 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Could not get imdb recommended shows because of error: 'NoneType' object is not iterable
2021-08-14 12:43:59 WARNING	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Could not parse show tt10293938 with error: KeyError('genres')
2021-08-14 12:43:58 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Started caching recommended shows
2021-08-14 12:42:28 INFO	SEARCHQUEUE-DAILY-SEARCH :: [25e7b60] No needed episodes found
2021-08-14 12:42:25 INFO	SEARCHQUEUE-DAILY-SEARCH :: [25e7b60] Using daily search providers
2021-08-14 12:42:25 INFO	SEARCHQUEUE-DAILY-SEARCH :: [25e7b60] Beginning daily search for new episodes
2021-08-14 12:40:52 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Finished caching recommended shows
2021-08-14 12:40:52 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Could not get imdb recommended shows because of error: 'NoneType' object is not iterable
2021-08-14 12:40:52 WARNING	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Could not parse show tt10293938 with error: KeyError('genres')
2021-08-14 12:40:52 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Started caching recommended shows
2021-08-14 12:38:43 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Finished caching recommended shows
2021-08-14 12:38:43 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Could not get imdb recommended shows because of error: 'NoneType' object is not iterable
2021-08-14 12:38:43 WARNING	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Could not parse show tt10293938 with error: KeyError('genres')
2021-08-14 12:38:43 INFO	GENERICQUEUESCHEDULER-UPDATE-RECOMMENDED-IMDB :: [25e7b60] Started caching recommended shows

Additional context
Add any other context about the problem here.

@p0psicles
Copy link
Contributor

Do trakt, anidb, anilist work?

@hunter-nl
Copy link
Author

Do trakt, anidb, anilist work?

I do not use trakt, so I can not test this. anidb and anilist do work.

@p0psicles
Copy link
Contributor

Did you try this again later. As I suspect that one of the two imdb requests failed.
We run two commands
imdb_api.get_title(imdb_id) and imdb_api.get_title_genres(imdb_id). And only the second one seems to fail for you.

I can handle the error. But that means it will never be able to get the show genres for you.

@p0psicles
Copy link
Contributor

Ooh one thing you might try. Is going into /cache/ folder and remove the file recommended.dbm.*.
Then restart medusa and try again. Could be that the request error was cached.

@hunter-nl
Copy link
Author

Ooh one thing you might try. Is going into /cache/ folder and remove the file recommended.dbm.*.
Then restart medusa and try again. Could be that the request error was cached.

This fixed the issue. Thanks!

@p0psicles
Copy link
Contributor

In the next version it will not be able to cache "bad" requests/responses.

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

No branches or pull requests

2 participants