diff --git a/functions/album/[id].js b/functions/album/[id].js index 11a0eea..9c815bb 100644 --- a/functions/album/[id].js +++ b/functions/album/[id].js @@ -135,20 +135,13 @@ class ServerAPI { } const _cr = [ - 'emVl', - 'em1j', - 'emVlIG11c2lj', - 'emVlIGVudGVydGFpbm1lbnQ=', - 'emVlbA==', - 'Ym9sbHl3b29kIG11c2ljIGluZGlh', - 'emVlIHJlY29yZHM=', - 'emluZyBtdXNpYw==', - 'ZXRjIGJvbGx5d29vZA==', - 'emVlIHN0dWRpb3M=', - 'emluZGFnaSBtdXNpYw==', - 'emVlNQ==', - 'Ym9sbHl3b29kIG11c2lj', - 'ZXNzZWw=', + 'emVl', // zee + 'em1j', // zmc + 'emluZyBtdXNpYw==', // zing music + 'ZXRjIGJvbGx5d29vZA==', // etc bollywood + 'Ym9sbHl3b29kIG11c2lj', // bollywood music + 'ZXNzZWw=', // essel + 'emluZGFnaQ==', // zindagi ].map(atob); const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s)); diff --git a/functions/track/[id].js b/functions/track/[id].js index f57bb77..e734df2 100644 --- a/functions/track/[id].js +++ b/functions/track/[id].js @@ -163,20 +163,13 @@ class ServerAPI { } const _cr = [ - 'emVl', - 'em1j', - 'emVlIG11c2lj', - 'emVlIGVudGVydGFpbm1lbnQ=', - 'emVlbA==', - 'Ym9sbHl3b29kIG11c2ljIGluZGlh', - 'emVlIHJlY29yZHM=', - 'emluZyBtdXNpYw==', - 'ZXRjIGJvbGx5d29vZA==', - 'emVlIHN0dWRpb3M=', - 'emluZGFnaSBtdXNpYw==', - 'emVlNQ==', - 'Ym9sbHl3b29kIG11c2lj', - 'ZXNzZWw=', + 'emVl', // zee + 'em1j', // zmc + 'emluZyBtdXNpYw==', // zing music + 'ZXRjIGJvbGx5d29vZA==', // etc bollywood + 'Ym9sbHl3b29kIG11c2lj', // bollywood music + 'ZXNzZWw=', // essel + 'emluZGFnaQ==', // zindagi ].map(atob); const _isBlockedCopyright = (c) => !!c && _cr.some((s) => c.toLowerCase().includes(s)); diff --git a/js/content-filter.ts b/js/content-filter.ts index 19537e0..2d85ef9 100644 --- a/js/content-filter.ts +++ b/js/content-filter.ts @@ -1,18 +1,11 @@ const _cr = [ - 'emVl', - 'em1j', - 'emVlIG11c2lj', - 'emVlIGVudGVydGFpbm1lbnQ=', - 'emVlbA==', - 'Ym9sbHl3b29kIG11c2ljIGluZGlh', - 'emVlIHJlY29yZHM=', - 'emluZyBtdXNpYw==', - 'ZXRjIGJvbGx5d29vZA==', - 'emVlIHN0dWRpb3M=', - 'emluZGFnaSBtdXNpYw==', - 'emVlNQ==', - 'Ym9sbHl3b29kIG11c2lj', - 'ZXNzZWw=', + 'emVl', // zee + 'em1j', // zmc + 'emluZyBtdXNpYw==', // zing music + 'ZXRjIGJvbGx5d29vZA==', // etc bollywood + 'Ym9sbHl3b29kIG11c2lj', // bollywood music + 'ZXNzZWw=', // essel + 'emluZGFnaQ==', // zindagi ].map(atob); export const isBlockedCopyright = (c: string | null | undefined): boolean => diff --git a/js/ui.js b/js/ui.js index f1a234d..bc37fdd 100644 --- a/js/ui.js +++ b/js/ui.js @@ -52,7 +52,11 @@ import { } from './tracker.js'; let _isBlockedCopyright = (_c) => false; -import('./content-filter.ts').then((m) => { _isBlockedCopyright = m.isBlockedCopyright; }).catch(() => {}); +import('./content-filter.ts') + .then((m) => { + _isBlockedCopyright = m.isBlockedCopyright; + }) + .catch(() => {}); fontSettings.applyFont().catch(console.error); fontSettings.applyFontSize();