Update to ytdl-commit-8562218
[ard] improve clip id extraction
8562218350
This commit is contained in:
parent
143db31d48
commit
1418a0437f
10 changed files with 380 additions and 187 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue