From 89cee32ce9b504bd2b892f6fd2bcda46ae33a10c Mon Sep 17 00:00:00 2001 From: Aakash Gajjar Date: Tue, 11 Aug 2020 12:02:23 +0530 Subject: [PATCH] fix(tiktok): update title getter Signed-off-by: Aakash Gajjar --- youtube_dl/extractor/tiktok.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/tiktok.py b/youtube_dl/extractor/tiktok.py index c80001fe33..075a2cdf93 100644 --- a/youtube_dl/extractor/tiktok.py +++ b/youtube_dl/extractor/tiktok.py @@ -50,7 +50,7 @@ class TikTokBaseIE(InfoExtractor): 'thumbnail': try_get(video_info, lambda x: x['covers'][0]), 'timestamp': timestamp, 'width': width, - 'title': self._og_search_title(webpage), + 'title': str_or_none(share_info.get('title')) or self._og_search_title(webpage), 'creator': str_or_none(author_info.get('nickName')), 'uploader': unique_id, 'uploader_id': str_or_none(author_info.get('userId')),