[PeerTube] Get full description instead of truncated description

This commit is contained in:
3risian 2020-01-07 18:59:30 +11:00 committed by GitHub
parent a4d3196996
commit 0701dd15e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -493,6 +493,9 @@ 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)
video_description = self._download_json(
'https://%s/api/v1/videos/%s/description' % (host, video_id), video_id)
title = video['name'] title = video['name']
formats = [] formats = []
@ -529,7 +532,7 @@ class PeerTubeIE(InfoExtractor):
return { return {
'id': video_id, 'id': video_id,
'title': title, 'title': title,
'description': video.get('description'), 'description': video_description.get('description'),
'thumbnail': urljoin(url, video.get('thumbnailPath')), 'thumbnail': urljoin(url, video.get('thumbnailPath')),
'timestamp': unified_timestamp(video.get('publishedAt')), 'timestamp': unified_timestamp(video.get('publishedAt')),
'uploader': account_data('displayName'), 'uploader': account_data('displayName'),