mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-11 10:05:58 +01:00
[IMPL] path supports dir and files now
This commit is contained in:
@@ -24,7 +24,7 @@ public class QueryBuilder {
|
||||
public QueryBuilder() {
|
||||
}
|
||||
|
||||
public boolean executeUpdateOnAllFiles(String path, JTextPane outputArea) {
|
||||
public boolean executeUpdateOnAllFiles(String path, JTextArea outputArea) {
|
||||
List<String> allFilePaths = getAllFilesFromDirectory(path);
|
||||
if(allFilePaths == null){
|
||||
log.error("Couldn't process path!");
|
||||
@@ -32,7 +32,8 @@ public class QueryBuilder {
|
||||
}
|
||||
for(String filePath : allFilePaths){
|
||||
updateAttributes(filePath, queryAttributes(filePath));
|
||||
outputArea.setText("Success: " + filePath + "\n" + outputArea.getPage());
|
||||
log.info("Success: " + filePath);
|
||||
System.out.println("Success: " + filePath);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user