mirror of
https://github.com/iptv-org/iptv-org.github.io.git
synced 2025-05-11 17:40:05 -04:00
Update store.js
This commit is contained in:
parent
b03fe17124
commit
94e17a52c3
1 changed files with 1 additions and 0 deletions
|
@ -143,6 +143,7 @@ async function loadAPI() {
|
|||
api.guides = await fetch('https://iptv-org.github.io/api/guides.json')
|
||||
.then(r => r.json())
|
||||
.then(data => (data.length ? data : []))
|
||||
.then(data => data.filter(guide => guide.channel))
|
||||
.then(data => _.sortBy(data, 'lang'))
|
||||
.then(data => _.groupBy(data, 'channel'))
|
||||
.catch(err => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue