aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/funimation.py
diff options
context:
space:
mode:
authorsepro <sepro@sepr0.com>2024-12-02 16:29:30 +0100
committerGitHub <noreply@github.com>2024-12-02 16:29:30 +0100
commitd8fb3490863653182864d2a53522f350d67a9ff8 (patch)
treefa12606719269bddb36b5cc46995dda1a1a3bbc4 /yt_dlp/extractor/funimation.py
parent2bea7936323ca4b6f3b9b1fdd892566223e30efa (diff)
[cleanup] Bump ruff to 0.8.x (#11608)
Authored by: seproDev
Diffstat (limited to 'yt_dlp/extractor/funimation.py')
-rw-r--r--yt_dlp/extractor/funimation.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/funimation.py b/yt_dlp/extractor/funimation.py
index d3e61c84f..01b53bcde 100644
--- a/yt_dlp/extractor/funimation.py
+++ b/yt_dlp/extractor/funimation.py
@@ -193,9 +193,9 @@ class FunimationIE(FunimationBaseIE):
for lang, version, fmt in self._get_experiences(episode):
experience_id = str(fmt['experienceId'])
- if (only_initial_experience and experience_id != initial_experience_id
- or requested_languages and lang.lower() not in requested_languages
- or requested_versions and version.lower() not in requested_versions):
+ if ((only_initial_experience and experience_id != initial_experience_id)
+ or (requested_languages and lang.lower() not in requested_languages)
+ or (requested_versions and version.lower() not in requested_versions)):
continue
thumbnails.append({'url': fmt.get('poster')})
duration = max(duration, fmt.get('duration', 0))