update liveleak mime parser for youtube embeds

This commit is contained in:
woorst
2017-10-29 08:52:34 -05:00
parent d5f344e4a7
commit 4796a7b70f
4 changed files with 354 additions and 3 deletions

View File

@@ -70,10 +70,14 @@ URLS = OrderedDict([
re.compile('https://(.*)\.cloudfront\.net/videos/15694926/52450725.mp4(.*)'),
'video/mp4',
marks=pytest.mark.xfail(reason="vidme API appears to have changed format"))),
('liveleak_video', (
('liveleak_video_1', (
'https://www.liveleak.com/view?i=08b_1499296574',
re.compile('https://cdn\.liveleak\.com/(.*)\.mp4(.*)'),
'video/mp4')),
('liveleak_video_2', (
'https://www.liveleak.com/view?i=cad_1487311993',
re.compile('www\.youtube\.com/embed/D4GrlOMlOBY'),
'video/x-youtube')),
('reddit_gif', (
'https://v.redd.it/wkm9zol8c6fz',
'https://v.redd.it/wkm9zol8c6fz/DASH_600_K',