From b9f1ba3c017ae7b235d7b1efd9be36f2802069af Mon Sep 17 00:00:00 2001 From: hodayabu Date: Tue, 21 Apr 2020 17:57:08 +0300 Subject: [PATCH] video info platform tiktok --- youtube_dl/extractor/tiktok.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/tiktok.py b/youtube_dl/extractor/tiktok.py index 9d742465e..4be1ef562 100644 --- a/youtube_dl/extractor/tiktok.py +++ b/youtube_dl/extractor/tiktok.py @@ -118,12 +118,12 @@ class TikTokIE(TikTokBaseIE): return self.info_dict(video_id, str(url), json_api['title'], json_api['author_name'], timestamp, json_api['thumbnail_url'], - views, provider_id, False, 'not_live', likes_count, shares, '', comments_count, duration) + views, provider_id, False, 'not_live', likes_count, shares, '', comments_count, duration, json_api['html']) def info_dict(self, video_id, url, video_title, uploader, timestamp, thumbnail, view_count, uploader_id, is_live, live_status - , likes_count, shares_count, subtitles, comment_count, duration): + , likes_count, shares_count, subtitles, comment_count, duration, embed_code): info_dict = { 'id': video_id, 'url': url, @@ -140,8 +140,8 @@ class TikTokIE(TikTokBaseIE): 'subtitles': subtitles, 'comment_count': comment_count, 'duration': duration, - 'ext':'mp.4' - + 'ext':'mp.4', + 'embed_code': embed_code } return info_dict