1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-16 21:12:13 +00:00

Template elements are no more mandatory in final name.

This commit is contained in:
Giuseppe Montuoro
2021-03-18 16:37:35 +01:00
parent 7efa54932f
commit 8b2a02d0ae

View File

@@ -194,11 +194,6 @@ function isOutputTemplateValid(argv: any): boolean {
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());