From 15480a5083ef7024e55abb043139e025af56ce56 Mon Sep 17 00:00:00 2001 From: Breno Lipi Date: Thu, 11 Mar 2021 01:07:04 -0300 Subject: [PATCH] Non capture group, removed description, test value --- youtube_dl/extractor/captiongenerator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/captiongenerator.py b/youtube_dl/extractor/captiongenerator.py index 0d6ba0600..1c7e1b133 100644 --- a/youtube_dl/extractor/captiongenerator.py +++ b/youtube_dl/extractor/captiongenerator.py @@ -5,13 +5,14 @@ from .common import InfoExtractor class CaptionGeneratorIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?captiongenerator\.com/(?P[0-9]+)' + _VALID_URL = r'(?:https?://(?:www\.)?captiongenerator\.com/(?P[0-9]+))' _TEST = { 'url': 'https://d34ov3vwfhhb30.cloudfront.net/Hitler+Reacts+-+No+Subtitles.mp4', 'info_dict': { 'id': '128', 'ext': 'mp4', 'title': 'Team building...', + 'http_headers': {"Referer": "https://www.captiongenerator.com/"} } } @@ -35,6 +36,5 @@ class CaptionGeneratorIE(InfoExtractor): 'id': video_id, 'title': title, 'url': video_url, - 'description': self._og_search_description(webpage), 'http_headers': {"Referer": "https://www.captiongenerator.com/"} }