Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
隐藏用户无法观看的清晰度 (#1313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Richasy committed Jul 5, 2022
1 parent 68e99a6 commit b7f9ee9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ private async Task InitializeOrginalLiveSourceAsync()

foreach (var item in _liveMediaInformation.Formats)
{
Formats.Add(item);
if (!item.IsLimited)
{
Formats.Add(item);
}
}

var formatId = _settingsToolkit.ReadLocalSetting(SettingNames.IsPreferHighQuality, false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ private async Task InitializeOrginalVideoSourceAsync()

foreach (var item in _mediaInformation.Formats)
{
Formats.Add(item);
if (!item.IsLimited)
{
Formats.Add(item);
}
}

var formatId = _settingsToolkit.ReadLocalSetting(SettingNames.IsPreferHighQuality, false)
Expand Down

0 comments on commit b7f9ee9

Please sign in to comment.