[newgrounds] extend 'format' option (#5709)
- check more extensions for original formats (mp4, webm, m4v, mov, mkv) - allow specifying which extensions and recoded formats to check
This commit is contained in:
@@ -107,7 +107,7 @@ __tests__ = (
|
||||
"#url" : "https://www.newgrounds.com/portal/view/595355",
|
||||
"#category": ("", "newgrounds", "media"),
|
||||
"#class" : newgrounds.NewgroundsMediaExtractor,
|
||||
"#pattern" : r"https://uploads\.ungrounded\.net/alternate/564000/564957_alternate_31\.mp4\?1359712249",
|
||||
"#urls" : "https://uploads.ungrounded.net/alternate/564000/564957_alternate_31.mp4?1359712249",
|
||||
|
||||
"artist" : [
|
||||
"kickinthehead",
|
||||
@@ -131,6 +131,22 @@ __tests__ = (
|
||||
"user" : "kickinthehead",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.newgrounds.com/portal/view/595355",
|
||||
"#category": ("", "newgrounds", "media"),
|
||||
"#class" : newgrounds.NewgroundsMediaExtractor,
|
||||
"#options" : {"format": ["mkv", "mov", 1080]},
|
||||
"#urls" : "https://uploads.ungrounded.net/alternate/564000/564957_alternate_31.mkv?1359712249",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.newgrounds.com/portal/view/595355",
|
||||
"#category": ("", "newgrounds", "media"),
|
||||
"#class" : newgrounds.NewgroundsMediaExtractor,
|
||||
"#options" : {"format": "720p"},
|
||||
"#urls" : "https://uploads.ungrounded.net/alternate/564000/564957_alternate_31.720p.mp4?1359712249",
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://www.newgrounds.com/audio/listen/609768",
|
||||
"#category": ("", "newgrounds", "media"),
|
||||
|
||||
Reference in New Issue
Block a user