From c67831571ccb7da54d30c14e375d609bb86883c0 Mon Sep 17 00:00:00 2001 From: Arhey Date: Thu, 4 May 2023 05:47:37 +0300 Subject: [PATCH] Update store.js Disables guides downloading --- src/store.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/store.js b/src/store.js index e690db2a1..f1404c75e 100644 --- a/src/store.js +++ b/src/store.js @@ -143,11 +143,12 @@ async function loadAPI() { .then(data => _.groupBy(data, 'channel')) .catch(console.error) - api.guides = await fetch('https://iptv-org.github.io/api/guides.json') - .then(r => r.json()) - .then(data => (data.length ? data : [])) - .then(data => _.groupBy(data, 'channel')) - .catch(console.error) + api.guides = {} + // api.guides = await fetch('https://iptv-org.github.io/api/guides.json') + // .then(r => r.json()) + // .then(data => (data.length ? data : [])) + // .then(data => _.groupBy(data, 'channel')) + // .catch(console.error) api.channels = await fetch('https://iptv-org.github.io/api/channels.json') .then(r => r.json()) @@ -202,8 +203,8 @@ function getStreams() { export function createPlaylist() { const playlist = new Playlist() - let guides = getGuides() - playlist.header = { 'x-tvg-url': guides.sort().join(',') } + // let guides = getGuides() + // playlist.header = { 'x-tvg-url': guides.sort().join(',') } let streams = getStreams() streams.forEach(stream => {