aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/extractor/myspass.py
diff options
context:
space:
mode:
authorsepro <4618135+seproDev@users.noreply.github.com>2024-06-12 01:09:58 +0200
committerGitHub <noreply@github.com>2024-06-12 01:09:58 +0200
commitadd96eb9f84cfffe85682bf2fb85135746994ee8 (patch)
tree583f209506aa01b2afa3933e504426de575fc43c /yt_dlp/extractor/myspass.py
parentdb50f19d76c6870a5a13d0cab9287d684fd7449a (diff)
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
Diffstat (limited to 'yt_dlp/extractor/myspass.py')
-rw-r--r--yt_dlp/extractor/myspass.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/myspass.py b/yt_dlp/extractor/myspass.py
index 28ac982d6..3e8d506c4 100644
--- a/yt_dlp/extractor/myspass.py
+++ b/yt_dlp/extractor/myspass.py
@@ -1,5 +1,4 @@
from .common import InfoExtractor
-from ..compat import compat_str
from ..utils import (
int_or_none,
parse_duration,
@@ -75,7 +74,7 @@ class MySpassIE(InfoExtractor):
for group in self._search_regex(r'/myspass2009/\d+/(\d+)/(\d+)/(\d+)/', video_url, 'myspass', group=(1, 2, 3), default=[]):
group_int = int(group)
if group_int > video_id_int:
- video_url = video_url.replace(group, compat_str(group_int // video_id_int))
+ video_url = video_url.replace(group, str(group_int // video_id_int))
return {
'id': video_id,