@ -248,7 +248,7 @@ class CollectionBuilder:
elif method_name == " tvdb_description " :
self . summaries [ method_name ] = config . TVDb . get_list_description ( method_data , self . library . Plex . language )
elif method_name == " trakt_description " :
self . summaries [ method_name ] = config . Trakt . standard_list ( config . Trakt . validate_trakt _list ( util . get_list ( method_data ) ) [ 0 ] ) . description
self . summaries [ method_name ] = config . Trakt . standard_list ( config . Trakt . validate_trakt ( util . get_list ( method_data ) ) [ 0 ] ) . description
elif method_name == " letterboxd_description " :
self . summaries [ method_name ] = config . Letterboxd . get_list_description ( method_data , self . library . Plex . language )
elif method_name == " collection_mode " :
@ -266,7 +266,7 @@ class CollectionBuilder:
if str ( method_data ) . lower ( ) == " release " :
self . details [ method_name ] = " release "
elif str ( method_data ) . lower ( ) == " alpha " :
self . details [ method_name ] = " release "
self . details [ method_name ] = " alpha "
else :
raise Failed ( f " Collection Error: { method_data } collection_order invalid \n \t release (Order Collection by release dates) \n \t alpha (Order Collection Alphabetically) " )
elif method_name == " url_poster " :
@ -309,11 +309,11 @@ class CollectionBuilder:
elif method_name in [ " title " , " title.and " , " title.not " , " title.begins " , " title.ends " ] :
self . methods . append ( ( " plex_search " , [ { method_name : util . get_list ( method_data , split = False ) } ] ) )
elif method_name in [ " decade " , " year.greater " , " year.less " ] :
self . methods . append ( ( " plex_search " , [ { method_name : util . check_year ( method_data , current_year , method_name ) } ] ) )
self . methods . append ( ( " plex_search " , [ { method_name : [ util . check_year ( method_data , current_year , method_name ) ] } ] ) )
elif method_name in [ " added.before " , " added.after " , " originally_available.before " , " originally_available.after " ] :
self . methods . append ( ( " plex_search " , [ { method_name : util . check_date ( method_data , method_name , return_string = True , plex_date = True ) } ] ) )
self . methods . append ( ( " plex_search " , [ { method_name : [ util . check_date ( method_data , method_name , return_string = True , plex_date = True ) ] } ] ) )
elif method_name in [ " duration.greater " , " duration.less " , " rating.greater " , " rating.less " ] :
self . methods . append ( ( " plex_search " , [ { method_name : util . check_number ( method_data , method_name , minimum = 0 ) } ] ) )
self . methods . append ( ( " plex_search " , [ { method_name : [ util . check_number ( method_data , method_name , minimum = 0 ) ] } ] ) )
elif method_name in [ " year " , " year.not " ] :
self . methods . append ( ( " plex_search " , [ { method_name : util . get_year_list ( method_data , current_year , method_name ) } ] ) )
elif method_name in util . tmdb_searches :
@ -355,15 +355,15 @@ class CollectionBuilder:
elif method_name in [ " anilist_id " , " anilist_relations " , " anilist_studio " ] :
self . methods . append ( ( method_name , config . AniList . validate_anilist_ids ( util . get_int_list ( method_data , " AniList ID " ) , studio = method_name == " anilist_studio " ) ) )
elif method_name == " trakt_list " :
self . methods . append ( ( method_name , config . Trakt . validate_trakt _list ( util . get_list ( method_data ) ) ) )
self . methods . append ( ( method_name , config . Trakt . validate_trakt ( util . get_list ( method_data ) ) ) )
elif method_name == " trakt_list_details " :
valid_list = config . Trakt . validate_trakt _list ( util . get_list ( method_data ) )
valid_list = config . Trakt . validate_trakt ( util . get_list ( method_data ) )
item = config . Trakt . standard_list ( valid_list [ 0 ] )
if hasattr ( item , " description " ) and item . description :
self . summaries [ method_name ] = item . description
self . methods . append ( ( method_name [ : - 8 ] , valid_list ) )
elif method_name == " trakt_watchlist " :
self . methods . append ( ( method_name , config . Trakt . validate_trakt _watchlist( util . get_list ( method_data ) , self . library . is_movie ) ) )
elif method_name in [ " trakt_watchlist " , " trakt_collection " ] :
self . methods . append ( ( method_name , config . Trakt . validate_trakt ( method_name [ 6 : ] , util . get_list ( method_data ) , self . library . is_movie ) ) )
elif method_name == " imdb_list " :
new_list = [ ]
for imdb_list in util . get_list ( method_data , split = False ) :
@ -492,11 +492,11 @@ class CollectionBuilder:
searches [ search_final ] = self . library . validate_search_list ( final_values , search )
elif ( search == " decade " and modifier in [ " " ] ) \
or ( search == " year " and modifier in [ " .greater " , " .less " ] ) :
searches [ search_final ] = util . check_year ( search_data , current_year , search_final )
searches [ search_final ] = [ util . check_year ( search_data , current_year , search_final ) ]
elif search in [ " added " , " originally_available " ] and modifier in [ " .before " , " .after " ] :
searches [ search_final ] = util . check_date ( search_data , search_final , return_string = True , plex_date = True )
searches [ search_final ] = [ util . check_date ( search_data , search_final , return_string = True , plex_date = True ) ]
elif search in [ " duration " , " rating " ] and modifier in [ " .greater " , " .less " ] :
searches [ search_final ] = util . check_number ( search_data , search_final , minimum = 0 )
searches [ search_final ] = [ util . check_number ( search_data , search_final , minimum = 0 ) ]
elif search == " year " and modifier in [ " " , " .not " ] :
searches [ search_final ] = util . get_year_list ( search_data , current_year , search_final )
elif ( search in [ " title " , " studio " ] and modifier not in [ " " , " .and " , " .not " , " .begins " , " .ends " ] ) \