mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-02-24 19:40:13 +09:00
add new test
This commit is contained in:
parent
41f5fd818b
commit
9036cf5132
@ -26,6 +26,17 @@ class NewgroundsIE(InfoExtractor):
|
|||||||
'upload_date': '20130911',
|
'upload_date': '20130911',
|
||||||
'duration': 143,
|
'duration': 143,
|
||||||
},
|
},
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.newgrounds.com/portal/view/850292',
|
||||||
|
'md5': 'bb7cacf45e1b4d648e2dac2d79284d67',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '850292',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Timeless (2021)',
|
||||||
|
'uploader': 'Kevuhn',
|
||||||
|
'timestamp': 1657896960,
|
||||||
|
'upload_date': '20220715',
|
||||||
|
},
|
||||||
}, {
|
}, {
|
||||||
# source format unavailable, additional mp4 formats
|
# source format unavailable, additional mp4 formats
|
||||||
'url': 'http://www.newgrounds.com/portal/view/689400',
|
'url': 'http://www.newgrounds.com/portal/view/689400',
|
||||||
@ -80,7 +91,6 @@ class NewgroundsIE(InfoExtractor):
|
|||||||
(r'(?s)<h4[^>]*>(.+?)</h4>.*?<em>\s*Author\s*</em>',
|
(r'(?s)<h4[^>]*>(.+?)</h4>.*?<em>\s*Author\s*</em>',
|
||||||
r'(?:Author|Writer)\s*<a[^>]+>([^<]+)'), webpage, 'uploader',
|
r'(?:Author|Writer)\s*<a[^>]+>([^<]+)'), webpage, 'uploader',
|
||||||
fatal=False)
|
fatal=False)
|
||||||
|
|
||||||
timestamp = unified_timestamp(self._html_search_regex(
|
timestamp = unified_timestamp(self._html_search_regex(
|
||||||
(r'<dt>\s*Uploaded\s*</dt>\s*<dd>([^<]+</dd>\s*<dd>[^<]+)',
|
(r'<dt>\s*Uploaded\s*</dt>\s*<dd>([^<]+</dd>\s*<dd>[^<]+)',
|
||||||
r'<dt>\s*Uploaded\s*</dt>\s*<dd>([^<]+)'), webpage, 'timestamp',
|
r'<dt>\s*Uploaded\s*</dt>\s*<dd>([^<]+)'), webpage, 'timestamp',
|
||||||
|
Loading…
Reference in New Issue
Block a user