mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(xtream): use .m3u8 instead of .ts for live streams
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user