diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-08-05 09:06:10 +0000 |
commit | 137f07c27a88b07df57df5b2cdebebe3c7722bac (patch) | |
tree | 4ebdcbea6b540f69c40ba0be6ac766008030d149 /yt_dlp/extractor/tube8.py | |
parent | Adding debian version 2024.05.27-1. (diff) | |
download | yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.tar.xz yt-dlp-137f07c27a88b07df57df5b2cdebebe3c7722bac.zip |
Merging upstream version 2024.07.01.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'yt_dlp/extractor/tube8.py')
-rw-r--r-- | yt_dlp/extractor/tube8.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yt_dlp/extractor/tube8.py b/yt_dlp/extractor/tube8.py index 5f15b45..7267bf2 100644 --- a/yt_dlp/extractor/tube8.py +++ b/yt_dlp/extractor/tube8.py @@ -1,8 +1,8 @@ import re +import urllib.parse from .common import InfoExtractor from ..aes import aes_decrypt_text -from ..compat import compat_urllib_parse_unquote from ..utils import ( determine_ext, format_field, @@ -100,12 +100,12 @@ class Tube8IE(InfoExtractor): r'flashvars\.video_url\s*=\s*(["\'])(?P<url>http.+?)\1', webpage, 'video url', default=None, group='url') if video_url: - extract_format(compat_urllib_parse_unquote(video_url)) + extract_format(urllib.parse.unquote(video_url)) if not formats: if 'title="This video is no longer available"' in webpage: self.raise_no_formats( - 'Video %s is no longer available' % video_id, expected=True) + f'Video {video_id} is no longer available', expected=True) if not title: title = self._html_search_regex( @@ -153,8 +153,8 @@ class Tube8IE(InfoExtractor): tags_str = self._search_regex( r'(?s)Tags:\s*</dt>\s*<dd>(.+?)</(?!a)', webpage, 'tags', fatal=False) - tags = [t for t in re.findall( - r'<a[^>]+href=[^>]+>([^<]+)', tags_str)] if tags_str else None + tags = list(re.findall( + r'<a[^>]+href=[^>]+>([^<]+)', tags_str)) if tags_str else None info.update({ 'description': description, |