mirror of
https://github.com/l1ving/youtube-dl
synced 2026-06-04 09:53:32 +08:00
made filesize field optional
This commit is contained in:
@@ -32,6 +32,6 @@ class PeertubeIE(InfoExtractor):
|
||||
'id': video_id,
|
||||
'title': details.get('name'),
|
||||
'description': details.get('description'),
|
||||
'formats': [{'url': file_data['fileUrl'], 'filesize': file_data['size']} for file_data in sorted(details['files'], key=lambda x: x['size'])],
|
||||
'formats': [{'url': file_data['fileUrl'], 'filesize': file_data.get('size')} for file_data in sorted(details['files'], key=lambda x: x['size'])],
|
||||
'thumbnail': urljoin(base_url, details['thumbnailPath'])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user