* consider ".en.forced.srt" style subtitle naming
This commit is contained in:
parent
cc034003cb
commit
6ec18f757c
|
@ -239,8 +239,10 @@ public class ReleaseInfo {
|
|||
}
|
||||
|
||||
public Pattern getLanguageSuffixPattern(Collection<String> languages, boolean strict) {
|
||||
// .en.srt
|
||||
return compile("(?<=[.])(" + join(quoteAll(languages), "|") + ")(?=[._ ]*$)", (strict ? 0 : CASE_INSENSITIVE) | UNICODE_CHARACTER_CLASS);
|
||||
// e.g. ".en.srt" or ".en.forced.srt"
|
||||
String language = join(quoteAll(languages), "|");
|
||||
String tag = getProperty("pattern.subtitle.tags");
|
||||
return compile("(?<=[.-])(" + language + ")(?=([.-](" + tag + "))?$)", strict ? 0 : CASE_INSENSITIVE | UNICODE_CHARACTER_CLASS);
|
||||
}
|
||||
|
||||
public Pattern getResolutionPattern() {
|
||||
|
|
|
@ -4,6 +4,9 @@ pattern.video.source: CAMRip|CAM|PDVD|TS|TELESYNC|PDVD|PTVD|PPV|PPVRip|Screener|
|
|||
# patterns for all video tags
|
||||
pattern.video.tags: extended|uncensored|remastered|unrated|uncut|director.?s.cut|theatrical.cut|ultimate.cut|final.cut|special.edition
|
||||
|
||||
# patterns for all subtitle tags
|
||||
pattern.subtitle.tags: forced|HI|SDH|Director.?s.Commentary
|
||||
|
||||
# additional release info patterns
|
||||
pattern.video.format: DivX|Xvid|AVC|x264|h264|h.264|3ivx|mpg|mpeg|mpeg4|mp3|AAC|AAC2.0|AAC5.1|AAC.2.0|AAC.5.1|AC3|dd20|dd51|2ch|6ch|DTS|Multi.DTS|DTS.HD|DTS.HD.MA|TrueHD|720p|1080p|10bit|(19|20)[0-9]+(.)S[0-9]+(?!(.)?E[0-9]+)|(?<=\\d+)v[0-4]
|
||||
|
||||
|
|
Loading…
Reference in New Issue