diff --git a/yt_dlp/extractor/txxx.py b/yt_dlp/extractor/txxx.py index fff7a5d76c..77dabbc828 100644 --- a/yt_dlp/extractor/txxx.py +++ b/yt_dlp/extractor/txxx.py @@ -10,6 +10,7 @@ from ..utils import ( parse_duration, traverse_obj, try_call, + url_or_none, urljoin, variadic, ) @@ -83,6 +84,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.txxx.tube/contents/videos_sources/16574000/16574965/screenshots/1.jpg', } }, { 'url': 'https://txxx.tube/videos/16574965/digital-desire-malena-morgan/', @@ -98,6 +100,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.txxx.tube/contents/videos_sources/16574000/16574965/screenshots/1.jpg', } }, { 'url': 'https://vxxx.com/video-68925/', @@ -113,6 +116,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.vxxx.com/contents/videos_sources/68000/68925/screenshots/1.jpg', } }, { 'url': 'https://hclips.com/videos/6291073/malena-morgan-masturbates-her-sweet/', @@ -128,6 +132,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://hctn.nv7s.com/contents/videos_sources/6291000/6291073/screenshots/1.jpg', } }, { 'url': 'https://hdzog.com/videos/67063/gorgeous-malena-morgan-will-seduce-you-at-the-first-glance/', @@ -143,6 +148,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.hdzog.com/contents/videos_sources/67000/67063/screenshots/1.jpg', } }, { 'url': 'https://hdzog.tube/videos/67063/gorgeous-malena-morgan-will-seduce-you-at-the-first-glance/', @@ -158,6 +164,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.hdzog.com/contents/videos_sources/67000/67063/screenshots/1.jpg', } }, { 'url': 'https://hotmovs.com/videos/8789287/unbelievable-malena-morgan-performing-in-incredible-masturantion/', @@ -173,6 +180,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.hotmovs.com/contents/videos_sources/8789000/8789287/screenshots/10.jpg', } }, { 'url': 'https://hotmovs.tube/videos/8789287/unbelievable-malena-morgan-performing-in-incredible-masturantion/', @@ -188,6 +196,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.hotmovs.com/contents/videos_sources/8789000/8789287/screenshots/10.jpg', } }, { 'url': 'https://inporn.com/video/517897/malena-morgan-solo/', @@ -203,6 +212,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://iptn.m3pd.com/media/tn/sources/517897_1.jpg', } }, { 'url': 'https://privatehomeclips.com/videos/3630599/malena-morgan-cam-show/', @@ -218,6 +228,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://hctn.nv7s.com/contents/videos_sources/3630000/3630599/screenshots/15.jpg', } }, { 'url': 'https://tubepornclassic.com/videos/1015455/mimi-rogers-full-body-massage-nude-compilation/', @@ -233,6 +244,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.tubepornclassic.com/contents/videos_sources/1015000/1015455/screenshots/6.jpg', } }, { 'url': 'https://upornia.com/videos/1498858/twistys-malena-morgan-starring-at-dr-morgan-baller/', @@ -248,6 +260,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.upornia.com/contents/videos_sources/1498000/1498858/screenshots/1.jpg', } }, { 'url': 'https://upornia.tube/videos/1498858/twistys-malena-morgan-starring-at-dr-morgan-baller/', @@ -263,6 +276,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.upornia.com/contents/videos_sources/1498000/1498858/screenshots/1.jpg', } }, { 'url': 'https://vjav.com/videos/11761/yui-hatano-in-if-yui-was-my-girlfriend2/', @@ -278,6 +292,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.vjav.com/contents/videos_sources/11000/11761/screenshots/23.jpg', } }, { 'url': 'https://vjav.tube/videos/11761/yui-hatano-in-if-yui-was-my-girlfriend2/', @@ -293,6 +308,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.vjav.com/contents/videos_sources/11000/11761/screenshots/23.jpg', } }, { 'url': 'https://voyeurhit.com/videos/332875/charlotte-stokely-elle-alexandra-malena-morgan-lingerie/', @@ -308,6 +324,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.voyeurhit.com/contents/videos_sources/332000/332875/screenshots/1.jpg', } }, { 'url': 'https://voyeurhit.tube/videos/332875/charlotte-stokely-elle-alexandra-malena-morgan-lingerie/', @@ -323,6 +340,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://tn.voyeurhit.com/contents/videos_sources/332000/332875/screenshots/1.jpg', } }] _WEBPAGE_TESTS = [{ @@ -338,6 +356,7 @@ class TxxxIE(InfoExtractor): 'like_count': int, 'dislike_count': int, 'age_limit': 18, + 'thumbnail': 'https://hctn.nv7s.com/contents/videos_sources/5119000/5119660/screenshots/1.jpg', } }] @@ -371,6 +390,7 @@ class TxxxIE(InfoExtractor): 'like_count': int_or_none(traverse_obj(video_info, ('video', 'statistics', 'likes'))), 'dislike_count': int_or_none(traverse_obj(video_info, ('video', 'statistics', 'dislikes'))), 'age_limit': 18, + 'thumbnail': traverse_obj(video_info, ('video', 'thumbsrc', {url_or_none})), 'formats': get_formats(host, video_file), }