From a9e8e375d7c8184dece3c4605d4dacb293d9f000 Mon Sep 17 00:00:00 2001 From: Mozi <29089388+pzhlkj6612@users.noreply.github.com> Date: Wed, 29 Jan 2025 07:39:38 +0000 Subject: [PATCH] fix test; no "js_to_json" needed for extracting "xv.conf" --- yt_dlp/extractor/xvideos.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/yt_dlp/extractor/xvideos.py b/yt_dlp/extractor/xvideos.py index f87e54c69..f5f2baf67 100644 --- a/yt_dlp/extractor/xvideos.py +++ b/yt_dlp/extractor/xvideos.py @@ -11,7 +11,6 @@ get_element_by_class, get_element_by_id, int_or_none, - js_to_json, parse_duration, remove_end, str_or_none, @@ -258,7 +257,7 @@ class XVideosUserIE(InfoExtractor): 'description': 'md5:ad6654037aee13535b0d15a020eb82d0', 'thumbnails': 'count:2', }, - 'playlist_mincount': 9, + 'playlist_mincount': 8, }, { # channel; "Most commented" 'url': 'https://www.xvideos.com/amateur-channels/queanfuckingcucking#_tabVideos,comments', @@ -324,8 +323,7 @@ def _real_extract(self, url): page_base_url = f'https://www.xvideos.com/{page_path}/videos/{sort_order}' user_info = traverse_obj(self._search_json( - r'