mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-08 20:57:32 +08:00
feat: support save live channel to favorite
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -23,6 +23,7 @@ export interface Favorite {
|
||||
cover: string;
|
||||
save_time: number; // 记录保存时间(时间戳)
|
||||
search_title: string; // 搜索时使用的标题
|
||||
origin?: 'vod' | 'live';
|
||||
}
|
||||
|
||||
// 存储接口
|
||||
|
||||
Reference in New Issue
Block a user