aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/tiktok.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/tiktok.py')
-rw-r--r--yt_dlp/extractor/tiktok.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/tiktok.py b/yt_dlp/extractor/tiktok.py
index b205887a2..a0f0ae09c 100644
--- a/yt_dlp/extractor/tiktok.py
+++ b/yt_dlp/extractor/tiktok.py
@@ -143,7 +143,10 @@ class TikTokIE(TikTokBaseIE):
props_data = try_get(json_data, lambda x: x['props'], expected_type=dict)
# Chech statusCode for success
- if props_data.get('pageProps').get('statusCode') == 0:
+ status = props_data.get('pageProps').get('statusCode')
+ if status == 0:
return self._extract_aweme(props_data, webpage, url)
+ elif status == 10216:
+ raise ExtractorError('This video is private', expected=True)
raise ExtractorError('Video not available', video_id=video_id)