1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-25 23:06:22 +02:00

Fixed minor bug with addURLToDownload(url, map<string,stirng>) which caused the file name to default to an empty string instead of null

This commit is contained in:
cyian-1756
2019-04-05 19:41:50 -04:00
parent 3ec36b456b
commit e510973a21

View File

@@ -236,7 +236,7 @@ public abstract class AbstractRipper
// Bit of a hack but this lets us pass a bool using a map<string,String>
boolean useMIME = options.getOrDefault("getFileExtFromMIME", "false").toLowerCase().equals("true");
return addURLToDownload(url, options.getOrDefault("prefix", ""), options.getOrDefault("subdirectory", ""), options.getOrDefault("referrer", null),
cookies, options.getOrDefault("fileName", ""), options.getOrDefault("extension", null), useMIME);
cookies, options.getOrDefault("fileName", null), options.getOrDefault("extension", null), useMIME);
}