diff options
author | SsSsS <54671367+u-spec-png@users.noreply.github.com> | 2021-08-08 03:56:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-08 09:26:44 +0530 |
commit | bfd56b74b9a1efd21f6f7642479dc2a7602ec6ec (patch) | |
tree | e9da03558f14a2b9390dede1fdb854b3e17c668f | |
parent | 858a65ecc10d9f458ab89d1fb9bf825e251b0084 (diff) | |
download | hypervideo-pre-bfd56b74b9a1efd21f6f7642479dc2a7602ec6ec.tar.lz hypervideo-pre-bfd56b74b9a1efd21f6f7642479dc2a7602ec6ec.tar.xz hypervideo-pre-bfd56b74b9a1efd21f6f7642479dc2a7602ec6ec.zip |
[peertube] Fix videos without description (#639)
Authored by: u-spec-png
-rw-r--r-- | yt_dlp/extractor/peertube.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/peertube.py b/yt_dlp/extractor/peertube.py index 3af533925..d1a9d696d 100644 --- a/yt_dlp/extractor/peertube.py +++ b/yt_dlp/extractor/peertube.py @@ -427,7 +427,7 @@ class PeerTubeIE(InfoExtractor): ''' % (_INSTANCES_RE, _UUID_RE) _TESTS = [{ 'url': 'https://framatube.org/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d', - 'md5': '9bed8c0137913e17b86334e5885aacff', + 'md5': '8563064d245a4be5705bddb22bb00a28', 'info_dict': { 'id': '9c9de5e8-0a1e-484a-b099-e80766180a6d', 'ext': 'mp4', @@ -570,7 +570,7 @@ class PeerTubeIE(InfoExtractor): self._sort_formats(formats) description = video.get('description') - if len(description) >= 250: + if description and len(description) >= 250: # description is shortened full_description = self._call_api( host, video_id, 'description', note='Downloading description JSON', |