diff --git a/apps/web/src/app/xtream-tauri/category-view/category-view.component.html b/apps/web/src/app/xtream-tauri/category-view/category-view.component.html index c94586314..4f846df56 100644 --- a/apps/web/src/app/xtream-tauri/category-view/category-view.component.html +++ b/apps/web/src/app/xtream-tauri/category-view/category-view.component.html @@ -9,7 +9,9 @@ {{ item.category_name || $any(item).name || 'No category name' }} - ({{ getItemCount(item) }}) + @if (showCounts()) { + ({{ getItemCount(item) }}) + } } @empty { (); readonly itemCounts = input>(new Map()); + readonly showCounts = input(false); readonly categoryClicked = output(); diff --git a/apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.html b/apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.html index cee63ce9c..cb34a6c50 100644 --- a/apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.html +++ b/apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.html @@ -30,6 +30,7 @@ [items]="categories()" [itemCounts]="categoryItemCounts()" (categoryClicked)="selectCategory($event)" + [showCounts]="true" /> } diff --git a/apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.ts b/apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.ts index c899b7931..11e5178b5 100644 --- a/apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.ts +++ b/apps/web/src/app/xtream-tauri/live-stream-layout/live-stream-layout.component.ts @@ -84,6 +84,13 @@ export class LiveStreamLayoutComponent implements OnInit { playLive(item: any) { const streamUrl = this.xtreamStore.constructStreamUrl(item); this.streamUrl = streamUrl; + const isEmbeddedPlayer = + this.player() === 'videojs' || + this.player() === 'html5' || + this.player() === 'artplayer'; + if (isEmbeddedPlayer) { + return; + } this.xtreamStore.openPlayer(streamUrl, item.title, item.poster_url); } diff --git a/apps/web/src/app/xtream-tauri/xtream-main-container.component.html b/apps/web/src/app/xtream-tauri/xtream-main-container.component.html index 4b388fd1a..6c6895e60 100644 --- a/apps/web/src/app/xtream-tauri/xtream-main-container.component.html +++ b/apps/web/src/app/xtream-tauri/xtream-main-container.component.html @@ -18,6 +18,7 @@ [selectedCategoryId]="selectedCategoryId()" [itemCounts]="categoryItemCounts()" (categoryClicked)="categoryClicked($event)" + [showCounts]="true" />