Skip to content

Commit

Permalink
Shared - Fix Downloading > 1080p Videos
Browse files Browse the repository at this point in the history
Fixes #696
  • Loading branch information
nlogozzo committed Dec 24, 2023
1 parent 612333b commit f4b9e21
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions NickvisionTubeConverter.GNOME/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public Program(string[] args)
_mainWindowController = new MainWindowController(args);
_mainWindowController.AppInfo.Changelog =
@"* Fixed an issue where split chapters were not renamed correctly
* Fixed an issue where videos would not download greater than 1080p resolution
* Updated translations (Thanks everyone on Weblate!)";
_application.OnActivate += OnActivate;
g_signal_connect_data(_application.Handle, "open", _openCallback, IntPtr.Zero, IntPtr.Zero, 0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<release version="2023.12.0" date="2023-12-01">
<description translatable="no">
<p>- Fixed an issue where split chapters were not renamed correctly</p>
<p>- Fixed an issue where videos would not download greater than 1080p resolution</p>
<p>- Updated translations (Thanks everyone on Weblate!)</p>
</description>
</release>
Expand Down
2 changes: 1 addition & 1 deletion NickvisionTubeConverter.Shared/Models/Download.cs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public void Start(DownloadOptions options)
_ => ""
};
var proto = _advancedOptions.Timeframe != null ? "[protocol!*=m3u8]" : "";
var vcodec = _advancedOptions.PreferAV1 ? "[vcodec=vp9.2]" : "[vcodec!*=vp]";
var vcodec = (_advancedOptions.PreferAV1 || Resolution! > new VideoResolution(1920, 1080)) ? "[vcodec=vp9.2]" : "[vcodec!*=vp]";
var resolution = Resolution! == VideoResolution.Best ? "" : $"[width<={Resolution!.Width}][height<={Resolution!.Height}]";
var formats = new HashSet<string>() //using a HashSet ensures no duplicates, for example if ext == ""
{
Expand Down
1 change: 1 addition & 0 deletions NickvisionTubeConverter.WinUI/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public App()
InitializeComponent();
_controller = new MainWindowController(Array.Empty<string>());
_controller.AppInfo.Changelog = @"- Fixed an issue where split chapters were not renamed correctly
- Fixed an issue where videos would not download greater than 1080p resolution
- Redesigned the app's UI
- Updated translations (Thanks everyone on Weblate!)";
if (_controller.Theme != Theme.System)
Expand Down

0 comments on commit f4b9e21

Please sign in to comment.