mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-11 02:05:56 +01:00
[ADDED] First README & [FIX] path checking
This commit is contained in:
@@ -18,7 +18,7 @@ public class AttributeUpdaterKernel {
|
||||
public void execute(String path) {
|
||||
List<AttributeConfig> configPattern = ConfigUtil.loadConfig();
|
||||
List<File> allValidPaths = collector.loadFiles(path);
|
||||
if(! allValidPaths.isEmpty()){
|
||||
if(! allValidPaths.isEmpty() && configPattern != null){
|
||||
for(File file : allValidPaths){
|
||||
List<FileAttribute> attributes = collector.loadAttributes(file);
|
||||
for(AttributeConfig config : configPattern){
|
||||
@@ -32,7 +32,7 @@ public class AttributeUpdaterKernel {
|
||||
}
|
||||
}
|
||||
}else{
|
||||
log.error("Path is not valid!");
|
||||
log.error("Path is not valid or config has errors!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user