* use S01E01-E02 as default pattern for S00E00 multi-episodes

This commit is contained in:
Reinhard Pointner 2013-01-16 18:10:55 +00:00
parent f2d0350a5b
commit 6f27ff37a8
1 changed files with 3 additions and 1 deletions

View File

@ -142,6 +142,9 @@ public class EpisodeFormat extends Format {
StringBuilder sb = new StringBuilder();
Integer ps = null;
for (Episode it : episodes) {
if (sb.length() > 0) {
sb.append("-");
}
if (!it.getSeason().equals(ps)) {
sb.append(String.format("S%02d", it.getSeason())).append(String.format("E%02d", it.getEpisode()));
} else {
@ -153,7 +156,6 @@ public class EpisodeFormat extends Format {
return sb.toString();
}
private final Pattern sxePattern = Pattern.compile("- (?:(\\d{1,2})x)?(Special )?(\\d{1,3}) -");
private final Pattern airdatePattern = Pattern.compile("\\[(\\d{4}-\\d{1,2}-\\d{1,2})\\]");