From 884b56e5faa99353cd5499c27d43deb6184eba63 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Thu, 16 Dec 2021 16:35:58 +0100 Subject: [PATCH] [imgur] fix extraction of original image --- src/you_get/extractors/imgur.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/imgur.py b/src/you_get/extractors/imgur.py index 519fa245..3b1c0ea6 100644 --- a/src/you_get/extractors/imgur.py +++ b/src/you_get/extractors/imgur.py @@ -52,7 +52,7 @@ class Imgur(VideoExtractor): else: # gallery image content = get_content(self.url) - url = match1(content, r'(https?://i.imgur.com/[^"]+)') + url = match1(content, r'meta property="og:image"[^>]+(https?://i.imgur.com/[^"?]+)') _, container, size = url_info(url) self.streams = { 'original': {