Quantcast
Channel: configuration - Forum - FlexGet
Viewing all articles
Browse latest Browse all 716

Jinja2 pathscrub not working properly

$
0
0

@Emanuele_Sacchi wrote:

In order to format my TV series names correctly, avoiding "illegal" characters, I used to apply the replace filer to skip characters like ":" (colon) and "?" (question mark).

Yesterday, reading the documentation, I discovered the existence of the pathscrub command, so I changed my config to something like

content_filename: "{{tvdb_series_name|pathscrub|re_replace(' \\([0-9]*\\)','')}} {{tvdb_season}}x{{tvdb_episode|pad(2)}} - {{tvdb_ep_name|pathscrub}}"

Unfortunately it doesn't seem to work: instead of "NCIS New Orleans 3x15 - End of the Line.mkv" I got "NTBBL1~B.MKV", which is the expected behavior when it encounters forbidden characters (like the colon in the series name).

Am I doing something wrong or there's an issue with pathscrub?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles