mirror of
https://github.com/moparisthebest/rcrdit
synced 2024-12-21 23:08:57 -05:00
Include SubTitle in file name instead of Description
This commit is contained in:
parent
a79fc8b3c2
commit
af97ed3e5c
@ -74,8 +74,8 @@ public class ProgramAutoRec implements Comparable<ProgramAutoRec> {
|
||||
private static String getName(final Program program, final String ext, final String extra, final int count) {
|
||||
final StringBuilder sb = new StringBuilder(program.getTitle().length() * 3);
|
||||
sb.append(program.getTitle());
|
||||
if (program.getDesc() != null)
|
||||
sb.append('-').append(program.getDesc());
|
||||
if (program.getSubTitle() != null)
|
||||
sb.append('-').append(program.getSubTitle());
|
||||
if (program.getEpisodeNum() != null)
|
||||
sb.append('-').append(program.getEpisodeNum());
|
||||
if (extra != null) {
|
||||
@ -84,7 +84,7 @@ public class ProgramAutoRec implements Comparable<ProgramAutoRec> {
|
||||
sb.append('-').append(count);
|
||||
}
|
||||
// if no desc/num/extra append date so there will never be a Judge-Judy.ts
|
||||
if (program.getDesc() == null && program.getEpisodeNum() == null && extra == null)
|
||||
if (program.getSubTitle() == null && program.getEpisodeNum() == null && extra == null)
|
||||
sb.append('-').append(fileUnique.format(program.getStart()));
|
||||
sb.append('.').append(ext);
|
||||
return sb.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user