Skip to content

Add --series-folder option - #404

Open
dr3 wants to merge 1 commit into
jkwill87:mainfrom
dr3:feat/series-folder
Open

dr3 wants to merge 1 commit into
jkwill87:mainfrom
dr3:feat/series-folder

Conversation

@dr3

@dr3 dr3 commented Oct 7, 2026

Copy link
Copy Markdown

Adds an opt-in --series-folder setting ("series_folder": true in config) that moves episodes into their series folder when episode_directory isn't set.

Without it, running mnamer over a mixed folder like ~/Downloads with a format such as Season {season}/... puts every show's episodes into the same Season 1 folder.

With it, mnamer looks at the folder the file is in:

  • Season N / Specials and release folders (Show.S01E02.1080p-GRP) are stepped out of first
  • if the folder name matches the series (ignoring case, punctuation and a trailing (2015)), it's used as is
  • otherwise a folder named after the series is created there

So Downloads/Show.S01E02.mkv goes to Downloads/Show/Season 1/..., and TV/Show (2015)/Season 1/Show.S01E02.mkv stays where it is. A configured episode_directory still takes precedence, and movies are unaffected.

test_multi_part_episode fails for me on main as well, so it's unrelated to this change.

Move episodes into their series folder when no episode directory is set.
An existing folder named after the series is reused, stepping out of
season and release folders first, otherwise one is created next to the
file.

This branch has not been deployed

No deployments
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.

1 participant