From 0a47208a0c1d00099476be14fc88e7234ff95a30 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 17 Jul 2022 22:16:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE/Program.cs b/src/N_m3u8DL-RE/Program.cs index e13685c..a4c53a9 100644 --- a/src/N_m3u8DL-RE/Program.cs +++ b/src/N_m3u8DL-RE/Program.cs @@ -76,9 +76,9 @@ namespace N_m3u8DL_RE var streams = await extractor.ExtractStreamsAsync(); //全部媒体 - var lists = streams.OrderByDescending(p => p.Bandwidth); + var lists = streams.OrderBy(p => p.MediaType).ThenByDescending(p => p.Bandwidth); //基本流 - var basicStreams = lists.Where(x => x.MediaType == null); + var basicStreams = lists.Where(x => x.MediaType == null || x.MediaType == MediaType.VIDEO); //可选音频轨道 var audios = lists.Where(x => x.MediaType == MediaType.AUDIO); //可选字幕轨道