- 过滤/排除支持 & | (),兼容旧逗号语义 - 字幕组快捷单选填入;同名订阅拒绝重复 - 单集只下一次、缺集按「番名+补零集数」重搜 - VideoCard 管理员可添加追番;PlayRecord 增加 is_anime 及迁移
41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
export interface AnimeSubscription {
|
|
id: string;
|
|
title: string;
|
|
/**
|
|
* 包含关键词表达式。
|
|
* 支持 &(且)|(或)();无运算符时逗号为 AND(兼容旧数据)。
|
|
* 例:喵萌奶茶屋&(简日双语|简日内嵌)
|
|
*/
|
|
filterText: string;
|
|
/**
|
|
* 排除关键词表达式。
|
|
* 支持 & | ();无运算符时逗号为 OR(兼容旧数据)。
|
|
* 例:先行|预告|PV
|
|
*/
|
|
excludeText?: string;
|
|
source: 'acgrip' | 'mikan' | 'dmhy' | 'nyaa';
|
|
enabled: boolean;
|
|
/**
|
|
* 单集只下载一次:同一集匹配到多个种子时只入队一条(可选,默认 false)
|
|
*/
|
|
onePerEpisode?: boolean;
|
|
/**
|
|
* 缺集重新检索:首搜若跳集(如已看到 1,结果只有 11/12),
|
|
* 则对中间缺集按「番名 + 补零集数」再搜(可选,默认 false)
|
|
*/
|
|
refillMissingEpisodes?: boolean;
|
|
lastCheckTime: number;
|
|
lastEpisode: number;
|
|
createdAt: number;
|
|
updatedAt: number;
|
|
createdBy: string;
|
|
}
|
|
|
|
export type AnimeSubscriptionDownloadTool = 'aria2' | 'qBittorrent' | 'Transmission';
|
|
|
|
export interface AnimeSubscriptionConfig {
|
|
Enabled: boolean;
|
|
DownloadTool?: AnimeSubscriptionDownloadTool;
|
|
Subscriptions: AnimeSubscription[];
|
|
}
|