From c1e586f5befa6259f84c63b5266a8e770ae56934 Mon Sep 17 00:00:00 2001 From: bashonly Date: Fri, 15 Aug 2025 16:52:59 -0500 Subject: [PATCH] do not retry during empty stretches Authored by: bashonly --- yt_dlp/extractor/tiktok.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/tiktok.py b/yt_dlp/extractor/tiktok.py index 0e178cd0a3..fbbd3c3835 100644 --- a/yt_dlp/extractor/tiktok.py +++ b/yt_dlp/extractor/tiktok.py @@ -992,7 +992,7 @@ class TikTokUserIE(TikTokBaseIE): query=self._build_web_query(sec_uid, cursor)) current_batch = sorted(traverse_obj(response, ('itemList', ..., 'id', {str}))) - if current_batch == last_batch: + if current_batch and current_batch == last_batch: message = 'TikTok API keeps sending the same page' if self._KNOWN_DEVICE_ID: raise ExtractorError(