From 8e991990bff32a019893e31cd37f30dce48bd115 Mon Sep 17 00:00:00 2001 From: Cadence Ember Date: Tue, 25 Aug 2020 01:50:03 +1200 Subject: [PATCH] Use second__order to sort formats --- pug/video.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pug/video.pug b/pug/video.pug index 57cad7b..64c42a0 100644 --- a/pug/video.pug +++ b/pug/video.pug @@ -9,7 +9,7 @@ block head block content - const sortedFormatStreams = video.formatStreams.slice().sort((a, b) => b.second__height - a.second__height) - - const sortedVideoAdaptiveFormats = video.adaptiveFormats.filter(f => f.type.startsWith("video")).sort((a, b) => b.second__height - a.second__height) + - const sortedVideoAdaptiveFormats = video.adaptiveFormats.filter(f => f.type.startsWith("video")).sort((a, b) => a.second__order - b.second__order) main.video-page .main-video-section .video-container