check for libraries when they are needed
fix update function
This commit is contained in:
parent
b5b77963fe
commit
f3389a1c22
@ -660,7 +660,11 @@ if __name__ == "__main__":
|
||||
delete_playlist(playlist_dict, opts.jbop)
|
||||
|
||||
else:
|
||||
if libraries:
|
||||
keys_list, title = build_playlist(opts.jbop, libraries, opts.days, opts.top, filters, search)
|
||||
else:
|
||||
print('This function requires libraries to be listed.')
|
||||
exit()
|
||||
|
||||
# Check if limit exist and if it's greater than the pulled list of rating keys
|
||||
if opts.limit and len(keys_list) > int(opts.limit):
|
||||
@ -678,6 +682,7 @@ if __name__ == "__main__":
|
||||
for x in plex_servers:
|
||||
playlist_dict['server'] = x['server']
|
||||
playlist_dict['user'] = x['user']
|
||||
playlist_dict['user_playlists'] = x['user_playlists']
|
||||
delete_playlist(playlist_dict, opts.jbop)
|
||||
print('Creating playlist(s)...')
|
||||
for x in plex_servers:
|
||||
|
Loading…
Reference in New Issue
Block a user