mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-12 10:00:07 -04:00
Update store.js
Disables guides downloading
This commit is contained in:
parent
f3d4efea6b
commit
c67831571c
1 changed files with 8 additions and 7 deletions
15
src/store.js
15
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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue