show supplied genre as lowercase

pull/54/head
l3uddz 7 years ago
parent 8734311087
commit dac2995036

@ -147,7 +147,7 @@ def shows(list_type, add_limit=0, add_delay=2.5, genre=None, no_search=False, no
try: try:
# check if genre matches genre supplied via argument # check if genre matches genre supplied via argument
if genre and genre.lower() not in series['show']['genres']: 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 continue
# check if series passes out blacklist criteria inspection # 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: try:
# check if genre matches genre supplied via argument # check if genre matches genre supplied via argument
if genre and genre.lower() not in movie['movie']['genres']: 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 continue
# check if movie passes out blacklist criteria inspection # check if movie passes out blacklist criteria inspection

Loading…
Cancel
Save