diff --git a/functions/album/[id].js b/functions/album/[id].js index b75c0bf..af340c1 100644 --- a/functions/album/[id].js +++ b/functions/album/[id].js @@ -162,6 +162,10 @@ export async function onRequest(context) { } } + if (album && album.copyright && album.copyright.toLowerCase().includes(atob('emVl'))) { + return new Response('This content was removed due to a DMCA notice.', { status: 200 }); + } + if (album && (album.title || album.name)) { try { const title = album.title || album.name; diff --git a/functions/track/[id].js b/functions/track/[id].js index cf50d44..eb186fb 100644 --- a/functions/track/[id].js +++ b/functions/track/[id].js @@ -188,6 +188,10 @@ export async function onRequest(context) { } } + if (track && track.copyright && track.copyright.toLowerCase().includes(atob('emVl'))) { + return new Response('This content was removed due to a DMCA notice.', { status: 200 }); + } + if (track) { try { const title = getTrackTitle(track);