Initial commit

This commit is contained in:
admin1
2026-07-14 11:11:36 +08:00
commit 656499cf94
604 changed files with 119518 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
import '../contracts/danmaku.dart';
import 'danmaku_episode_parser.dart';
int pickBestMatchIndex(List<DanmakuMatch> matches, int? targetEpisode) {
if (targetEpisode == null) return 0;
for (var i = 0; i < matches.length; i++) {
final n = extractEpisodeNumberFromTitle(matches[i].episodeTitle);
if (n == targetEpisode) return i;
}
return 0;
}