fix(xtream): enhance content retrieval by adding content type filtering for Xtream ID lookups #756

Entire-Checkpoint: c6e522b4276c
This commit is contained in:
4gray committed 2026-04-19 22:33:49 +02:00
1 parent d3231151e7
commit ff605fc024
20 files changed
+462 -44

No files matched your search

@@ -781,12 +781,14 @@ export class DatabaseService {
*/
async getContentByXtreamId(
xtreamId: number,
playlistId: string
playlistId: string,
contentType?: 'live' | 'movie' | 'series'
): Promise<XtreamContent | null> {
try {
return await window.electron.dbGetContentByXtreamId(
xtreamId,
playlistId
playlistId,
contentType
);
} catch (error) {
console.error('Error getting content by xtream ID:', error);