mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-21 23:38:50 -05:00
Fixed dropping of multiple file urls seperated by \r\n
This commit is contained in:
parent
61b63648ab
commit
a94e60312c
@ -69,7 +69,7 @@ public abstract class FileTransferablePolicy extends TransferablePolicy {
|
||||
try {
|
||||
String transferString = (String) tr.getTransferData(DataFlavor.stringFlavor);
|
||||
|
||||
String lines[] = transferString.split("\n");
|
||||
String lines[] = transferString.split("\r?\n");
|
||||
ArrayList<File> files = new ArrayList<File>(lines.length);
|
||||
|
||||
for (String line : lines) {
|
||||
@ -78,8 +78,8 @@ public abstract class FileTransferablePolicy extends TransferablePolicy {
|
||||
|
||||
if (file.exists())
|
||||
files.add(file);
|
||||
} catch (IllegalArgumentException e) {
|
||||
// invalid file uri
|
||||
} catch (Exception e) {
|
||||
System.err.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user