jkwill87 / mnamer

media file renaming and organizing tool
https://pypi.org/project/mnamer
MIT License
773 stars 66 forks source link

Deletes TV Mini Series #231

Open mbnoimi opened 1 year ago

mbnoimi commented 1 year ago

When mnamer runs to rename some TV Mini Series it deletes all the episodes and keeps only one episode! Ex. Apocalypse Never-Ending War 1918-1926 has two episodes. It deleted one and kept one with a wrong name!

How can I config mnamer to stop deleting files?

.mnamer-v2.json

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

Discussed in https://github.com/jkwill87/mnamer/discussions/224

twophyro commented 10 months ago
"no_overwrite": false,

Set it to"no_overwrite": true,

mnamer can sometimes id two files as the same episode. REMEMBER to always run mnamer with the --test flag to first see what will change.

Writes file1.ext > episode1.ext
Writes file2.ext > episode1.ext
Overwriting episode1.ext with the data from file2.ext

Just saw this issue, hope it helped.