fix(xtream): use .m3u8 instead of .ts for live streams

This commit is contained in:
4gray committed 2024-08-24 18:38:35 +02:00
1 parent 7091683bc1
commit 6f4ed6f0de
1 file changed
+3 -1
@@ -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);
}