Skip to content

Commit

Permalink
api/youtube: catch one more age limit error
Browse files Browse the repository at this point in the history
  • Loading branch information
wukko committed Oct 23, 2024
1 parent 9d59a2f commit a3ee3d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/processing/services/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ export default async function(o) {
}
}

if (playability.status === "AGE_VERIFICATION_REQUIRED") {
return { error: "content.video.age" }
}

if (playability.status !== "OK") {
return { error: "content.video.unavailable" };
}
Expand Down

0 comments on commit a3ee3d9

Please sign in to comment.