Skip to content

[add] normalize filter#3287

Merged
gazpachoking merged 2 commits intoFlexget:developfrom
soloam:normalized_filters
Dec 14, 2021
Merged

[add] normalize filter#3287
gazpachoking merged 2 commits intoFlexget:developfrom
soloam:normalized_filters

Conversation

@soloam
Copy link
Copy Markdown
Contributor

@soloam soloam commented Dec 14, 2021

Motivation for changes:

Adds filters to normalize text

Detailed changes:

  • Added filters

Config usage if relevant (new plugin or updated schema):

        tasks:
          asscify_me:
            mock:
              - {"title":"[My](Tìtlê)-ìs a' me^ss", "url":"mock://local" }
                
            accept_all: yes
                
            set:
              title1: "{{title|asciify|replace('is','is still')}}"
              title2: "{{title|strip_symbols|replace('ìs','ìs still')}}"
              title3: "{{title|asciify|strip_symbols|replace('is','is not')}}"

Log Result

title1           : [My](Title)-is still a' me^ss
title2           : My Tìtlê ìs still a mess
title3           : My Title is not a mess

@gazpachoking gazpachoking merged commit eea7c08 into Flexget:develop Dec 14, 2021
@soloam soloam deleted the normalized_filters branch December 23, 2021 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants