mirror of
https://github.com/wukko/cobalt.git
synced 2025-03-25 18:54:53 +01:00
api/youtube: return an appropriate error if a video is locked behind DRM
This commit is contained in:
parent
d00d94f3dc
commit
2ebe2899be
1 changed files with 4 additions and 0 deletions
|
@ -428,6 +428,10 @@ export default async function (o) {
|
|||
}
|
||||
}
|
||||
|
||||
if (video?.drm_families || audio?.drm_families) {
|
||||
return { error: "youtube.drm" };
|
||||
}
|
||||
|
||||
const fileMetadata = {
|
||||
title: basicInfo.title.trim(),
|
||||
artist: basicInfo.author.replace("- Topic", "").trim()
|
||||
|
|
Loading…
Add table
Reference in a new issue