From 0701dd15e0e1e9c05d1b38a0030daf0db4fa6ebf Mon Sep 17 00:00:00 2001 From: 3risian <59593325+3risian@users.noreply.github.com> Date: Tue, 7 Jan 2020 18:59:30 +1100 Subject: [PATCH] [PeerTube] Get full description instead of truncated description --- youtube_dl/extractor/peertube.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/peertube.py b/youtube_dl/extractor/peertube.py index 769e4b9af..c16db51fd 100644 --- a/youtube_dl/extractor/peertube.py +++ b/youtube_dl/extractor/peertube.py @@ -493,6 +493,9 @@ class PeerTubeIE(InfoExtractor): video = self._download_json( 'https://%s/api/v1/videos/%s' % (host, video_id), video_id) + video_description = self._download_json( + 'https://%s/api/v1/videos/%s/description' % (host, video_id), video_id) + title = video['name'] formats = [] @@ -529,7 +532,7 @@ class PeerTubeIE(InfoExtractor): return { 'id': video_id, 'title': title, - 'description': video.get('description'), + 'description': video_description.get('description'), 'thumbnail': urljoin(url, video.get('thumbnailPath')), 'timestamp': unified_timestamp(video.get('publishedAt')), 'uploader': account_data('displayName'),