From d92e1aacd1dec1b0e712ee218de30037d8bcf0d7 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 5 Jan 2022 22:10:50 +0100 Subject: [PATCH] [imgur] prefer og:video --- src/you_get/extractors/imgur.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/you_get/extractors/imgur.py b/src/you_get/extractors/imgur.py index 3b1c0ea6..d612a30a 100644 --- a/src/you_get/extractors/imgur.py +++ b/src/you_get/extractors/imgur.py @@ -52,7 +52,8 @@ class Imgur(VideoExtractor): else: # gallery image content = get_content(self.url) - url = match1(content, r'meta property="og:image"[^>]+(https?://i.imgur.com/[^"?]+)') + url = match1(content, r'meta property="og:video"[^>]+(https?://i.imgur.com/[^"?]+)') or \ + match1(content, r'meta property="og:image"[^>]+(https?://i.imgur.com/[^"?]+)') _, container, size = url_info(url) self.streams = { 'original': {