1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-24 11:11:54 +00:00

sorted imports

added age_limit to test
changed info thumbnail check
This commit is contained in:
P. S. 2024-07-15 16:56:44 +00:00
parent d8414d01bd
commit efb6d21eb9

View file

@ -7,14 +7,15 @@ from time import sleep
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import ( from ..utils import (
traverse_obj, clean_html,
T,
url_or_none,
parse_iso8601,
get_element_by_class, get_element_by_class,
get_element_by_id, get_element_by_id,
int_or_none, int_or_none,
parse_qs, parse_qs,
strip_or_none,
T,
traverse_obj,
url_or_none,
urljoin, urljoin,
) )
@ -30,8 +31,7 @@ class Tube8IE(InfoExtractor):
'title': 'Found dildo. She let it cum in her tight ass to keep the secret', 'title': 'Found dildo. She let it cum in her tight ass to keep the secret',
'thumbnail': r're:^https?://.*\.jpg$', 'thumbnail': r're:^https?://.*\.jpg$',
'uploader': 'MaryKrylova', 'uploader': 'MaryKrylova',
'timestamp': 1718961736, 'age_limit': 18,
'upload_date': '20240621',
} }
}] }]
@ -71,7 +71,7 @@ class Tube8IE(InfoExtractor):
'mediaDefinitions', lambda _, v: v.get('format'), T(get_fmt)))) 'mediaDefinitions', lambda _, v: v.get('format'), T(get_fmt))))
info['title'] = strip_or_none(playervars.get('video_title')) or info.get('title') or playervars['video_title'] info['title'] = strip_or_none(playervars.get('video_title')) or info.get('title') or playervars['video_title']
if 'thumbnail' not in info.keys(): if not info.get('thumbnail'):
info['thumbnail'] = traverse_obj(playervars, ('image_url', T(url_or_none))) info['thumbnail'] = traverse_obj(playervars, ('image_url', T(url_or_none)))
# Borrowed from youporn extractor # Borrowed from youporn extractor