From fd5a06560caab95c71a2e2e805efa8d0f3a696a0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 5 Aug 2024 11:06:11 +0200 Subject: Merging upstream version 2024.07.01. Signed-off-by: Daniel Baumann --- yt_dlp/extractor/tube8.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'yt_dlp/extractor/tube8.py') 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*(["\'])(?Phttp.+?)\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*\s*
(.+?)]+href=[^>]+>([^<]+)', tags_str)] if tags_str else None + tags = list(re.findall( + r']+href=[^>]+>([^<]+)', tags_str)) if tags_str else None info.update({ 'description': description, -- cgit v1.2.3