mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-11 02:05:56 +01:00
Change AttributeConfig to only hold one audio & subtitle lane
This commit is contained in:
@@ -9,19 +9,23 @@ import java.util.stream.Collectors;
|
||||
@Log4j2
|
||||
@Getter
|
||||
public class AttributeConfig {
|
||||
private List<String> audio;
|
||||
private List<String> subtitle;
|
||||
private String audio;
|
||||
private String subtitle;
|
||||
|
||||
public AttributeConfig(List<String> audio, List<String> subtitle) {
|
||||
public AttributeConfig(String audio, String subtitle) {
|
||||
this.audio = audio;
|
||||
this.subtitle = subtitle;
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return audio != null && subtitle != null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
final StringBuffer sb = new StringBuffer("AttributeConfig{");
|
||||
sb.append("audio=").append(String.join(", ", audio));
|
||||
sb.append(", subtitle=").append(String.join(", ", subtitle));
|
||||
sb.append("audio='").append(audio).append('\'');
|
||||
sb.append(", subtitle='").append(subtitle).append('\'');
|
||||
sb.append('}');
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user