mirror of
https://github.com/moparisthebest/rcrdit
synced 2024-12-22 07:18:56 -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) {
|
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);
|
final StringBuilder sb = new StringBuilder(program.getTitle().length() * 3);
|
||||||
sb.append(program.getTitle());
|
sb.append(program.getTitle());
|
||||||
if (program.getDesc() != null)
|
if (program.getSubTitle() != null)
|
||||||
sb.append('-').append(program.getDesc());
|
sb.append('-').append(program.getSubTitle());
|
||||||
if (program.getEpisodeNum() != null)
|
if (program.getEpisodeNum() != null)
|
||||||
sb.append('-').append(program.getEpisodeNum());
|
sb.append('-').append(program.getEpisodeNum());
|
||||||
if (extra != null) {
|
if (extra != null) {
|
||||||
@ -84,7 +84,7 @@ public class ProgramAutoRec implements Comparable<ProgramAutoRec> {
|
|||||||
sb.append('-').append(count);
|
sb.append('-').append(count);
|
||||||
}
|
}
|
||||||
// if no desc/num/extra append date so there will never be a Judge-Judy.ts
|
// 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(fileUnique.format(program.getStart()));
|
||||||
sb.append('.').append(ext);
|
sb.append('.').append(ext);
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
|
Loading…
Reference in New Issue
Block a user