1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-30 17:20:20 +02:00

videoripper java.nio

This commit is contained in:
soloturn
2022-01-03 19:46:55 +01:00
parent 6c74922d6a
commit 01e6b5b0d0

View File

@@ -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());