From 6f4ed6f0dea3deaf27f54df1a3e7ed89ccf99c0d Mon Sep 17 00:00:00 2001 From: 4gray Date: Sat, 24 Aug 2024 18:37:05 +0200 Subject: [PATCH] fix(xtream): use .m3u8 instead of .ts for live streams --- src/app/xtream/xtream-main-container.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/xtream/xtream-main-container.component.ts b/src/app/xtream/xtream-main-container.component.ts index e02119719..e6521c6fb 100644 --- a/src/app/xtream/xtream-main-container.component.ts +++ b/src/app/xtream/xtream-main-container.component.ts @@ -287,6 +287,7 @@ export class XtreamMainContainerComponent implements OnInit { } ngOnDestroy(): void { + this.portalStore.setSearchPhrase(''); if (this.dataService.isElectron) { this.commandsList.forEach((command) => this.dataService.removeAllListeners(command.id) @@ -304,6 +305,7 @@ export class XtreamMainContainerComponent implements OnInit { categoryClicked(item: XtreamCategory) { this.items = []; + this.streamUrl = undefined; this.portalStore.setSearchPhrase(''); const action = ContentTypes[this.selectedContentType].getContentAction; this.breadcrumbs.push({ @@ -342,7 +344,7 @@ export class XtreamMainContainerComponent implements OnInit { playLiveStream(item: XtreamLiveStream) { const { serverUrl, username, password } = this.currentPlaylist(); - const streamUrl = `${serverUrl}/${item.stream_type}/${username}/${password}/${item.stream_id}.ts`; + const streamUrl = `${serverUrl}/${item.stream_type}/${username}/${password}/${item.stream_id}.m3u8`; this.openPlayer(streamUrl, item.name); }