fix(tiktok): update title getter

Signed-off-by: Aakash Gajjar <skyqutip@gmail.com>
This commit is contained in:
Aakash Gajjar 2020-08-11 12:02:23 +05:30
parent b19eec0d33
commit 89cee32ce9
No known key found for this signature in database
GPG Key ID: 84012841A6961837

View File

@ -50,7 +50,7 @@ def _extract_aweme(self, video_data, webpage):
'thumbnail': try_get(video_info, lambda x: x['covers'][0]), 'thumbnail': try_get(video_info, lambda x: x['covers'][0]),
'timestamp': timestamp, 'timestamp': timestamp,
'width': width, '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')), 'creator': str_or_none(author_info.get('nickName')),
'uploader': unique_id, 'uploader': unique_id,
'uploader_id': str_or_none(author_info.get('userId')), 'uploader_id': str_or_none(author_info.get('userId')),