mirror of
https://github.com/snobu/destreamer.git
synced 2026-03-03 18:48:24 +00:00
Template elements are no more mandatory in final name.
This commit is contained in:
@@ -194,11 +194,6 @@ function isOutputTemplateValid(argv: any): boolean {
|
|||||||
match = elementRegEx.exec(finalTemplate);
|
match = elementRegEx.exec(finalTemplate);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// bad template from user, switching to default
|
|
||||||
else {
|
|
||||||
logger.warn('Empty output template provided, using default one \n');
|
|
||||||
finalTemplate = '{title} - {publishDate} {uniqueId}';
|
|
||||||
}
|
|
||||||
|
|
||||||
argv.outputTemplate = sanitize(finalTemplate.trim());
|
argv.outputTemplate = sanitize(finalTemplate.trim());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user