* use XMBC compatible S00=special naming scheme by default

This commit is contained in:
Reinhard Pointner 2012-03-29 05:28:09 +00:00
parent 91380f2452
commit 6919cb8806
1 changed files with 8 additions and 13 deletions

View File

@ -74,14 +74,12 @@ public class EpisodeFormat extends Format {
StringBuilder sb = new StringBuilder();
if (episode.getSeason() != null) {
sb.append(episode.getSeason()).append('x');
if (episode.getSeason() != null || episode.getSpecial() != null) {
sb.append(episode.getSpecial() == null ? episode.getSeason() : 0).append('x');
}
if (episode.getEpisode() != null) {
sb.append(String.format("%02d", episode.getEpisode()));
} else if (includeSpecial && episode.getSpecial() != null) {
sb.append("Special " + episode.getSpecial());
if (episode.getEpisode() != null || episode.getSpecial() != null) {
sb.append(String.format("%02d", episode.getSpecial() == null ? episode.getEpisode() : episode.getSpecial()));
}
return sb.toString();
@ -95,15 +93,12 @@ public class EpisodeFormat extends Format {
StringBuilder sb = new StringBuilder();
if (episode.getSeason() != null) {
sb.append(String.format("S%02d", episode.getSeason()));
if (episode.getSeason() != null || episode.getSpecial() != null) {
sb.append(String.format("S%02d", episode.getSpecial() == null ? episode.getSeason() : 0));
}
if (episode.getEpisode() != null) {
sb.append(String.format("E%02d", episode.getEpisode()));
} else if (includeSpecial && episode.getSpecial() != null) {
sb.append(episode.getSeason() != null ? " - " : "");
sb.append("Special " + episode.getSpecial());
if (episode.getEpisode() != null || episode.getSpecial() != null) {
sb.append(String.format("E%02d", episode.getSpecial() == null ? episode.getEpisode() : episode.getSpecial()));
}
return sb.toString();