mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 22:34:01 -07:00
refactor: make suggested changes
Co-authored-by: dirkf <fieldhouse@gmx.net>
This commit is contained in:
parent
890f4128e6
commit
88ff88b275
1 changed files with 7 additions and 8 deletions
|
@ -62,15 +62,14 @@ class CamModelsIE(InfoExtractor):
|
|||
# hls skips fragments, preferring rtmp
|
||||
'preference': -1,
|
||||
})
|
||||
elif format_id == 'jpeg':
|
||||
thumbnails.append({
|
||||
'url': f.get('url'),
|
||||
'width': f.get('width'),
|
||||
'height': f.get('height'),
|
||||
'format_id': f.get('format_id')
|
||||
})
|
||||
continue
|
||||
else:
|
||||
if format_id == 'jpeg':
|
||||
thumbnails.append({
|
||||
'url': f['url'],
|
||||
'width': f['width'],
|
||||
'height': f['height'],
|
||||
'format_id': f['format_id'],
|
||||
})
|
||||
continue
|
||||
formats.append(f)
|
||||
self._sort_formats(formats)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue