Skip to content

Commit

Permalink
%PATH% rather than %path%
Browse files Browse the repository at this point in the history
  • Loading branch information
awidesky committed Jul 23, 2021
1 parent 90b9806 commit 3145c70
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static boolean checkYoutubedl() {

if (!checkYoutubedlPath(youtubedlpath + "youtube-dl")) {

GUI.error("Error!", "youtube-dl does not exist in\n" + youtubedlpath + "\nor system %path%!", null);
GUI.error("Error!", "youtube-dl does not exist in\n" + youtubedlpath + "\nor system %PATH%!", null);
if (GUI.confirm("youtube-dl does not exist!", "Move to download page of youtube-dl?")) Main.webBrowse("http://ytdl-org.github.io/youtube-dl/download.html");
return false;

Expand Down Expand Up @@ -119,15 +119,15 @@ public static boolean checkFfmpeg() {
try (BufferedReader br = new BufferedReader(new InputStreamReader(p.getInputStream()))) {
String output;
if (!(output = br.readLine()).startsWith("ffmpeg version"))
throw new Exception("ffmpeg does not exist in\n" + (youtubedlpath.equals("") ? "system %path%" : youtubedlpath));
throw new Exception("ffmpeg does not exist in\n" + (youtubedlpath.equals("") ? "system %PATH%" : youtubedlpath));
else Main.log(output);
} catch (IOException e1) { throw e1; }

Main.log("Executing ffmpeg -version ended with exit code : " + p.waitFor());

} catch (Exception e) {

GUI.error("Error!", "ffmpeg does not exist in\n" + youtubedlpath + "\nor system %path%!", null);
GUI.error("Error!", "ffmpeg does not exist in\n" + youtubedlpath + "\nor system %PATH%!", null);
if (GUI.confirm("ffmpeg does not exist!", "Move to download page of ffmpeg?")) Main.webBrowse("https://ffmpeg.org/download.html");
return false;

Expand Down

0 comments on commit 3145c70

Please sign in to comment.