1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 08:48:51 -05:00

* support name_eng.srt pattern for {lang} binding

This commit is contained in:
Reinhard Pointner 2015-08-04 23:40:39 +00:00
parent 266d0c7edc
commit 85421ecbd9

View File

@ -241,7 +241,7 @@ public class ReleaseInfo {
public Pattern getLanguageSuffixPattern(Collection<String> languages, boolean strict) { public Pattern getLanguageSuffixPattern(Collection<String> languages, boolean strict) {
// e.g. ".en.srt" or ".en.forced.srt" // e.g. ".en.srt" or ".en.forced.srt"
return compile("(?<=[.-])" + or(quoteAll(languages)) + "(?=([.-](" + getProperty("pattern.subtitle.tags") + "))?$)", strict ? 0 : CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS); return compile("(?<=[._-])" + or(quoteAll(languages)) + "(?=([._-](" + getProperty("pattern.subtitle.tags") + "))?$)", strict ? 0 : CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS);
} }
public Pattern getResolutionPattern() { public Pattern getResolutionPattern() {