Update database/update.js

This commit is contained in:
Aleksandr Statciuk 2022-02-13 05:09:04 +03:00
parent 25cfecbbf9
commit b3132150d7
3 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ function findOrigin(requests = [], origins = {}) {
function parseStreams(streams) {
streams = streams.filter(s => s.codec_type === 'video')
streams = _.orderBy(streams, ['height', 'bitrate'], ['desc', 'desc'])
streams = _.orderBy(streams, ['height', 'tags.variant_bitrate'], ['desc', 'desc'])
const data = _.head(streams)
if (data) {