mirror of
https://github.com/iptv-org/iptv
synced 2026-10-30 06:44:16 -04:00
Update update.js
This commit is contained in:
1 parent
7b2d06f26f
commit
5b90a6f5d8
1 file changed
+3
-1
@@ -26,7 +26,9 @@ async function updateStreams(items = [], results = {}, origins = {}) {
|
|||||||
const result = results[item._id]
|
const result = results[item._id]
|
||||||
if (result) {
|
if (result) {
|
||||||
const status = parseStatus(result.error)
|
const status = parseStatus(result.error)
|
||||||
stream.set('status', { status })
|
if (status) {
|
||||||
|
stream.set('status', { status })
|
||||||
|
}
|
||||||
|
|
||||||
if (result.streams.length) {
|
if (result.streams.length) {
|
||||||
const { width, height, bitrate, frame_rate } = parseMediaInfo(result.streams)
|
const { width, height, bitrate, frame_rate } = parseMediaInfo(result.streams)
|
||||||
|
|||||||
Reference in new issue
Block a user