Skip to content

Commit 24f9ef8

Browse files
committed
1.9.3 Fix issue with undefined outputPath
1 parent b2a8d5c commit 24f9ef8

File tree

6 files changed

+19
-6
lines changed

6 files changed

+19
-6
lines changed

PlaylistDownloader.exe

-2.21 KB
Binary file not shown.

PlaylistDownloader.zip

19.4 KB
Binary file not shown.

PlaylistDownloader/Installer/InnoPlaylistDownloaderInstallerScript.iss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
88
AppId={{B0011CEC-2AE2-40CF-9136-C2BD13928896}
99
AppName=PlaylistDownloader
10-
AppVersion=1.8
11-
AppVerName=PlaylistDownloader 1.8
10+
AppVersion=1.9.3
11+
AppVerName=PlaylistDownloader 1.9.3
1212
AppPublisher=Taxrebel productions
1313
AppPublisherURL=https://github.com/bertyhell/PlaylistDownloader
1414
AppSupportURL=https://github.com/bertyhell/PlaylistDownloader

PlaylistDownloader/PlaylistDownloader/DownloadWindow.xaml.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ private void DownloaderProgressChanged(object sender, ProgressChangedEventArgs e
132132

133133
private void ButtonOpenFolderClick(object sender, RoutedEventArgs e)
134134
{
135-
Directory.CreateDirectory(_runSettings.SongsFolder);
135+
if (!Directory.Exists(_runSettings.SongsFolder))
136+
{
137+
Directory.CreateDirectory(_runSettings.SongsFolder);
138+
}
136139
Process.Start(_runSettings.SongsFolder);
137140
}
138141

PlaylistDownloader/PlaylistDownloader/SettingsWindow.xaml.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,17 @@ private RunSettings InitializeRunSettings()
140140
}
141141
}
142142

143+
var outputPath = Properties.Settings.Default.OutputPath;
144+
if (outputPath == null || outputPath == "")
145+
{
146+
outputPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.MyMusic), "PlaylistDownloader");
147+
}
148+
143149
var settings = new RunSettings
144150
{
145151
YoutubeDlPath = Properties.Settings.Default.YoutubeDlPath,
146152
FfmpegPath = Properties.Settings.Default.FfmpegPath,
147-
SongsFolder = Properties.Settings.Default.OutputPath
153+
SongsFolder = outputPath
148154
};
149155

150156
settings.IsDebug = _isDebugMode;
@@ -323,7 +329,11 @@ private void ButtonSearchClick(object sender, RoutedEventArgs e)
323329

324330
private void ButtonOpenFolderClick(object sender, RoutedEventArgs e)
325331
{
326-
Directory.CreateDirectory(_runSettings.SongsFolder);
332+
333+
if (!Directory.Exists(_runSettings.SongsFolder))
334+
{
335+
Directory.CreateDirectory(_runSettings.SongsFolder);
336+
}
327337
Process.Start(_runSettings.SongsFolder);
328338
}
329339

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PlaylistDownloader 1.9.2
1+
PlaylistDownloader 1.9.3
22
========================
33

44
Download your whole playlist with one click of a button

0 commit comments

Comments
 (0)