Skip to content

Commit

Permalink
v5 code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
terrelsa13 committed Jul 2, 2024
1 parent 9731f68 commit dd6dc52
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion mumc_modules/mumc_console_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ def build_print_media_item_details(item,var_dict,the_dict):
if ('Played' in item['UserData']):
try:

#strings_list[0]=strings_list[0] + item['Type']
strings_list+=item['Type']

if (mediaType == 'movie'):
Expand Down
2 changes: 1 addition & 1 deletion mumc_modules/mumc_post_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ def postProcessing(the_dict,media_dict):
postproc_dict=addItem_removeItem_fromDeleteList_usingBehavioralPatterns('blacktagged',postproc_dict)

if (the_dict['DEBUG']):
appendTo_DEBUG_log("\n---------------------[user_key]--------------------------------------",3,the_dict)
appendTo_DEBUG_log("\n-----------------------------------------------------------",3,the_dict)
appendTo_DEBUG_log("\n",3,the_dict)
if ((postproc_dict['media_played_days'] >= 0) or (postproc_dict['media_created_days'] >= 0)):
appendTo_DEBUG_log("\nisblacktagged_Played_" + postproc_dict['media_type_lower'] + ":",3,the_dict)
Expand Down
13 changes: 7 additions & 6 deletions mumc_modules/mumc_tagged.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,19 @@ def getChildren_taggedMediaItems(suffix_str,user_info,var_dict,the_dict):

#get tags for child items
for child_item in data_dict['data_']['Items']:
matched_tags=[]
if (child_item['Type'].casefold() == 'movie'):
placeholder,matched_tags=get_isMOVIE_Tagged(the_dict,child_item,user_info,var_dict[suffix_str])
childIsTagged,matched_tags=get_isMOVIE_Tagged(the_dict,child_item,user_info,var_dict[suffix_str])
elif (child_item['Type'].casefold() == 'episode'):
placeholder,matched_tags=get_isEPISODE_Tagged(the_dict,child_item,user_info,var_dict[suffix_str])
childIsTagged,matched_tags=get_isEPISODE_Tagged(the_dict,child_item,user_info,var_dict[suffix_str])
elif (child_item['Type'].casefold() == 'audio'):
placeholder,matched_tags=get_isAUDIO_Tagged(the_dict,child_item,user_info,var_dict[suffix_str])
childIsTagged,matched_tags=get_isAUDIO_Tagged(the_dict,child_item,user_info,var_dict[suffix_str])
elif (child_item['Type'].casefold() == 'audiobook'):
placeholder,matched_tags=get_isAUDIOBOOK_Tagged(the_dict,child_item,user_info,var_dict[suffix_str])
childIsTagged,matched_tags=get_isAUDIOBOOK_Tagged(the_dict,child_item,user_info,var_dict[suffix_str])
else:
childIsTagged=False

#save tags to child items
if (matched_tags):
if (childIsTagged):
child_item=addTags_To_mediaItem(matched_tags,child_item,the_dict)

child_dict['Items']=data_dict['data_']['Items']
Expand Down
2 changes: 1 addition & 1 deletion mumc_modules/mumc_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#Get the current script version
def get_script_version():
return '5.8.26-beta'
return '5.8.27-beta'


#Get the min config version
Expand Down

0 comments on commit dd6dc52

Please sign in to comment.