[IMPL] Default Kernel

This commit is contained in:
2020-04-05 19:30:52 +02:00
parent f55134c91a
commit cf2fdcb30e
2 changed files with 34 additions and 1 deletions

View File

@@ -1,7 +1,9 @@
package at.pcgamingfreaks.mkvaudiosubtitlechanger.config;
import at.pcgamingfreaks.mkvaudiosubtitlechanger.model.FileAttribute;
import lombok.Getter;
import java.io.File;
import java.util.List;
@Getter
@@ -13,4 +15,17 @@ public class AttributeConfig {
this.audio = audio;
this.subtitle = subtitle;
}
/**
* Processes the config lists and apply the changes if the combination matches
* @return If the current configuration matched and changes applied or not
*/
public boolean processConfig(File file, List<FileAttribute> attributes) {
// check if size is bigger or equal 2 to make sure that there is at least one audio and subtitle line
// TODO: implement empty audio or subtitle line
if(attributes.size() >= 2) {
// TODO: Update queryBuilder:updateAttributes here
}
return true;
}
}