mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
[imgur] fix extraction of original image
This commit is contained in:
parent
5a12118c83
commit
884b56e5fa
@ -52,7 +52,7 @@ class Imgur(VideoExtractor):
|
|||||||
else:
|
else:
|
||||||
# gallery image
|
# gallery image
|
||||||
content = get_content(self.url)
|
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)
|
_, container, size = url_info(url)
|
||||||
self.streams = {
|
self.streams = {
|
||||||
'original': {
|
'original': {
|
||||||
|
Loading…
Reference in New Issue
Block a user