summaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/tube8.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--yt_dlp/extractor/tube8.py10
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,