mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 13:46:16 -08:00
feat: enhance EPG handling and improve component tests for live streams
This commit is contained in:
1 parent
2e92629154
commit
d22515657d
4 files changed
+204
-45
No files matched your search
+16
-8
@@ -184,9 +184,15 @@ export class UnifiedLiveTabComponent {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.activeUid() === matchedItem.uid && this.activeDetail()) {
|
||||
this.autoOpenHandled.emit();
|
||||
return;
|
||||
if (this.activeUid() === matchedItem.uid) {
|
||||
if (this.activeDetail()) {
|
||||
this.autoOpenHandled.emit();
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.isSelecting()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
void this.activateItem(matchedItem, true);
|
||||
@@ -200,7 +206,9 @@ export class UnifiedLiveTabComponent {
|
||||
}
|
||||
|
||||
async onChannelSelected(channel: UnifiedFavoriteChannel): Promise<void> {
|
||||
const item = this.items().find((candidate) => candidate.uid === channel.uid);
|
||||
const item = this.items().find(
|
||||
(candidate) => candidate.uid === channel.uid
|
||||
);
|
||||
if (!item) {
|
||||
return;
|
||||
}
|
||||
@@ -208,7 +216,9 @@ export class UnifiedLiveTabComponent {
|
||||
}
|
||||
|
||||
onFavoriteToggled(channel: UnifiedFavoriteChannel): void {
|
||||
const item = this.items().find((candidate) => candidate.uid === channel.uid);
|
||||
const item = this.items().find(
|
||||
(candidate) => candidate.uid === channel.uid
|
||||
);
|
||||
if (item) {
|
||||
this.removeItem.emit(item);
|
||||
}
|
||||
@@ -230,9 +240,7 @@ export class UnifiedLiveTabComponent {
|
||||
this.activeUid.set(null);
|
||||
}
|
||||
|
||||
private async loadEpgMap(
|
||||
items: UnifiedCollectionItem[]
|
||||
): Promise<void> {
|
||||
private async loadEpgMap(items: UnifiedCollectionItem[]): Promise<void> {
|
||||
const epgMap = await this.streamResolver.loadEpgForItems(items);
|
||||
this.epgMap.set(epgMap);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user