mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[gfycat] Fixed preferences.
This commit is contained in:
parent
4aec95f3c9
commit
954352c4c0
1 changed files with 3 additions and 3 deletions
|
@ -63,7 +63,7 @@ def _real_extract(self, url):
|
||||||
'height': json['height'],
|
'height': json['height'],
|
||||||
'fps': json['frameRate'],
|
'fps': json['frameRate'],
|
||||||
'filesize': json['mp4Size'],
|
'filesize': json['mp4Size'],
|
||||||
'preference': '-1'
|
'preference': 2
|
||||||
}, {
|
}, {
|
||||||
'format_id': 'webm',
|
'format_id': 'webm',
|
||||||
'ext': 'webm',
|
'ext': 'webm',
|
||||||
|
@ -72,7 +72,7 @@ def _real_extract(self, url):
|
||||||
'height': json['height'],
|
'height': json['height'],
|
||||||
'fps': json['frameRate'],
|
'fps': json['frameRate'],
|
||||||
'filesize': json['webmSize'],
|
'filesize': json['webmSize'],
|
||||||
'preference': 0
|
'preference': 1
|
||||||
}, {
|
}, {
|
||||||
'format_id': 'gif',
|
'format_id': 'gif',
|
||||||
'ext': 'gif',
|
'ext': 'gif',
|
||||||
|
@ -81,7 +81,7 @@ def _real_extract(self, url):
|
||||||
'height': json['height'],
|
'height': json['height'],
|
||||||
'fps': json['frameRate'],
|
'fps': json['frameRate'],
|
||||||
'filesize': json['gifSize'],
|
'filesize': json['gifSize'],
|
||||||
'preference': 1
|
'preference': 0
|
||||||
}]
|
}]
|
||||||
|
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
Loading…
Reference in a new issue