Added e00 convenience binding

This commit is contained in:
Reinhard Pointner 2016-10-15 02:16:39 +08:00
parent 0fb7f80a79
commit 618832f092
1 changed files with 4 additions and 1 deletions

View File

@ -161,7 +161,10 @@ public class MediaBindingBean {
@Define("e00")
public String getE00() {
return getEpisodeNumbers().stream().map(i -> String.format("%02d", i)).collect(joining("-"));
if (isRegularEpisode())
return getEpisodeNumbers().stream().map(i -> String.format("%02d", i)).collect(joining("-"));
else
return "Special " + join(getEpisodeNumbers(), "-");
}
@Define("sxe")