mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-13 10:30:03 -04:00
Update format.js
This commit is contained in:
parent
a9265451d1
commit
e4b6e5707a
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ async function updatePlaylist(playlist) {
|
||||||
let channels = {}
|
let channels = {}
|
||||||
let codes = {}
|
let codes = {}
|
||||||
if (!config.offline) {
|
if (!config.offline) {
|
||||||
channels = await loadChannelJson()
|
channels = await loadChannelsJson()
|
||||||
codes = await loadCodes()
|
codes = await loadCodes()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ function loadCodes() {
|
||||||
.catch(console.log)
|
.catch(console.log)
|
||||||
}
|
}
|
||||||
|
|
||||||
function loadChannelJson() {
|
function loadChannelsJson() {
|
||||||
return axios
|
return axios
|
||||||
.get('https://iptv-org.github.io/iptv/channels.json')
|
.get('https://iptv-org.github.io/iptv/channels.json')
|
||||||
.then(r => r.data)
|
.then(r => r.data)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue