cosmetic: sus

This commit is contained in:
Mateusz Pstrucha committed 2021-11-30 21:53:05 +01:00
1 parent abb19a9132
commit 62258b4535
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -69,7 +69,7 @@ switch (args._[0]) {
} else if (title && artists) {
one({ title, artists })
}
} else words({ sus: args.s || args.banned })
} else words({ susOnly: args.s || args.banned })
break
case 'convert':
let tid = args.T ? [args.T] : args.tids
+2 -2
View File
@@ -55,7 +55,7 @@ async function one({ title, artists, tid }) {
export { one }
export default function words({ sus, rolling }) {
export default function words({ sus: susOnly, rolling }) {
return getTop(rolling ? 'rolling' : 'once').then(async (top) => {
for (let tid of top.slice(20)) {
const { title, artists } = await getTrack(tid)
@@ -91,7 +91,7 @@ export default function words({ sus, rolling }) {
options.color = 'yellow'
options.meta = ' no lyrics found'
} else {
if (sus) return
if (susOnly) return
}
logTrack(track, options)