mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: adjust scoring for file selection and add .iso as a valid video file extension
This commit is contained in:
@@ -210,6 +210,15 @@ export async function selectFileInTorrentOrNZB(
|
||||
continue;
|
||||
}
|
||||
|
||||
if (
|
||||
file.name &&
|
||||
['sample', 'trailer', 'preview'].some((keyword) =>
|
||||
file.name!.toLowerCase().includes(keyword)
|
||||
)
|
||||
) {
|
||||
score -= 500;
|
||||
}
|
||||
|
||||
// Base score from video file status (highest priority)
|
||||
if (isVideo[index]) {
|
||||
score += 1000;
|
||||
@@ -353,6 +362,7 @@ export function isVideoFile(file: DebridFile): boolean {
|
||||
'.flv',
|
||||
'.gif',
|
||||
'.gifv',
|
||||
'.iso',
|
||||
'.m2v',
|
||||
'.m4p',
|
||||
'.m4v',
|
||||
|
||||
Reference in New Issue
Block a user