From a8549f19e739be2f78b6dde1c6775814b6ce05f9 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Wed, 15 Dec 2021 22:18:01 +0530 Subject: [PATCH] [tiktok] Fix 53dad39e30b007feed4b6d4776bd15d28c27a96c --- yt_dlp/extractor/common.py | 1 - yt_dlp/extractor/tiktok.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 431d59351..ebf2e3cea 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -3,7 +3,6 @@ from __future__ import unicode_literals import base64 import collections -import datetime import hashlib import itertools import json diff --git a/yt_dlp/extractor/tiktok.py b/yt_dlp/extractor/tiktok.py index a3079151a..2cd7ba02e 100644 --- a/yt_dlp/extractor/tiktok.py +++ b/yt_dlp/extractor/tiktok.py @@ -180,7 +180,7 @@ class TikTokBaseIE(InfoExtractor): user_url = self._UPLOADER_URL_FORMAT % (traverse_obj(author_info, 'sec_uid', 'id', 'uid', 'unique_id', expected_type=str_or_none, get_all=False)) - labels = traverse_obj(aweme_detail, ('hybrid_label', ..., 'text'), expected_type=str) + labels = traverse_obj(aweme_detail, ('hybrid_label', ..., 'text'), expected_type=str, default=[]) contained_music_track = traverse_obj( music_info, ('matched_song', 'title'), ('matched_pgc_sound', 'title'), expected_type=str)