1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 17:22:31 +01:00

[tiktok] Fix extractor_key used in archive

This commit is contained in:
pukkandan 2021-12-26 15:09:20 +05:30
parent 8126298c1b
commit 0b77924a38
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

View File

@ -447,7 +447,7 @@ def _entries_api(self, webpage, user_id, username):
for video in post_list.get('aweme_list', []): for video in post_list.get('aweme_list', []):
yield { yield {
**self._parse_aweme_video_app(video), **self._parse_aweme_video_app(video),
'ie_key': TikTokIE.ie_key(), 'extractor_key': TikTokIE.ie_key(),
'extractor': 'TikTok', 'extractor': 'TikTok',
'webpage_url': f'https://tiktok.com/@{user_id}/video/{video["aweme_id"]}', 'webpage_url': f'https://tiktok.com/@{user_id}/video/{video["aweme_id"]}',
} }
@ -490,7 +490,7 @@ def _entries(self, list_id, display_id):
for video in post_list.get('aweme_list', []): for video in post_list.get('aweme_list', []):
yield { yield {
**self._parse_aweme_video_app(video), **self._parse_aweme_video_app(video),
'ie_key': TikTokIE.ie_key(), 'extractor_key': TikTokIE.ie_key(),
'extractor': 'TikTok', 'extractor': 'TikTok',
'webpage_url': f'https://tiktok.com/@_/video/{video["aweme_id"]}', 'webpage_url': f'https://tiktok.com/@_/video/{video["aweme_id"]}',
} }