terrelsa13 / MUMC

Multi-User Media Cleaner aka MUMC (pronounced Mew-Mick) will go through movies, tv episodes, audio tracks, and audiobooks in your Emby/Jellyfin libraries deleting media items you no longer want.
GNU General Public License v3.0
92 stars 6 forks source link

Pre-Defined Tags Which Act As Played And Created Filter Statements #117

Closed terrelsa13 closed 2 weeks ago

terrelsa13 commented 3 months ago

https://github.com/terrelsa13/MUMC/issues/109#issuecomment-2155734048

I thought about a potential enhancement to have some 'preset tags' (eg 'RetainXd' (where x could be an integer of days) for such purpose, as I would imagine some folks would find it valuable to have different retention periods on movies, shows, or even on specific series. But i'm personally not bothered by having a few containers for that purpose. But was just an idea of a potential future enhancement.

Good idea here! If I were to do something like this this generic tag would need to contain the same information a basic filter statement contains: _condition_days, countequality, and count and way to indicate if it is for played or created filtering. To match the current functionality.

Optional: filter_tags become another form of filter_statements:

filter_tags can be added to any combination of these three locations

Location 1 *RECOMMENDED*

basic_settings:
  filter_tags:
    media_type:
      whitetagged:
      - created:999:>=:0:false
      - played:456:not <:7
      blacktagged: [played:123:==:1,created:4321:<:2:true] 

Location 2

advanced_settings:
  behavioral_statements:
    media_type:
      whitetags:
      - created:999:>=:0:false
      - played:456:not <:7
      blacktags: [played:123:==:1,created:4321:<:2:true] 

Location 3

advanced_settings:
  whitetags:
  - created:999:>=:0:false
  - played:456:not <:7
  blacktags: [played:123:==:1,created:4321:<:2:true] 

Optional: behavioral_tags become another form of behavioral_statements:

advanced_settings:
  behavioral_tags:
    media_type:
      created:999:>=:0:false:
        action: keep
        user_conditional: all
        played_conditional: any
        action_control: 3
        dynamic_behavior: true
        high_priority: true
      played:123:==:1:
        action: delete
        user_conditional: all
        played_conditional: ignore
        action_control: 5
        dynamic_behavior: false
        high_priority: true
      played:456:not <:7:
        action: keep
        user_conditional: all
        played_conditional: any_all
        action_control: 5
        dynamic_behavior: true
        high_priority: false
      created:4321:<:2:true:
        action: delete
        user_conditional: all
        played_conditional: all_any
        action_control: 3
        dynamic_behavior: false
        high_priority: false
terrelsa13 commented 2 months ago

v5.9.x

ETA - See the beta branch (no official beta release)

Wiki update WIP