summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/wat.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-08-05 09:06:10 +0000
commit7e21328585afda6d66f98ca476301680eeffac32 (patch)
tree266a4e7b20443f94572748781d71fc0375a15037 /yt_dlp/extractor/wat.py
parentAdding upstream version 2024.05.27. (diff)
downloadyt-dlp-7e21328585afda6d66f98ca476301680eeffac32.tar.xz
yt-dlp-7e21328585afda6d66f98ca476301680eeffac32.zip
Adding upstream version 2024.07.01.upstream/2024.07.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/wat.py')
-rw-r--r--yt_dlp/extractor/wat.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/extractor/wat.py b/yt_dlp/extractor/wat.py
index 9ea3fdd..03bac66 100644
--- a/yt_dlp/extractor/wat.py
+++ b/yt_dlp/extractor/wat.py
@@ -1,5 +1,4 @@
from .common import InfoExtractor
-from ..compat import compat_str
from ..utils import (
ExtractorError,
int_or_none,
@@ -52,13 +51,13 @@ class WatIE(InfoExtractor):
'ext': 'mp4',
},
'params': {'skip_download': 'm3u8'},
- }
+ },
]
_GEO_BYPASS = False
def _real_extract(self, url):
video_id = self._match_id(url)
- video_id = video_id if video_id.isdigit() and len(video_id) > 6 else compat_str(int(video_id, 36))
+ video_id = video_id if video_id.isdigit() and len(video_id) > 6 else str(int(video_id, 36))
# 'contentv4' is used in the website, but it also returns the related
# videos, we don't need them