From 01e6b5b0d01f4e78475cdba611e9f85e2fe6e490 Mon Sep 17 00:00:00 2001 From: soloturn Date: Mon, 3 Jan 2022 19:46:55 +0100 Subject: [PATCH] videoripper java.nio --- src/main/java/com/rarchives/ripme/ripper/VideoRipper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/VideoRipper.java b/src/main/java/com/rarchives/ripme/ripper/VideoRipper.java index 9e935d62..8922b93f 100644 --- a/src/main/java/com/rarchives/ripme/ripper/VideoRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/VideoRipper.java @@ -44,10 +44,11 @@ public abstract class VideoRipper extends AbstractRipper { } @Override - public boolean addURLToDownload(URL url, File saveAs) { + public boolean addURLToDownload(URL url, File saveAsF) { + Path saveAs = saveAsF.toPath(); if (Utils.getConfigBoolean("urls_only.save", false)) { // Output URL to file - String urlFile = this.workingDir + File.separator + "urls.txt"; + String urlFile = this.workingDir + "/urls.txt"; try (FileWriter fw = new FileWriter(urlFile, true)) { fw.write(url.toExternalForm());