make sure random selector has a limit
This commit is contained in:
parent
769acfff01
commit
13099bf557
@ -418,6 +418,9 @@ def build_playlist(jbop, libraries=None, days=None, top=None, filters=None, sear
|
||||
title = selectors()['custom'].format(custom=title)
|
||||
|
||||
elif jbop == 'random':
|
||||
if not limit:
|
||||
print("Random selector needs a limit. Use --limit.")
|
||||
exit()
|
||||
try:
|
||||
keys_list = get_content(libraries, jbop, filters, search, limit)
|
||||
except TypeError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user