autofill with Unknown for empty prompt

This commit is contained in:
notgne2 2021-08-25 01:02:07 -07:00
parent 2a810bfb44
commit ee8ee320e0
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8

View File

@ -139,6 +139,10 @@ async function thing(source, excess) {
if (artist === null) artist = await query('Artist');
if (title === null) title = await query('Title');
if (album === "") album = "Unknown Album";
if (artist === "") album = "Unknown Artist";
if (title === "") throw "Please do not take the piss";
return {
file: Path.join(TMP_DIR, rawFilePath),
image: Path.join(TMP_DIR, rawImagePath),