Non capture group, removed description, test value

This commit is contained in:
Breno Lipi 2021-03-11 01:07:04 -03:00
parent 625a551f84
commit 15480a5083

View File

@ -5,13 +5,14 @@ from .common import InfoExtractor
class CaptionGeneratorIE(InfoExtractor): class CaptionGeneratorIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?captiongenerator\.com/(?P<id>[0-9]+)' _VALID_URL = r'(?:https?://(?:www\.)?captiongenerator\.com/(?P<id>[0-9]+))'
_TEST = { _TEST = {
'url': 'https://d34ov3vwfhhb30.cloudfront.net/Hitler+Reacts+-+No+Subtitles.mp4', 'url': 'https://d34ov3vwfhhb30.cloudfront.net/Hitler+Reacts+-+No+Subtitles.mp4',
'info_dict': { 'info_dict': {
'id': '128', 'id': '128',
'ext': 'mp4', 'ext': 'mp4',
'title': 'Team building...', 'title': 'Team building...',
'http_headers': {"Referer": "https://www.captiongenerator.com/"}
} }
} }
@ -35,6 +36,5 @@ class CaptionGeneratorIE(InfoExtractor):
'id': video_id, 'id': video_id,
'title': title, 'title': title,
'url': video_url, 'url': video_url,
'description': self._og_search_description(webpage),
'http_headers': {"Referer": "https://www.captiongenerator.com/"} 'http_headers': {"Referer": "https://www.captiongenerator.com/"}
} }