diff --git a/youtube_dl/extractor/peertube.py b/youtube_dl/extractor/peertube.py index d1183cee6..19328729d 100644 --- a/youtube_dl/extractor/peertube.py +++ b/youtube_dl/extractor/peertube.py @@ -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):