From 4bad8868624d1d6f91d5fce17d2b552ef42731cb Mon Sep 17 00:00:00 2001
From: freearhey <7253922+freearhey@users.noreply.github.com>
Date: Mon, 9 Oct 2023 16:04:01 +0300
Subject: [PATCH] Returns back the list of streams
---
src/components/ChannelItem.svelte | 28 +----------------
src/components/GuidesPopup.svelte | 16 +++-------
.../channels/[country]/[name]/+page.server.js | 30 +++++--------------
.../channels/[country]/[name]/+page.svelte | 20 +------------
src/store.js | 3 --
5 files changed, 14 insertions(+), 83 deletions(-)
diff --git a/src/components/ChannelItem.svelte b/src/components/ChannelItem.svelte
index 67a6bd9d3..a4644dd9e 100644
--- a/src/components/ChannelItem.svelte
+++ b/src/components/ChannelItem.svelte
@@ -9,7 +9,6 @@
export let channel
- const guides = channel._guides
const streams = channel._streams
const [name, country] = channel.id.split('.')
@@ -26,7 +25,7 @@
const showGuides = () =>
open(
GuidesPopup,
- { guides, title: channel.name },
+ { title: channel.name },
{ transitionBgProps: { duration: 0 }, transitionWindowProps: { duration: 0 } }
)
const showStreams = () =>
@@ -138,31 +137,6 @@
-
{#if streams.length}
{/if}
-
diff --git a/src/store.js b/src/store.js
index 5e305129e..9b1d7b624 100644
--- a/src/store.js
+++ b/src/store.js
@@ -52,7 +52,6 @@ export async function fetchChannels() {
'closed',
'replaced_by',
'streams',
- 'guides',
'is_nsfw',
'is_closed',
'is_blocked'
@@ -128,8 +127,6 @@ async function loadAPI() {
.then(data => _.groupBy(data, 'channel'))
.catch(console.error)
- api.guides = {}
-
api.channels = await fetch('https://iptv-org.github.io/api/channels.json')
.then(r => r.json())
.catch(err => {