Skip to content

Why is manipulate plugin not affecting filenames as well? #3638

Answered by ghost
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

While following the jinja documentation I found a solution that renames the file in transmission as well:

    manipulate:
      - title:
          replace:
            regexp: '^(\[NC-Raws\]) .*(?=[฀-﫿]).+? \/ '
            format: '\1 '
      - title:
          replace:
            regexp: ':'
            format: ''
    set:
      content_filename: "{{ series_parser['data'] }}"

I found out about series_parser > data while looking at the --dump entries

series_parser       : <SeriesParseResult(data=[NC-Raws] 4-nin wa Sorezore Uso wo Tsuku - 10 (B-Global 1920x1080 HEVC AAC
                      MKV),name=4-nin wa Sorezore Uso wo Tsuku,id=10,season=0,season_pack=None,episode=10,quality=1080p…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant