autofill with Unknown for empty prompt
This commit is contained in:
parent
2a810bfb44
commit
ee8ee320e0
4
index.js
4
index.js
@ -139,6 +139,10 @@ async function thing(source, excess) {
|
|||||||
if (artist === null) artist = await query('Artist');
|
if (artist === null) artist = await query('Artist');
|
||||||
if (title === null) title = await query('Title');
|
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 {
|
return {
|
||||||
file: Path.join(TMP_DIR, rawFilePath),
|
file: Path.join(TMP_DIR, rawFilePath),
|
||||||
image: Path.join(TMP_DIR, rawImagePath),
|
image: Path.join(TMP_DIR, rawImagePath),
|
||||||
|
Loading…
Reference in New Issue
Block a user