mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Update update.js
This commit is contained in:
parent
fd60c886fe
commit
95ba14bbdd
1 changed files with 3 additions and 1 deletions
|
@ -98,6 +98,8 @@ async function updateStreams(items = [], results = {}, origins = {}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stream.changed) updated++
|
||||||
|
|
||||||
output.push(stream.data())
|
output.push(stream.data())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +109,7 @@ async function updateStreams(items = [], results = {}, origins = {}) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function updateDatabase(streams = []) {
|
async function updateDatabase(streams = []) {
|
||||||
logger.info('updating database...')
|
logger.info('saving to database...')
|
||||||
|
|
||||||
for (const stream of streams) {
|
for (const stream of streams) {
|
||||||
await db.streams.update({ _id: stream._id }, stream)
|
await db.streams.update({ _id: stream._id }, stream)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue