Grab mp4 first instead of gif

This commit is contained in:
blank X 2020-12-03 22:06:12 +07:00
parent 169b36b499
commit 48ac10e1db
1 changed files with 1 additions and 1 deletions

View File

@ -351,7 +351,7 @@ async def main():
url = gfyitem.get('mp4Url', url)
elif random_post.is_reddit_media_domain and splitted[1] == '.gif' and preview:
preview = preview['images'][0]['variants']
for i in ('gif', 'mp4'):
for i in ('mp4', 'gif'):
if i in preview:
url = preview[i]['source']['url']
break