forked from clara-j/media_cleaner
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Played And Created Filter Statement Breakdown
terrelsa13 edited this page Aug 17, 2024
·
5 revisions
- Specify the filter MUMC will use when querying the Emby/Jellyfin server for
media_item
s played a specified time ago. - Specify the filter MUMC will use when querying the Emby/Jellyfin server for
media_item
s created a specified time ago.
basic_settings:
filter_statements:
media_type:
played:
condition_days: integer
count_equality: string
count: integer
basic_settings:
filter_statements:
media_type:
created:
condition_days: integer
count_equality: string
count: integer
behavioral_control: boolean
condition_days
can range from:
- -1 - Disabled
- 0 thru 730500 - Number of days
count_equality
can be one of the following:
- '>'
- '<'
- '>='
- '<='
- '=='
- 'not <'
- 'not >'
- 'not <='
- 'not >='
- 'not =='
count
can range from:
- -1 - Disabled
- 0 thru 730500 - Number of times played
behavioral_control
is either:
- true
- false
Created filter_statements implying negative count:
will be evaluted as count: 0
(i.e. unplayed media_item
s).
-
Find episodes with a played count < 0:
- ...
count_equality: '<'
count: 0
-
Find movies with a played count <= 0:
- ...
count_equality: '<='
count: 0
-
Find movies with a played count not > 0:
- ...
count_equality: 'not >'
count: 0
if (played condition_days == -1)
PlayedPlayCountEvaluation='disabled'
else (played condition_days >= 0)
if ((played count_equality + played count) <= 0)
PlayedPlayCountEvaluation = 'Query_Unplayed_Media'
else if ((played count_equality + played count) > 0)
PlayedPlayCountEvaluation = 'Query_Played_Media'
else ((played count_equality + played count) <= 0) and ((played count_equality + played count) > 0)
PlayedPlayCountEvaluation = 'Query_Both_Played_And_Unplayed_Media'
if (created condition_days == -1)
CreatedPlayCountEvaluation='disabled'
else (created condition_days >= 0)
if ((created count_equality + created count) <= 0)
CreatedPlayCountEvaluation = 'Query_Unplayed_Media'
else if ((created count_equality + created count) > 0)
CreatedPlayCountEvaluation = 'Query_Played_Media'
else ((created count_equality + created count) <= 0) and ((created count_equality + created count) > 0)
CreatedPlayCountEvaluation = 'Query_Both_Played_And_Unplayed_Media'
if (PlayedPlayCountEvaluation == 'disabled') and (CreatedPlayCountEvaluation == 'disabled')
QueryForPlayedUnplayedBothOrNone = Do_Not_Query_For_This_Media_Type
else if (PlayedPlayCountEvaluation == Query_Unplayed_Media) and (CreatedPlayCountEvaluation == Query_Unplayed_Media)
QueryForPlayedUnplayedBothOrNone = Query_Unplayed_Media
else if (PlayedPlayCountEvaluation == Query_Played_Media) and (CreatedPlayCountEvaluation == Query_Played_Media)
QueryForPlayedUnplayedBothOrNone = Query_Played_Media
else if (PlayedPlayCountEvaluation == Query_Unplayed_Media) and (CreatedPlayCountEvaluation == 'disabled')
QueryForPlayedUnplayedBothOrNone = Query_Unplayed_Media
else if (PlayedPlayCountEvaluation == Query_Played_Media) and (CreatedPlayCountEvaluation == 'disabled')
QueryForPlayedUnplayedBothOrNone = Query_Played_Media
else if (PlayedPlayCountEvaluation == 'disabled') and (CreatedPlayCountEvaluation == Query_Unplayed_Media)
QueryForPlayedUnplayedBothOrNone = Query_Unplayed_Media
else if (PlayedPlayCountEvaluation == 'disabled') and (CreatedPlayCountEvaluation == Query_Played_Media)
QueryForPlayedUnplayedBothOrNone = Query_Played_Media
else
QueryForPlayedUnplayedBothOrNone = Query_Both_Played_And_Unplayed_Media
-
media_item
s returned from the query are evaluated to find the following:-
true
orfalse
: Was themedia_item
played at least playedcondition_days
ago? -
true
orfalse
: Does themedia_item
meet the playedcount_equality
and playedcount
?- If both are
true
themedia_item
is added to the played_items_delete_list
- If both are
-
true
orfalse
: Was themedia_item
created at least createdcondition_days
ago? -
true
orfalse
: Does themedia_item
meet the createdcount_equality
and createdcount
?- If both are
true
themedia_item
is added to the created_items_delete_list
- If both are
-
-
During post-processing:
- When
behavioral_control: true
- The created_items_delete_list is merged into the played_items_delete_list before behavioral_statements are evaluated.
- When
behavioral_control: false
- The created_items_delete_list is merged into the played_items_delete_list after behavioral_statements are evaluated.
- When
Additional Information - MUMC extras.
- MUMC wiki
- Install
- Files & Directories
- First Run
- Scheduled Run
- Terminology
- Configuration File Examples
- Configuration Tree
-
Additional Information
- OS Permissions
- User And Library Builder
- Played And Created Filter Statement Breakdown
- Played And Created Filter Tag Breakdown
- Dangerous Filter Statements
- Behavioral Statement Breakdown
- Behavioral Tag Breakdown
- Blacklisting vs Whitelisting
- Blacktagging vs Whitetagging
- Library Matching byId vs byPath vs byNetworkPath
- Minimum Episodes vs Minium Played Episodes
- Conditional Behavior Priorities
- Command-Line Options
- Make MUMC Run FASTERRRRRR!!!
- Known Limitations