mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 13:47:38 +02:00
youtube: add ratelimit error, update sign in error
This commit is contained in:
@ -124,6 +124,9 @@ export default async function(o) {
|
||||
return { error: 'ErrorYTAgeRestrict' }
|
||||
}
|
||||
}
|
||||
if (playability.status === "UNPLAYABLE" && playability.reason.endsWith('request limit.')) {
|
||||
return { error: 'ErrorYTRateLimit' }
|
||||
}
|
||||
|
||||
if (playability.status !== 'OK') return { error: 'ErrorYTUnavailable' };
|
||||
if (info.basic_info.is_live) return { error: 'ErrorLiveVideo' };
|
||||
|
Reference in New Issue
Block a user