-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a99abd5
commit 10954f0
Showing
14 changed files
with
75 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,5 @@ labels: feature-request | |
--- | ||
|
||
**Describe your feature** | ||
|
||
A clear and concise description of the expected behaviour. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/java/at/pcgamingfreaks/mkvaudiosubtitlechanger/impl/FileFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package at.pcgamingfreaks.mkvaudiosubtitlechanger.impl; | ||
|
||
import at.pcgamingfreaks.mkvaudiosubtitlechanger.config.Config; | ||
import org.apache.commons.lang3.StringUtils; | ||
|
||
import java.io.File; | ||
|
||
public class FileFilter { | ||
static boolean accept(File pathName, String[] fileExtensions) { | ||
return StringUtils.endsWithAny(pathName.getAbsolutePath().toLowerCase(), fileExtensions) | ||
&& Config.getInstance().getIncludePattern().matcher(pathName.getName()).matches(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 6 additions & 10 deletions
16
src/main/java/at/pcgamingfreaks/mkvaudiosubtitlechanger/model/AttributeConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,21 @@ | ||
package at.pcgamingfreaks.mkvaudiosubtitlechanger.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.extern.log4j.Log4j2; | ||
|
||
@Log4j2 | ||
@Getter | ||
@AllArgsConstructor | ||
public class AttributeConfig { | ||
private final String audioLanguage; | ||
private final String subtitleLanguage; | ||
|
||
public AttributeConfig(String audioLanguage, String subtitleLanguage) { | ||
this.audioLanguage = audioLanguage; | ||
this.subtitleLanguage = subtitleLanguage; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
final StringBuffer sb = new StringBuffer("AttributeConfig{"); | ||
sb.append("audioLanguage='").append(audioLanguage).append('\''); | ||
sb.append(", subtitleLanguage='").append(subtitleLanguage).append('\''); | ||
sb.append('}'); | ||
return sb.toString(); | ||
return "AttributeConfig{" | ||
+ "audioLanguage='" + audioLanguage + '\'' | ||
+ ", subtitleLanguage='" + subtitleLanguage + '\'' + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,4 @@ | |
public enum LaneType { | ||
AUDIO, | ||
SUBTITLES; | ||
|
||
LaneType() { | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return name(); | ||
} | ||
} |
7 changes: 3 additions & 4 deletions
7
src/main/java/at/pcgamingfreaks/mkvaudiosubtitlechanger/model/MkvToolNix.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 0 additions & 12 deletions
12
src/main/java/at/pcgamingfreaks/mkvaudiosubtitlechanger/util/LogUtils.java
This file was deleted.
Oops, something went wrong.