feat: support save live channel to favorite

This commit is contained in:
shinya
2025-08-26 16:36:44 +08:00
parent 918943e173
commit cf80aa954b
12 changed files with 434 additions and 49 deletions

View File

@@ -51,6 +51,7 @@ export interface Favorite {
total_episodes: number;
save_time: number;
search_title?: string;
origin?: 'vod' | 'live';
}
// ---- 缓存数据结构 ----
@@ -1357,7 +1358,7 @@ export function subscribeToDataUpdates<T>(
callback: (data: T) => void
): () => void {
if (typeof window === 'undefined') {
return () => {};
return () => { };
}
const handleUpdate = (event: CustomEvent) => {

View File

@@ -23,6 +23,7 @@ export interface Favorite {
cover: string;
save_time: number; // 记录保存时间(时间戳)
search_title: string; // 搜索时使用的标题
origin?: 'vod' | 'live';
}
// 存储接口