mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-24 08:48:51 -05:00
* use S01E01-E02 as default pattern for S00E00 multi-episodes
This commit is contained in:
parent
f2d0350a5b
commit
6f27ff37a8
@ -142,6 +142,9 @@ public class EpisodeFormat extends Format {
|
|||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
Integer ps = null;
|
Integer ps = null;
|
||||||
for (Episode it : episodes) {
|
for (Episode it : episodes) {
|
||||||
|
if (sb.length() > 0) {
|
||||||
|
sb.append("-");
|
||||||
|
}
|
||||||
if (!it.getSeason().equals(ps)) {
|
if (!it.getSeason().equals(ps)) {
|
||||||
sb.append(String.format("S%02d", it.getSeason())).append(String.format("E%02d", it.getEpisode()));
|
sb.append(String.format("S%02d", it.getSeason())).append(String.format("E%02d", it.getEpisode()));
|
||||||
} else {
|
} else {
|
||||||
@ -153,7 +156,6 @@ public class EpisodeFormat extends Format {
|
|||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private final Pattern sxePattern = Pattern.compile("- (?:(\\d{1,2})x)?(Special )?(\\d{1,3}) -");
|
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})\\]");
|
private final Pattern airdatePattern = Pattern.compile("\\[(\\d{4}-\\d{1,2}-\\d{1,2})\\]");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user