mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-18 03:37:28 +08:00
feat: support save live channel to favorite
This commit is contained in:
@@ -519,7 +519,10 @@ async function refreshRecordAndFavorites() {
|
||||
|
||||
// 收藏
|
||||
try {
|
||||
const favorites = await db.getAllFavorites(user);
|
||||
let favorites = await db.getAllFavorites(user);
|
||||
favorites = Object.fromEntries(
|
||||
Object.entries(favorites).filter(([_, fav]) => fav.origin !== 'live')
|
||||
);
|
||||
const totalFavorites = Object.keys(favorites).length;
|
||||
let processedFavorites = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user