mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
[imgur] prefer og:video
This commit is contained in:
parent
884b56e5fa
commit
d92e1aacd1
@ -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': {
|
||||
|
Loading…
Reference in New Issue
Block a user