* fixed bug in default formatter (wrongly assumed part index starts with 0)

This commit is contained in:
Reinhard Pointner 2012-02-14 02:08:21 +00:00
parent 97f2bca288
commit 2bfef63d3c
1 changed files with 5 additions and 4 deletions

View File

@ -32,8 +32,9 @@ class MovieFormatter implements MatchFormatter {
// format as single-file or multi-part movie
name.format("%s (%d)", video.getName(), video.getYear());
if (video.getPartCount() > 1)
name.format(" CD%d", video.getPartIndex() + 1);
if (video.getPartCount() > 1) {
name.format(".CD%d", video.getPartIndex());
}
// remove path separators if the name contains any / or \
return replacePathSeparators(name.out().toString());