From 1e6d43acc31f1c3075e8aec72065b9478563f8c8 Mon Sep 17 00:00:00 2001 From: subhra74 Date: Sat, 6 Aug 2022 19:17:33 +0530 Subject: [PATCH] fixed yt-dlp executable name for linux --- .../NativeMessagingHost.csproj | 2 +- app/XDM/XDM.Core/Updater/UpdateChecker.cs | 2 +- app/XDM/XDM.Core/Util/Helpers.cs | 2 +- app/XDM/XDM.Gtk.UI/XDM.Gtk.UI.csproj | 7 +++- app/XDM/XDM.Wpf.UI/XDM.Wpf.UI.csproj | 40 +------------------ 5 files changed, 11 insertions(+), 42 deletions(-) diff --git a/app/XDM/NativeMessagingHost/NativeMessagingHost.csproj b/app/XDM/NativeMessagingHost/NativeMessagingHost.csproj index c9abf5b..0cb9101 100644 --- a/app/XDM/NativeMessagingHost/NativeMessagingHost.csproj +++ b/app/XDM/NativeMessagingHost/NativeMessagingHost.csproj @@ -30,7 +30,7 @@ App.PreDotNet4.config - + none false diff --git a/app/XDM/XDM.Core/Updater/UpdateChecker.cs b/app/XDM/XDM.Core/Updater/UpdateChecker.cs index d87a3fc..9b98b60 100644 --- a/app/XDM/XDM.Core/Updater/UpdateChecker.cs +++ b/app/XDM/XDM.Core/Updater/UpdateChecker.cs @@ -137,7 +137,7 @@ namespace XDM.Core.Updater //TODO: Handle MacOS private static string GetYoutubeDLExecutableNameForCurrentOS() => - Environment.OSVersion.Platform == PlatformID.Win32NT ? "yt-dlp_x86.exe" : "yt-dlp"; + Environment.OSVersion.Platform == PlatformID.Win32NT ? "yt-dlp_x86.exe" : "yt-dlp_linux"; //TODO: Handle MacOS private static string GetFFmpegExecutableNameForCurrentOS() => diff --git a/app/XDM/XDM.Core/Util/Helpers.cs b/app/XDM/XDM.Core/Util/Helpers.cs index 5c0a590..47248a5 100644 --- a/app/XDM/XDM.Core/Util/Helpers.cs +++ b/app/XDM/XDM.Core/Util/Helpers.cs @@ -278,7 +278,7 @@ namespace XDM.Core.Util public static string FindYDLBinary() { //var executableName = Environment.OSVersion.Platform == PlatformID.Win32NT ? "youtube-dl.exe" : "youtube-dl"; - var executableName = Environment.OSVersion.Platform == PlatformID.Win32NT ? "yt-dlp_x86.exe" : "yt-dlp"; + var executableName = Environment.OSVersion.Platform == PlatformID.Win32NT ? "yt-dlp_x86.exe" : "yt-dlp_linux"; var path = Path.Combine(Config.DataDir, executableName); if (File.Exists(path)) { diff --git a/app/XDM/XDM.Gtk.UI/XDM.Gtk.UI.csproj b/app/XDM/XDM.Gtk.UI/XDM.Gtk.UI.csproj index ece917b..ed96273 100644 --- a/app/XDM/XDM.Gtk.UI/XDM.Gtk.UI.csproj +++ b/app/XDM/XDM.Gtk.UI/XDM.Gtk.UI.csproj @@ -7,7 +7,7 @@ true xdm-app true - Link + Link XDM.GtkUI @@ -20,6 +20,11 @@ + + none + false + + diff --git a/app/XDM/XDM.Wpf.UI/XDM.Wpf.UI.csproj b/app/XDM/XDM.Wpf.UI/XDM.Wpf.UI.csproj index 4a0358e..0d184c3 100644 --- a/app/XDM/XDM.Wpf.UI/XDM.Wpf.UI.csproj +++ b/app/XDM/XDM.Wpf.UI/XDM.Wpf.UI.csproj @@ -18,36 +18,12 @@ true - - true - DEBUG;TRACE - - - true - - - + none false - - none - false - - - - @@ -60,20 +36,12 @@ - - Always - - - + @@ -98,10 +66,6 @@ - -