Tract: Improved code for genres parameter search

pull/105/head
desimaniac 5 years ago
parent 8094175204
commit 64a1b39800

@ -1177,8 +1177,7 @@ Usage: traktarr movies [OPTIONS]
Add multiple movies to Radarr. Add multiple movies to Radarr.
Options: Options:
-t, --list-type TEXT Trakt list to process. -t, --list-type TEXT Trakt list to process. For example, 'anticipated', 'trending',
For example, 'anticipated', 'trending',
'popular', 'person', 'watched', 'played', 'recommended', 'popular', 'person', 'watched', 'played', 'recommended',
'watchlist', or any URL to a list. [required] 'watchlist', or any URL to a list. [required]
-l, --add-limit INTEGER Limit number of movies added to Radarr. -l, --add-limit INTEGER Limit number of movies added to Radarr.
@ -1186,17 +1185,15 @@ Options:
-s, --sort [rating|release|votes] -s, --sort [rating|release|votes]
Sort list to process. [default: votes] Sort list to process. [default: votes]
-rt, --rotten_tomatoes INTEGER Set a minimum Rotten Tomatoes score. -rt, --rotten_tomatoes INTEGER Set a minimum Rotten Tomatoes score.
-g, --genre TEXT Only add movies from this genre to Radarr. Only one genre can be -g, --genres TEXT Only add movies from this genre to Radarr. Multiple genres are
specified. specified as a comma-separated list. Use 'ignore' to add movies
Use 'ignore' to add movies from any genre, including from any genre, including ones with no genre specified.
ones with no genre specified.
-f, --folder TEXT Add movies with this root folder to Radarr. -f, --folder TEXT Add movies with this root folder to Radarr.
-ma, --minimum-availability [announced|in_cinemas|released|predb] -ma, --minimum-availability [announced|in_cinemas|released|predb]
Add movies with this minimum availability to Radarr. Default is Add movies with this minimum availability to Radarr. Default is
'released'. 'released'.
-a, --actor TEXT Only add movies from this actor to Radarr.Only one actor can be -a, --actor TEXT Only add movies from this actor to Radarr.Only one actor can be
specified. specified.Requires the 'person' list.
Requires the 'person' list.
--include-non-acting-roles Include non-acting roles such as 'As Himself', 'Narrator', etc. --include-non-acting-roles Include non-acting roles such as 'As Himself', 'Narrator', etc.
Requires the 'person' list option with the 'actor' argument. Requires the 'person' list option with the 'actor' argument.
--no-search Disable search when adding movies to Radarr. --no-search Disable search when adding movies to Radarr.
@ -1245,7 +1242,9 @@ Options:
- Example: `-rt 75` - Example: `-rt 75`
`-g`, `--genre` - Only add movies from this genre to Radarr. `-g`, `--genres` - Only add movies from these genre(s) to Radarr.
- Multiple genres are passed as comma-separated lists. The effect of this is equivalent of boolean OR. (ie. include items from any of these genres).
- Can find a list [here](assets/list_of_movie_genres.md). - Can find a list [here](assets/list_of_movie_genres.md).
@ -1323,10 +1322,10 @@ Options:
-d, --add-delay FLOAT Seconds between each add request to Sonarr. [default: 2.5] -d, --add-delay FLOAT Seconds between each add request to Sonarr. [default: 2.5]
-s, --sort [rating|release|votes] -s, --sort [rating|release|votes]
Sort list to process. [default: votes] Sort list to process. [default: votes]
-g, --genre TEXT Only add shows from this genre to Sonarr. Only one genre can be -g, --genres TEXT Only add shows from this genre to Sonarr. Multiple genres are
specified. specified as a comma-separated list.
Use 'ignore' to add shows from any genre, including Use 'ignore' to add shows
ones with no genre specified. from any genre, including ones with no genre specified.
-f, --folder TEXT Add shows with this root folder to Sonarr. -f, --folder TEXT Add shows with this root folder to Sonarr.
-a, --actor TEXT Only add movies from this actor to Radarr. Only one actor can be -a, --actor TEXT Only add movies from this actor to Radarr. Only one actor can be
specified. specified.
@ -1376,7 +1375,9 @@ Options:
- Example: `-s release` - Example: `-s release`
`-g`, `--genre` - Only add shows from this genre to Sonarr. `-g`, `--genres` - Only add shows from this genre(s) to Sonarr.
- Multiple genres are passed as comma-separated lists. The effect of this is equivalent of boolean OR. (ie. include items from any of these genres).
- Can find a list [here](assets/list_of_tv_show_genres.md). - Can find a list [here](assets/list_of_tv_show_genres.md).

@ -48,20 +48,21 @@ def dict_merge(dct, merge_dct):
return dct return dct
def unblacklist_genres(genre, blacklisted_genres): def unblacklist_genres(genres, blacklisted_genres):
genres = genre.split(',')
for allow_genre in genres: for allow_genre in genres:
if allow_genre in blacklisted_genres: if allow_genre in blacklisted_genres:
blacklisted_genres.remove(allow_genre) blacklisted_genres.remove(allow_genre)
return return
def allowed_genres(genre, object_type, trakt_object): def allowed_genres(genres, object_type, trakt_object):
allowed_object = False allowed_object = False
genres = genre.split(',')
if len(genres) == 1 and genres[0].lower() == 'ignore':
allowed_object = True
else:
for item in genres: for item in genres:
if (item.lower() == 'ignore') or (item.lower() in trakt_object[object_type]['genres']): if item.lower() in trakt_object[object_type]['genres']:
allowed_object = True allowed_object = True
break break
return allowed_object return allowed_object

@ -91,9 +91,9 @@ class Trakt:
if countries: if countries:
payload['countries'] = ','.join(countries).lower() payload['countries'] = ','.join(countries).lower()
# currently only support for one genre item, despite name # genres
if genres: if genres:
payload['genres'] = genres payload['genres'] = ','.join(genres).lower()
processed = [] processed = []
@ -496,6 +496,7 @@ class Trakt:
limit=limit, limit=limit,
countries=countries, countries=countries,
languages=languages, languages=languages,
genres=genres,
) )
def get_user_list_shows(self, list_url, authenticate_user=None, limit=1000, countries=None, languages=None): def get_user_list_shows(self, list_url, authenticate_user=None, limit=1000, countries=None, languages=None):
@ -511,6 +512,7 @@ class Trakt:
limit=limit, limit=limit,
countries=countries, countries=countries,
languages=languages, languages=languages,
genres=genres,
) )
############################################################ ############################################################
@ -628,6 +630,7 @@ class Trakt:
limit=limit, limit=limit,
countries=countries, countries=countries,
languages=languages, languages=languages,
genres=genres,
) )
def get_user_list_movies(self, list_url, authenticate_user=None, limit=1000, countries=None, languages=None): def get_user_list_movies(self, list_url, authenticate_user=None, limit=1000, countries=None, languages=None):
@ -643,4 +646,5 @@ class Trakt:
limit=limit, limit=limit,
countries=countries, countries=countries,
languages=languages, languages=languages,
genres=genres,
) )

@ -269,7 +269,7 @@ def show(show_id, folder=None, no_search=False):
@app.command(help='Add multiple shows to Sonarr.', context_settings=dict(max_content_width=100)) @app.command(help='Add multiple shows to Sonarr.', context_settings=dict(max_content_width=100))
@click.option( @click.option(
'--list-type', '-t', '--list-type', '-t',
help='Trakt list to process. \n' help='Trakt list to process. '
'For example, \'anticipated\', \'trending\', \'popular\', \'person\', \'watched\', \'played\', ' 'For example, \'anticipated\', \'trending\', \'popular\', \'person\', \'watched\', \'played\', '
'\'recommended\', \'watchlist\', or any URL to a list.', '\'recommended\', \'watchlist\', or any URL to a list.',
required=True) required=True)
@ -289,10 +289,10 @@ def show(show_id, folder=None, no_search=False):
help='Sort list to process.', help='Sort list to process.',
show_default=True) show_default=True)
@click.option( @click.option(
'--genre', '-g', '--genres', '-g',
default=None, default=None,
help='Only add shows from this genre to Sonarr. ' help='Only add shows from this genre to Sonarr. '
'Only one genre can be specified. \n' 'Multiple genres are specified as a comma-separated list. '
'Use \'ignore\' to add shows from any genre, including ones with no genre specified.') 'Use \'ignore\' to add shows from any genre, including ones with no genre specified.')
@click.option( @click.option(
'--folder', '-f', '--folder', '-f',
@ -302,7 +302,7 @@ def show(show_id, folder=None, no_search=False):
'--actor', '-a', '--actor', '-a',
default=None, default=None,
help='Only add movies from this actor to Radarr. ' help='Only add movies from this actor to Radarr. '
'Only one actor can be specified. \n' 'Only one actor can be specified. '
'Requires the \'person\' list option.') 'Requires the \'person\' list option.')
@click.option( @click.option(
'--include-non-acting-roles', '--include-non-acting-roles',
@ -329,7 +329,7 @@ def show(show_id, folder=None, no_search=False):
'--remove-rejected-from-recommended', '--remove-rejected-from-recommended',
is_flag=True, is_flag=True,
help='Removes rejected/existing shows from recommended.') help='Removes rejected/existing shows from recommended.')
def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folder=None, actor=None, no_search=False, def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genres=None, folder=None, actor=None, no_search=False,
include_non_acting_roles=False, notifications=False, authenticate_user=None, ignore_blacklist=False, include_non_acting_roles=False, notifications=False, authenticate_user=None, ignore_blacklist=False,
remove_rejected_from_recommended=False): remove_rejected_from_recommended=False):
from media.sonarr import Sonarr from media.sonarr import Sonarr
@ -342,15 +342,16 @@ def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folde
added_shows = 0 added_shows = 0
# process genre # process genres
if genre: if genres:
# set special genre keyword to show's blacklisted_genres list # set special genre keyword to show's blacklisted_genres list
if genre.lower() == 'ignore': if genres.lower() == 'ignore':
cfg['filters']['shows']['blacklisted_genres'] = ['ignore'] cfg['filters']['shows']['blacklisted_genres'] = ['ignore']
genre = None genres = None
# remove genre from show's blacklisted_genres list # remove genres from show's blacklisted_genres list
else: else:
misc_helper.unblacklist_genres(genre, cfg['filters']['shows']['blacklisted_genres']) misc_helper.unblacklist_genres(genres, cfg['filters']['shows']['blacklisted_genres'])
log.debug("Filter Trakt results with genre(s): %s", ', '.join(map(lambda x: x.title(), genres.split(','))))
# replace sonarr root_folder if folder is supplied # replace sonarr root_folder if folder is supplied
if folder: if folder:
@ -378,21 +379,21 @@ def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folde
trakt_objects_list = trakt.get_anticipated_shows( trakt_objects_list = trakt.get_anticipated_shows(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower() == 'trending': elif list_type.lower() == 'trending':
trakt_objects_list = trakt.get_trending_shows( trakt_objects_list = trakt.get_trending_shows(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower() == 'popular': elif list_type.lower() == 'popular':
trakt_objects_list = trakt.get_popular_shows( trakt_objects_list = trakt.get_popular_shows(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower() == 'person': elif list_type.lower() == 'person':
@ -404,7 +405,7 @@ def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folde
person=actor, person=actor,
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
include_non_acting_roles=include_non_acting_roles, include_non_acting_roles=include_non_acting_roles,
) )
@ -413,7 +414,7 @@ def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folde
authenticate_user, authenticate_user,
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower().startswith('played'): elif list_type.lower().startswith('played'):
@ -421,7 +422,7 @@ def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folde
trakt_objects_list = trakt.get_most_played_shows( trakt_objects_list = trakt.get_most_played_shows(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
most_type=most_type if most_type else None, most_type=most_type if most_type else None,
) )
@ -430,7 +431,7 @@ def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folde
trakt_objects_list = trakt.get_most_watched_shows( trakt_objects_list = trakt.get_most_watched_shows(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
most_type=most_type if most_type else None, most_type=most_type if most_type else None,
) )
@ -512,17 +513,17 @@ def shows(list_type, add_limit=0, add_delay=2.5, sort='votes', genre=None, folde
if not tvdb_helper.check_series_tvdb_id(series_title, series_year, series_tvdb_id): if not tvdb_helper.check_series_tvdb_id(series_title, series_year, series_tvdb_id):
continue continue
# check if genre matches genre supplied via argument # check if genres matches genre(s) supplied via argument
if genre and not misc_helper.allowed_genres(genre, 'show', series): if genres and not misc_helper.allowed_genres(genres, 'show', series):
log.debug("SKIPPING: \'%s\' because it was not from genre: %s", series_title, log.debug("SKIPPING: \'%s (%s)\' because it was not from the genre(s): %s", series_title,
genre.title()) series_year, ', '.join(map(lambda x: x.title(), genres)))
continue continue
# check if series passes out blacklist criteria inspection # check if series passes out blacklist criteria inspection
if not trakt_helper.is_show_blacklisted(series, cfg.filters.shows, ignore_blacklist, if not trakt_helper.is_show_blacklisted(series, cfg.filters.shows, ignore_blacklist,
callback_remove_recommended callback_remove_recommended
if remove_rejected_from_recommended else None): if remove_rejected_from_recommended else None):
log.info("ADDING: %s (%s) | Country: %s | Language: %s | Genre: %s | Network: %s", log.info("ADDING: %s (%s) | Country: %s | Language: %s | Genre(s): %s | Network: %s",
series_title, series_title,
series_year, series_year,
(series['show']['country'] or 'N/A').upper(), (series['show']['country'] or 'N/A').upper(),
@ -671,7 +672,7 @@ def movie(movie_id, folder=None, minimum_availability=None, no_search=False):
@app.command(help='Add multiple movies to Radarr.', context_settings=dict(max_content_width=100)) @app.command(help='Add multiple movies to Radarr.', context_settings=dict(max_content_width=100))
@click.option( @click.option(
'--list-type', '-t', '--list-type', '-t',
help='Trakt list to process. \n' help='Trakt list to process. '
'For example, \'anticipated\', \'trending\', \'popular\', \'person\', \'watched\', \'played\', ' 'For example, \'anticipated\', \'trending\', \'popular\', \'person\', \'watched\', \'played\', '
'\'recommended\', \'watchlist\', or any URL to a list.', '\'recommended\', \'watchlist\', or any URL to a list.',
required=True) required=True)
@ -695,10 +696,10 @@ def movie(movie_id, folder=None, minimum_availability=None, no_search=False):
type=int, type=int,
help='Set a minimum Rotten Tomatoes score.') help='Set a minimum Rotten Tomatoes score.')
@click.option( @click.option(
'--genre', '-g', '--genres', '-g',
default=None, default=None,
help='Only add movies from this genre to Radarr. ' help='Only add movies from this genre to Radarr. '
'Only one genre can be specified. \n' 'Multiple genres are specified as a comma-separated list. '
'Use \'ignore\' to add movies from any genre, including ones with no genre specified.') 'Use \'ignore\' to add movies from any genre, including ones with no genre specified.')
@click.option( @click.option(
'--folder', '-f', '--folder', '-f',
@ -712,7 +713,7 @@ def movie(movie_id, folder=None, minimum_availability=None, no_search=False):
'--actor', '-a', '--actor', '-a',
default=None, default=None,
help='Only add movies from this actor to Radarr.' help='Only add movies from this actor to Radarr.'
'Only one actor can be specified. \n' 'Only one actor can be specified.'
'Requires the \'person\' list.') 'Requires the \'person\' list.')
@click.option( @click.option(
'--include-non-acting-roles', '--include-non-acting-roles',
@ -739,7 +740,7 @@ def movie(movie_id, folder=None, minimum_availability=None, no_search=False):
'--remove-rejected-from-recommended', '--remove-rejected-from-recommended',
is_flag=True, is_flag=True,
help='Removes rejected/existing movies from recommended.') help='Removes rejected/existing movies from recommended.')
def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=None, genre=None, folder=None, def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=None, genres=None, folder=None,
minimum_availability=None, actor=None, include_non_acting_roles=False, no_search=False, notifications=False, minimum_availability=None, actor=None, include_non_acting_roles=False, no_search=False, notifications=False,
authenticate_user=None, ignore_blacklist=False, remove_rejected_from_recommended=False): authenticate_user=None, ignore_blacklist=False, remove_rejected_from_recommended=False):
from media.radarr import Radarr from media.radarr import Radarr
@ -752,15 +753,21 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=
added_movies = 0 added_movies = 0
# process genre # process genres
if genre: if genres:
# set special genre keyword to movies's blacklisted_genres list # split comma separated list
if genre.lower() == 'ignore': genres = sorted(genres.split(','), key=str.lower)
# look for special keyword 'ignore'
if len(genres) == 1 and genres[0].lower() == 'ignore':
# set special keyword 'ignore' to movies's blacklisted_genres list
cfg['filters']['movies']['blacklisted_genres'] = ['ignore'] cfg['filters']['movies']['blacklisted_genres'] = ['ignore']
genre = None # set genre search parameter to None
# remove genre from movies's blacklisted_genres list genres = None
# remove genre from movies's blacklisted_genres list, if it's there
else: else:
misc_helper.unblacklist_genres(genre, cfg['filters']['movies']['blacklisted_genres']) misc_helper.unblacklist_genres(genres, cfg['filters']['movies']['blacklisted_genres'])
log.debug("Filter Trakt results with genre(s): %s", ', '.join(map(lambda x: x.title(), genres)))
# replace radarr root_folder if folder is supplied # replace radarr root_folder if folder is supplied
if folder: if folder:
@ -795,28 +802,28 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=
trakt_objects_list = trakt.get_anticipated_movies( trakt_objects_list = trakt.get_anticipated_movies(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower() == 'trending': elif list_type.lower() == 'trending':
trakt_objects_list = trakt.get_trending_movies( trakt_objects_list = trakt.get_trending_movies(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower() == 'popular': elif list_type.lower() == 'popular':
trakt_objects_list = trakt.get_popular_movies( trakt_objects_list = trakt.get_popular_movies(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower() == 'boxoffice': elif list_type.lower() == 'boxoffice':
trakt_objects_list = trakt.get_boxoffice_movies( trakt_objects_list = trakt.get_boxoffice_movies(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower() == 'person': elif list_type.lower() == 'person':
@ -828,7 +835,7 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=
person=actor, person=actor,
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
include_non_acting_roles=include_non_acting_roles, include_non_acting_roles=include_non_acting_roles,
) )
@ -837,7 +844,7 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=
authenticate_user, authenticate_user,
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
) )
elif list_type.lower().startswith('played'): elif list_type.lower().startswith('played'):
@ -845,7 +852,7 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=
trakt_objects_list = trakt.get_most_played_movies( trakt_objects_list = trakt.get_most_played_movies(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
most_type=most_type if most_type else None, most_type=most_type if most_type else None,
) )
@ -854,7 +861,7 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=
trakt_objects_list = trakt.get_most_watched_movies( trakt_objects_list = trakt.get_most_watched_movies(
countries=cfg.filters.shows.allowed_countries, countries=cfg.filters.shows.allowed_countries,
languages=cfg.filters.shows.allowed_languages, languages=cfg.filters.shows.allowed_languages,
genres=genre, genres=genres,
most_type=most_type if most_type else None, most_type=most_type if most_type else None,
) )
@ -937,10 +944,10 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=
if not tmdb_helper.check_movie_tmdb_id(movie_title, movie_year, movie_tmdb_id): if not tmdb_helper.check_movie_tmdb_id(movie_title, movie_year, movie_tmdb_id):
continue continue
# check if genre matches genre supplied via argument # check if genres matches genre(s) supplied via argument
if genre and not misc_helper.allowed_genres(genre, 'movie', sorted_movie): if genres and not misc_helper.allowed_genres(genres, 'movie', sorted_movie):
log.debug("SKIPPING: \'%s (%s)\' because it was not from genre: %s", movie_title, log.debug("SKIPPING: \'%s (%s)\' because it was not from the genre(s): %s", movie_title,
movie_year, genre.title()) movie_year, ', '.join(map(lambda x: x.title(), genres)))
continue continue
# check if movie passes out blacklist criteria inspection # check if movie passes out blacklist criteria inspection
@ -958,7 +965,7 @@ def movies(list_type, add_limit=0, add_delay=2.5, sort='votes', rotten_tomatoes=
rotten_tomatoes): rotten_tomatoes):
continue continue
log.info("ADDING: \'%s (%s)\' | Country: %s | Language: %s | Genre: %s ", log.info("ADDING: \'%s (%s)\' | Country: %s | Language: %s | Genre(s): %s ",
movie_title, movie_title,
movie_year, movie_year,
(sorted_movie['movie']['country'] or 'N/A').upper(), (sorted_movie['movie']['country'] or 'N/A').upper(),

Loading…
Cancel
Save