mirror of
https://github.com/truewhile/MeBox.git
synced 2026-09-29 19:36:36 +08:00
优化
This commit is contained in:
@@ -10,13 +10,9 @@ export interface PlayProfile {
|
||||
preferred_audio_lang?: string
|
||||
autoplay_next: boolean
|
||||
skip_intro: boolean
|
||||
segment_source?: SegmentSource
|
||||
allowed_library_ids: string[]
|
||||
total_watch_time: number
|
||||
last_active_at?: string
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
/** 片头/片尾数据来源:auto 优先文件内嵌章节,没有则回落 TheIntroDB。 */
|
||||
export type SegmentSource = 'auto' | 'theintrodb' | 'ffprobe'
|
||||
|
||||
@@ -43,16 +43,5 @@ export interface PlaybackSegmentsResponse {
|
||||
segments: PlaybackSegment[]
|
||||
/** 当前生效播放档案的「自动跳过片头」开关。 */
|
||||
auto_skip: boolean
|
||||
/**
|
||||
* true 表示 ffprobe 章节提取还在服务端后台跑:这次可能还没有章节数据,隔几秒
|
||||
* 再拉一次就能拿到。拿到时若片头还没播完,跳过按钮会自动出现;已经过了片头
|
||||
* 时间则不会提示。
|
||||
*/
|
||||
pending?: boolean
|
||||
/** 本次实际生效的数据来源。 */
|
||||
source?: PlaybackSegmentSource
|
||||
}
|
||||
|
||||
/** 片头/片尾数据来源,与后端 play_profiles.segment_source 一致。 */
|
||||
export type PlaybackSegmentSource = 'auto' | 'theintrodb' | 'ffprobe'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user