Skip to content

create directory does not work as expected with colons #139

@N1ck01as

Description

@N1ck01as

Hello,
There is an issue with renaming directories.
Here is my command:

mnamer --media=movie --no-cache --test --hits=50 .
testing mode
Starting mnamer

Processing Movie "Le Labyrinthe - La Terre Brûlée (2015).mkv" (3.77GB)
select match
   Mont Saint-Michel : le Labyrinthe de L’archange (2017)
   Le Labyrinthe Secret de Namoroka (2018)
   Le Labyrinthe (2014)
   Le Labyrinthe de L'injustice (2013)
   Évasion 2 : le Labyrinthe D'hadès (2018)
   Le Labyrinthe de La Grisaia (2015)
   Le Labyrinthe du Silence (2014)
 ❱ Le Labyrinthe : La Terre Brûlée (2015)
   Andròn: le Labyrinthe Noir (2015)
   Le Labyrinthe : Le Remède Mortel (2018)
   skip
   quit
moving to /Volumes/downloads/FILMS/Labyrinthe/Le Labyrinthe  La Terre Brûlée (2015)/Le Labyrinthe - La Terre Brûlée (2015).mkv

The directory name is not sanitized with the same parameters as the filename...

Here are my parameters:

{
    "api_key_omdb": null,
    "api_key_tmdb": null,
    "api_key_tvdb": null,
    "api_key_tvmaze": null,
    "batch": false,
    "episode_api": "tvmaze",
    "episode_directory": "{series}/SAISON {season:02}",
    "episode_format": "{series} - S{season:02}E{episode:02} - {title}.{extension}",
    "hits": 20,
    "ignore": [
        ".*sample.*",
        "^RARBG.*"
    ],
    "language": "fr",
    "lower": false,
    "mask": [
        ".avi",
        ".m4v",
        ".mp4",
        ".mkv",
        ".ts",
        ".wmv",
        ".srt",
        ".idx",
        ".sub"
    ],
    "movie_api": "tmdb",
    "movie_directory": "{name} ({year})",
    "movie_format": "{name} ({year}).{extension}",
    "no_guess": false,
    "no_overwrite": false,
    "no_style": false,
    "recurse": false,
    "replace_after": {
        "&": "and",
        ";": ",",
        "@": "at",
        "?":"",
        "/":"-",
        " : ":", ",
        ":":", "
    },
    "replace_before": {},
    "scene": false,
    "verbose": false
}

It seems the directory renaming does not care about the given parameters.
I tested a lof of different combinations with no success...

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions