diff --git a/mumc_modules/mumc_configuration_yaml.py b/mumc_modules/mumc_configuration_yaml.py index 8d6e8f3..e55fddb 100755 --- a/mumc_modules/mumc_configuration_yaml.py +++ b/mumc_modules/mumc_configuration_yaml.py @@ -78,26 +78,32 @@ def yaml_configurationBuilder(the_dict): config_data['advanced_settings']['behavioral_statements']['movie']['favorited']['action_control']=3 config_data['advanced_settings']['behavioral_statements']['movie']['favorited']['extra']['genre']=0 config_data['advanced_settings']['behavioral_statements']['movie']['favorited']['extra']['library_genre']=0 + config_data['advanced_settings']['behavioral_statements']['movie']['favorited']['dynamic_behavior']=False config_data['advanced_settings']['behavioral_statements']['movie']['whitetagged']['action']='keep' config_data['advanced_settings']['behavioral_statements']['movie']['whitetagged']['user_conditional']='all' config_data['advanced_settings']['behavioral_statements']['movie']['whitetagged']['played_conditional']='ignore' config_data['advanced_settings']['behavioral_statements']['movie']['whitetagged']['action_control']=0 + config_data['advanced_settings']['behavioral_statements']['movie']['whitetagged']['dynamic_behavior']=False config_data['advanced_settings']['behavioral_statements']['movie']['blacktagged']['action']='delete' config_data['advanced_settings']['behavioral_statements']['movie']['blacktagged']['user_conditional']='all' config_data['advanced_settings']['behavioral_statements']['movie']['blacktagged']['played_conditional']='any_played' config_data['advanced_settings']['behavioral_statements']['movie']['blacktagged']['action_control']=0 + config_data['advanced_settings']['behavioral_statements']['movie']['blacktagged']['dynamic_behavior']=False config_data['advanced_settings']['behavioral_statements']['movie']['whitelisted']['action']='keep' config_data['advanced_settings']['behavioral_statements']['movie']['whitelisted']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['movie']['whitelisted']['played_conditional']='ignore' config_data['advanced_settings']['behavioral_statements']['movie']['whitelisted']['action_control']=3 + config_data['advanced_settings']['behavioral_statements']['movie']['whitelisted']['dynamic_behavior']=False config_data['advanced_settings']['behavioral_statements']['movie']['blacklisted']['action']='delete' config_data['advanced_settings']['behavioral_statements']['movie']['blacklisted']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['movie']['blacklisted']['played_conditional']='any_played' config_data['advanced_settings']['behavioral_statements']['movie']['blacklisted']['action_control']=3 + config_data['advanced_settings']['behavioral_statements']['movie']['blacklisted']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['episode']['favorited']['action']='keep' config_data['advanced_settings']['behavioral_statements']['episode']['favorited']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['episode']['favorited']['played_conditional']='ignore' @@ -108,22 +114,32 @@ def yaml_configurationBuilder(the_dict): config_data['advanced_settings']['behavioral_statements']['episode']['favorited']['extra']['library_genre']=0 config_data['advanced_settings']['behavioral_statements']['episode']['favorited']['extra']['studio_network']=0 config_data['advanced_settings']['behavioral_statements']['episode']['favorited']['extra']['studio_network_genre']=0 + config_data['advanced_settings']['behavioral_statements']['episode']['favorited']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['episode']['whitetagged']['action']='keep' config_data['advanced_settings']['behavioral_statements']['episode']['whitetagged']['user_conditional']='all' config_data['advanced_settings']['behavioral_statements']['episode']['whitetagged']['played_conditional']='ignore' config_data['advanced_settings']['behavioral_statements']['episode']['whitetagged']['action_control']=0 + config_data['advanced_settings']['behavioral_statements']['episode']['whitetagged']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['episode']['blacktagged']['action']='delete' config_data['advanced_settings']['behavioral_statements']['episode']['blacktagged']['user_conditional']='all' config_data['advanced_settings']['behavioral_statements']['episode']['blacktagged']['played_conditional']='any_played' config_data['advanced_settings']['behavioral_statements']['episode']['blacktagged']['action_control']=0 + config_data['advanced_settings']['behavioral_statements']['episode']['blacktagged']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['episode']['whitelisted']['action']='keep' config_data['advanced_settings']['behavioral_statements']['episode']['whitelisted']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['episode']['whitelisted']['played_conditional']='ignore' config_data['advanced_settings']['behavioral_statements']['episode']['whitelisted']['action_control']=3 + config_data['advanced_settings']['behavioral_statements']['episode']['whitelisted']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['episode']['blacklisted']['action']='delete' config_data['advanced_settings']['behavioral_statements']['episode']['blacklisted']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['episode']['blacklisted']['played_conditional']='any_played' config_data['advanced_settings']['behavioral_statements']['episode']['blacklisted']['action_control']=3 + config_data['advanced_settings']['behavioral_statements']['episode']['blacklisted']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audio']['favorited']['action']='keep' config_data['advanced_settings']['behavioral_statements']['audio']['favorited']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['audio']['favorited']['played_conditional']='ignore' @@ -133,22 +149,32 @@ def yaml_configurationBuilder(the_dict): config_data['advanced_settings']['behavioral_statements']['audio']['favorited']['extra']['library_genre']=0 config_data['advanced_settings']['behavioral_statements']['audio']['favorited']['extra']['track_artist']=0 config_data['advanced_settings']['behavioral_statements']['audio']['favorited']['extra']['album_artist']=0 + config_data['advanced_settings']['behavioral_statements']['audio']['favorited']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audio']['whitetagged']['action']='keep' config_data['advanced_settings']['behavioral_statements']['audio']['whitetagged']['user_conditional']='all' config_data['advanced_settings']['behavioral_statements']['audio']['whitetagged']['played_conditional']='ignore' config_data['advanced_settings']['behavioral_statements']['audio']['whitetagged']['action_control']=0 + config_data['advanced_settings']['behavioral_statements']['audio']['whitetagged']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audio']['blacktagged']['action']='delete' config_data['advanced_settings']['behavioral_statements']['audio']['blacktagged']['user_conditional']='all' config_data['advanced_settings']['behavioral_statements']['audio']['blacktagged']['played_conditional']='any_played' config_data['advanced_settings']['behavioral_statements']['audio']['blacktagged']['action_control']=0 + config_data['advanced_settings']['behavioral_statements']['audio']['blacktagged']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audio']['whitelisted']['action']='keep' config_data['advanced_settings']['behavioral_statements']['audio']['whitelisted']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['audio']['whitelisted']['played_conditional']='ignore' config_data['advanced_settings']['behavioral_statements']['audio']['whitelisted']['action_control']=3 + config_data['advanced_settings']['behavioral_statements']['audio']['whitelisted']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audio']['blacklisted']['action']='delete' config_data['advanced_settings']['behavioral_statements']['audio']['blacklisted']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['audio']['blacklisted']['played_conditional']='any_played' config_data['advanced_settings']['behavioral_statements']['audio']['blacklisted']['action_control']=3 + config_data['advanced_settings']['behavioral_statements']['audio']['blacklisted']['dynamic_behavior']=False + if (config_data['admin_settings']['server']['brand'] == 'jellyfin'): config_data['advanced_settings']['behavioral_statements']['audiobook']['favorited']['action']='keep' config_data['advanced_settings']['behavioral_statements']['audiobook']['favorited']['user_conditional']='any' @@ -160,119 +186,155 @@ def yaml_configurationBuilder(the_dict): config_data['advanced_settings']['behavioral_statements']['audiobook']['favorited']['extra']['track_author']=0 config_data['advanced_settings']['behavioral_statements']['audiobook']['favorited']['extra']['author']=0 config_data['advanced_settings']['behavioral_statements']['audiobook']['favorited']['extra']['library_author']=0 + config_data['advanced_settings']['behavioral_statements']['audiobook']['favorited']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audiobook']['whitetagged']['action']='keep' config_data['advanced_settings']['behavioral_statements']['audiobook']['whitetagged']['user_conditional']='all' config_data['advanced_settings']['behavioral_statements']['audiobook']['whitetagged']['played_conditional']='ignore' config_data['advanced_settings']['behavioral_statements']['audiobook']['whitetagged']['action_control']=0 + config_data['advanced_settings']['behavioral_statements']['audiobook']['whitetagged']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audiobook']['blacktagged']['action']='delete' config_data['advanced_settings']['behavioral_statements']['audiobook']['blacktagged']['user_conditional']='all' config_data['advanced_settings']['behavioral_statements']['audiobook']['blacktagged']['played_conditional']='any_played' config_data['advanced_settings']['behavioral_statements']['audiobook']['blacktagged']['action_control']=0 + config_data['advanced_settings']['behavioral_statements']['audiobook']['blacktagged']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['action']='keep' config_data['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['played_conditional']='ignore' config_data['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['action_control']=3 + config_data['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['dynamic_behavior']=False + config_data['advanced_settings']['behavioral_statements']['audiobook']['blacklisted']['action']='delete' config_data['advanced_settings']['behavioral_statements']['audiobook']['blacklisted']['user_conditional']='any' config_data['advanced_settings']['behavioral_statements']['audiobook']['blacklisted']['played_conditional']='any_played' config_data['advanced_settings']['behavioral_statements']['audiobook']['blacklisted']['action_control']=3 + config_data['advanced_settings']['behavioral_statements']['audiobook']['blacklisted']['dynamic_behavior']=False + config_data['advanced_settings']['episode_control']['minimum_episodes']=0 config_data['advanced_settings']['episode_control']['minimum_played_episodes']=0 config_data['advanced_settings']['episode_control']['minimum_episodes_behavior']='Max Played Min Unplayed' + config_data['advanced_settings']['trakt_fix']['set_missing_last_played_date']['movie']=True config_data['advanced_settings']['trakt_fix']['set_missing_last_played_date']['episode']=True config_data['advanced_settings']['trakt_fix']['set_missing_last_played_date']['audio']=True if (config_data['admin_settings']['server']['brand'] == 'jellyfin'): config_data['advanced_settings']['trakt_fix']['set_missing_last_played_date']['audiobook']=True + config_data['advanced_settings']['console_controls']['headers']['script']['show']=True config_data['advanced_settings']['console_controls']['headers']['script']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['headers']['script']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['headers']['script']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['headers']['user']['show']=True config_data['advanced_settings']['console_controls']['headers']['user']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['headers']['user']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['headers']['user']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['headers']['summary']['show']=True config_data['advanced_settings']['console_controls']['headers']['summary']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['headers']['summary']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['headers']['summary']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['footers']['script']['show']=True config_data['advanced_settings']['console_controls']['footers']['script']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['footers']['script']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['footers']['script']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['warnings']['script']['show']=True config_data['advanced_settings']['console_controls']['warnings']['script']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['warnings']['script']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['warnings']['script']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['movie']['delete']['show']=True config_data['advanced_settings']['console_controls']['movie']['delete']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['movie']['delete']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['movie']['delete']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['movie']['keep']['show']=True config_data['advanced_settings']['console_controls']['movie']['keep']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['movie']['keep']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['movie']['keep']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['movie']['post_processing']['show']=True config_data['advanced_settings']['console_controls']['movie']['post_processing']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['movie']['post_processing']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['movie']['post_processing']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['movie']['summary']['show']=True config_data['advanced_settings']['console_controls']['movie']['summary']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['movie']['summary']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['movie']['summary']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['episode']['delete']['show']=True config_data['advanced_settings']['console_controls']['episode']['delete']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['episode']['delete']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['episode']['delete']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['episode']['keep']['show']=True config_data['advanced_settings']['console_controls']['episode']['keep']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['episode']['keep']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['episode']['keep']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['episode']['post_processing']['show']=True config_data['advanced_settings']['console_controls']['episode']['post_processing']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['episode']['post_processing']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['episode']['post_processing']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['episode']['summary']['show']=True config_data['advanced_settings']['console_controls']['episode']['summary']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['episode']['summary']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['episode']['summary']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['audio']['delete']['show']=True config_data['advanced_settings']['console_controls']['audio']['delete']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['audio']['delete']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['audio']['delete']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['audio']['keep']['show']=True config_data['advanced_settings']['console_controls']['audio']['keep']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['audio']['keep']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['audio']['keep']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['audio']['post_processing']['show']=True config_data['advanced_settings']['console_controls']['audio']['post_processing']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['audio']['post_processing']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['audio']['post_processing']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['audio']['summary']['show']=True config_data['advanced_settings']['console_controls']['audio']['summary']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['audio']['summary']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['audio']['summary']['formatting']['background']['color']='' + if (config_data['admin_settings']['server']['brand'] == 'jellyfin'): config_data['advanced_settings']['console_controls']['audiobook']['delete']['show']=True config_data['advanced_settings']['console_controls']['audiobook']['delete']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['audiobook']['delete']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['audiobook']['delete']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['audiobook']['keep']['show']=True config_data['advanced_settings']['console_controls']['audiobook']['keep']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['audiobook']['keep']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['audiobook']['keep']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['audiobook']['post_processing']['show']=True config_data['advanced_settings']['console_controls']['audiobook']['post_processing']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['audiobook']['post_processing']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['audiobook']['post_processing']['formatting']['background']['color']='' + config_data['advanced_settings']['console_controls']['audiobook']['summary']['show']=True config_data['advanced_settings']['console_controls']['audiobook']['summary']['formatting']['font']['color']='' config_data['advanced_settings']['console_controls']['audiobook']['summary']['formatting']['font']['style']='' config_data['advanced_settings']['console_controls']['audiobook']['summary']['formatting']['background']['color']='' + config_data['advanced_settings']['UPDATE_CONFIG']=False + config_data['advanced_settings']['REMOVE_FILES']=False + config_data['admin_settings']['api_controls']['attempts']=4 config_data['admin_settings']['api_controls']['item_limit']=25 + config_data['admin_settings']['cache']['size']=32 config_data['admin_settings']['cache']['fallback_behavior']='LRU' config_data['admin_settings']['cache']['minimum_age']=200 diff --git a/mumc_modules/mumc_versions.py b/mumc_modules/mumc_versions.py index 7c39e75..00994e7 100755 --- a/mumc_modules/mumc_versions.py +++ b/mumc_modules/mumc_versions.py @@ -5,7 +5,7 @@ #Get the current script version def get_script_version(): - return '5.3.6' + return '5.3.7' #Get the min config version diff --git a/mumc_modules/mumc_yaml_edits.py b/mumc_modules/mumc_yaml_edits.py index b3fac5a..d4e06ca 100755 --- a/mumc_modules/mumc_yaml_edits.py +++ b/mumc_modules/mumc_yaml_edits.py @@ -191,7 +191,6 @@ def add_dynamic_behavior_to_yaml(missing_dynamic_behavior_dict,server_brand,init cfg['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['played_conditional']=temp_dict['behavioral_statements']['audiobook']['whitelisted']['played_conditional'] cfg['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['action_control']=temp_dict['behavioral_statements']['audiobook']['whitelisted']['action_control'] cfg['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['dynamic_behavior']=missing_dynamic_behavior_dict['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['dynamic_behavior'] - cfg['advanced_settings']['behavioral_statements']['audiobook']['whitelisted']['extra']=temp_dict['behavioral_statements']['audiobook']['whitelisted']['extra'] cfg['advanced_settings']['behavioral_statements']['audiobook']['blacklisted']={} cfg['advanced_settings']['behavioral_statements']['audiobook']['blacklisted']['action']=temp_dict['behavioral_statements']['audiobook']['blacklisted']['action'] cfg['advanced_settings']['behavioral_statements']['audiobook']['blacklisted']['user_conditional']=temp_dict['behavioral_statements']['audiobook']['blacklisted']['user_conditional']