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 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)