mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-12-02 16:32:56 +01:00
Merge branch 'ytdl-org:master' into debug-msgs-to-stderr
This commit is contained in:
commit
451c26f079
@ -569,15 +569,15 @@ class PeerTubeIE(InfoExtractor):
|
|||||||
formats.append(f)
|
formats.append(f)
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
|
description = video.get('description')
|
||||||
|
if len(description) >= 250:
|
||||||
|
# description is shortened
|
||||||
full_description = self._call_api(
|
full_description = self._call_api(
|
||||||
host, video_id, 'description', note='Downloading description JSON',
|
host, video_id, 'description', note='Downloading description JSON',
|
||||||
fatal=False)
|
fatal=False)
|
||||||
|
|
||||||
description = None
|
|
||||||
if isinstance(full_description, dict):
|
if isinstance(full_description, dict):
|
||||||
description = str_or_none(full_description.get('description'))
|
description = str_or_none(full_description.get('description')) or description
|
||||||
if not description:
|
|
||||||
description = video.get('description')
|
|
||||||
|
|
||||||
subtitles = self.extract_subtitles(host, video_id)
|
subtitles = self.extract_subtitles(host, video_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user