[PeerTube] Download description after title is set
This commit is contained in:
parent
2c2c219911
commit
64186d344a
@ -505,11 +505,11 @@ class PeerTubeIE(InfoExtractor):
|
|||||||
video = self._download_json(
|
video = self._download_json(
|
||||||
'https://%s/api/v1/videos/%s' % (host, video_id), video_id)
|
'https://%s/api/v1/videos/%s' % (host, video_id), video_id)
|
||||||
|
|
||||||
|
title = video['name']
|
||||||
|
|
||||||
video_description = self._download_json(
|
video_description = self._download_json(
|
||||||
'https://%s/api/v1/videos/%s/description' % (host, video_id), video_id, fatal=False)
|
'https://%s/api/v1/videos/%s/description' % (host, video_id), video_id, fatal=False)
|
||||||
|
|
||||||
title = video['name']
|
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
for file_ in video['files']:
|
for file_ in video['files']:
|
||||||
if not isinstance(file_, dict):
|
if not isinstance(file_, dict):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user