mirror of
https://github.com/hansputera/tiktok-dl.git
synced 2026-04-05 19:51:57 +02:00
feat(packages.core#ttDownloaderOneProvider): return error when "json.error" exists
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
committed by
GitHub
parent
85b7bc84b3
commit
1825791c08
@@ -56,6 +56,11 @@ export class DownloadOne extends BaseProvider {
|
||||
*/
|
||||
extract(html: string): ExtractedInfo {
|
||||
const json = JSON.parse(html);
|
||||
if (json.error) {
|
||||
return {
|
||||
error: json.error,
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
video: {
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
"esModuleInterop": true,
|
||||
"skipLibCheck": true,
|
||||
"skipDefaultLibCheck": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"moduleResolution": "node"
|
||||
},
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user