mirror of
https://github.com/NohamR/N_m3u8DL-RE.git
synced 2025-07-10 14:07:06 +00:00
优化排序
This commit is contained in:
parent
f36ca8333f
commit
0a47208a0c
@ -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);
|
||||
//可选字幕轨道
|
||||
|
Loading…
x
Reference in New Issue
Block a user