mirror of
https://github.com/knightcrawler-stremio/knightcrawler.git
synced 2024-12-20 03:29:51 +00:00
use custom fn to detect same filename in debrids
This commit is contained in:
@@ -48,7 +48,7 @@ export async function enrichMeta(itemMeta) {
|
||||
return itemMeta
|
||||
}
|
||||
|
||||
function sameFilename(filename, expectedFilename) {
|
||||
export function sameFilename(filename, expectedFilename) {
|
||||
const offset = filename.length - expectedFilename.length;
|
||||
for (let i = 0; i < expectedFilename.length; i++) {
|
||||
if (filename[offset + i] !== expectedFilename[i] && expectedFilename[i] !== '<27>') {
|
||||
|
||||
Reference in New Issue
Block a user