diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 431d593512..ebf2e3ceac 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -3,7 +3,6 @@ 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 a3079151a8..2cd7ba02e3 100644 --- a/yt_dlp/extractor/tiktok.py +++ b/yt_dlp/extractor/tiktok.py @@ -180,7 +180,7 @@ def extract_addr(addr, add_meta={}): 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)