throw a critical error when youtube api returns a stub

This commit is contained in:
wukko
2023-12-25 12:59:00 +06:00
parent 0014c8b9fb
commit a4349b4c41
4 changed files with 19 additions and 5 deletions

View File

@@ -83,6 +83,12 @@ export default async function(o) {
youtubeDubName: isDubbed ? o.dubLang : false
}
if (filenameAttributes.title === "Video Not Available" && filenameAttributes.author === "YouTube Viewers")
return {
error: 'ErrorCantConnectToServiceAPI',
critical: true
}
if (hasAudio && o.isAudioOnly) return {
type: "render",
isAudioOnly: true,