Update store.js

This commit is contained in:
freearhey 2023-12-06 23:18:24 +03:00
parent b03fe17124
commit 94e17a52c3

View file

@ -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 => {