mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-16 06:06:18 -08:00
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.
19 lines
655 B
TypeScript
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,
|
|
};
|
|
}
|