refactor: decouple from site-specific CDN references #5
+2
-2
@@ -925,8 +925,8 @@ function filterManifests(manifests) {
|
||||
}
|
||||
const path = urlObj.pathname.toLowerCase();
|
||||
// 1) Concrete media/manifest signals win outright: a real file extension or
|
||||
// /hls/ path is fetchable, even with a trailing slash (thisvid serves
|
||||
// .../14644093.mp4/) or a token-bearing query — so check these before the
|
||||
// /hls/ path is fetchable, even with a trailing slash
|
||||
// or a token-bearing query — so check these before the
|
||||
// template heuristics and never let a coincidental '%'/'/' sink a source.
|
||||
if (path.includes('.m3u8') || path.includes('.hlsvod') || path.includes('/hls/') ||
|
||||
path.includes('/manifest') || path.includes('.mp4') || path.includes('.webm') ||
|
||||
|
||||
Reference in new issue
Block a user