[PeerTube] Download description after title is set

This commit is contained in:
3risian 2020-01-08 11:38:15 +11:00 committed by GitHub
parent 2c2c219911
commit 64186d344a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -505,11 +505,11 @@ class PeerTubeIE(InfoExtractor):
video = self._download_json(
'https://%s/api/v1/videos/%s' % (host, video_id), video_id)
title = video['name']
video_description = self._download_json(
'https://%s/api/v1/videos/%s/description' % (host, video_id), video_id, fatal=False)
title = video['name']
formats = []
for file_ in video['files']:
if not isinstance(file_, dict):