show supplied genre as lowercase

pull/6/head
l3uddz 7 years ago
parent eae1e4b110
commit c65d374452

@ -147,7 +147,7 @@ def shows(list_type, add_limit=0, add_delay=2.5, genre=None, no_search=False, no
try:
# check if genre matches genre supplied via argument
if genre and genre.lower() not in series['show']['genres']:
log.debug("Skipping: %s because it was not from %s genre", series['show']['title'], genre)
log.debug("Skipping: %s because it was not from %s genre", series['show']['title'], genre.lower())
continue
# check if series passes out blacklist criteria inspection
@ -300,7 +300,7 @@ def movies(list_type, add_limit=0, add_delay=2.5, genre=None, no_search=False, n
try:
# check if genre matches genre supplied via argument
if genre and genre.lower() not in movie['movie']['genres']:
log.debug("Skipping: %s because it was not from %s genre", movie['movie']['title'], genre)
log.debug("Skipping: %s because it was not from %s genre", movie['movie']['title'], genre.lower())
continue
# check if movie passes out blacklist criteria inspection

Loading…
Cancel
Save