mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 10:00:05 -04:00
Update database/update.js
This commit is contained in:
parent
b3132150d7
commit
4a0666122d
2 changed files with 6 additions and 2 deletions
|
@ -134,7 +134,11 @@ function findOrigin(requests = [], origins = {}) {
|
|||
|
||||
function parseStreams(streams) {
|
||||
streams = streams.filter(s => s.codec_type === 'video')
|
||||
streams = _.orderBy(streams, ['height', 'tags.variant_bitrate'], ['desc', 'desc'])
|
||||
streams = _.orderBy(
|
||||
streams,
|
||||
['height', s => (s.tags.variant_bitrate ? parseInt(s.tags.variant_bitrate) : 0)],
|
||||
['desc', 'desc']
|
||||
)
|
||||
|
||||
const data = _.head(streams)
|
||||
if (data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue