fix getVideoList to return torrent results directly instead of assigning to a variable

This commit is contained in:
Moustapha Kodjo Amadou 2025-11-07 12:23:35 +01:00
parent fef6ffd65b
commit 6e776612bf

View file

@ -86,7 +86,7 @@ Future<(List<Video>, bool, List<String>, Directory?)> getVideoList(
episode.url,
episode.archivePath,
);
result = (videos, false, [infohash ?? ""], mpvDirectory);
return (videos, false, [infohash ?? ""], mpvDirectory);
}
try {
@ -112,7 +112,7 @@ Future<(List<Video>, bool, List<String>, Directory?)> getVideoList(
}
}
}
result = (torrentList, false, infoHashes, mpvDirectory);
return (torrentList, false, infoHashes, mpvDirectory);
}
List<Video> list = await getExtensionService(