mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 01:50:04 -04:00
Update database/export.js
This commit is contained in:
parent
9a95ff55a5
commit
ce46e88939
3 changed files with 9 additions and 10 deletions
|
@ -6,15 +6,14 @@ const PUBLIC_DIR = process.env.PUBLIC_DIR || '.gh-pages'
|
|||
async function main() {
|
||||
await db.streams.load()
|
||||
let streams = await db.streams.find({})
|
||||
streams = _.sortBy(streams, 'channel_id')
|
||||
streams = _.sortBy(streams, 'channel')
|
||||
streams = streams.map(stream => {
|
||||
return {
|
||||
channel: stream.channel,
|
||||
title: stream.title,
|
||||
url: stream.url,
|
||||
http_referrer: stream.http_referrer,
|
||||
user_agent: stream.user_agent,
|
||||
is_online: stream.is_online,
|
||||
status: stream.status,
|
||||
width: stream.width,
|
||||
height: stream.height,
|
||||
bitrate: stream.bitrate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue