Files
iptvnator/apps/electron-backend/src/app/database/operations/content-fields.ts
T
4gray 9a94570a6a fix(xtream): preserve favorites across catalog refreshes (#1934)
Preserve Xtream favorites independently of provider catalogs, including saved metadata, typed identity and backup restore progress. Keep unavailable items visible and removable, and guard catalog-dependent actions until compatible content returns.

Closes #1937.
2026-10-15 19:57:41 +02:00

19 lines
655 B
TypeScript

import * as schema from '@iptvnator/shared/database/schema';
export function selectContentFields() {
return {
id: schema.content.id,
category_id: schema.content.categoryId,
title: schema.content.title,
rating: schema.content.rating,
added: schema.content.added,
poster_url: schema.content.posterUrl,
epg_channel_id: schema.content.epgChannelId,
tv_archive: schema.content.tvArchive,
tv_archive_duration: schema.content.tvArchiveDuration,
direct_source: schema.content.directSource,
xtream_id: schema.content.xtreamId,
type: schema.content.type,
};
}