mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-03 00:48:00 +09:00
Non capture group, removed description, test value
This commit is contained in:
parent
625a551f84
commit
15480a5083
@ -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/"}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user