diff --git a/youtube_dl/extractor/xvideos.py b/youtube_dl/extractor/xvideos.py index 8f6af255a..36eed1f42 100644 --- a/youtube_dl/extractor/xvideos.py +++ b/youtube_dl/extractor/xvideos.py @@ -37,6 +37,9 @@ class XVideosIE(InfoExtractor): 'age_limit': 18, 'tags': ['lesbian', 'teen', 'hardcore', 'latina', 'rough', 'squirt', 'big-ass', 'cheater', 'twistys', 'cheat', 'ass-play', 'when-girls-play'], 'creator': 'Twistys', + 'uploader': 'Twistys', + 'uploader_id': 'Twistys', + 'uploader_url': '/channels/twistys1', 'actors': [{'given_name': 'Adriana Chechik', 'url': 'https://www.xvideos.com/pornstars/adriana-chechik'}, {'given_name': 'Abella Danger', 'url': 'https://www.xvideos.com/pornstars/abella-danger'}], 'views': int, } @@ -145,7 +148,9 @@ class XVideosIE(InfoExtractor): tags = self._search_regex(r'(?P.+?)<', webpage, 'creator', group='creator') + creator_data = re.findall(r'(?P.+?)<', webpage) + creator = creator_data[0][1] + uploader_url = creator_data[0][0] actors_data = re.findall(r'href="(?P/pornstars/.+?)" class="btn btn-default label profile hover-name">(?P.+?)', webpage) actors = [] @@ -166,6 +171,9 @@ class XVideosIE(InfoExtractor): 'age_limit': 18, 'tags': tags, 'creator': creator, + 'uploader': creator, + 'uploader_id': creator, + 'uploader_url': uploader_url, 'actors': actors, 'views': str_to_int(views), }