-
-
Notifications
You must be signed in to change notification settings - Fork 600
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
Handle cases where guessit returns a list for a show name #8754
Conversation
The guessit library has instances where it can return >1 name for a TV show, which causes a significant amount of noise in sickchill logs Related: https://github.com/guessit-io/guessit/issues/770286
WalkthroughThe recent updates aim to enhance the codebase by adjusting configurations, optimizing imports, and improving function behaviors. Notable changes include extending the line length for the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@@ -16,6 +16,7 @@ | |||
import urllib.request | |||
import uuid | |||
import zipfile | |||
from collections.abc import Iterable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to try and except here and try collections.abc.Iterable and collections.iterable. The aliases moved in python 3.9 -> 3.10.
Also, the fake_is_active fix is in a comment I made in the other PR @BKSteve |
Replaced by #8759 |
@offbyone if you want to add those tests to |
Works around the impact of guessit-io/guessit#770
Proposed changes in this pull request:
Add some tests for the sanitize name functions based on current behaviour
When
full_sanitizeSceneName
receives an iterable that is not a string, turn it into one first.A tiny tweak to the pyproject.toml so that ruff will respect the project line length too
PR is based on the DEVELOP branch
Don't send big changes all at once. Split up big PRs into multiple smaller PRs that are easier to manage and review
Read contribution guide
This is the log message / traceback I'm addressing:
Summary by CodeRabbit