Leading zero on single digit Season folders?

When recording an episode of a TV series, the DVR will create a ‘Season 01’ directory to contain the recording, even if there’s an existing ‘Season 1’ directory. That subtree of my filesystem has every directory set to ‘rwxrwxrwx’ so I don’t see how it could be permissions-related.

Other (very popular) tools I use don’t add a leading zero when creating new Season directories. So I’m currently running around manually merging ‘Season 0_n_’ directories back into the previously existing ‘Season n’ directories. I’m reluctant to automate this, in case I overwrite a higher-resolution version (as that automatic feature doesn’t work if it’s not looking in the right directory…).

This is becoming a chore, surely this isn’t intentional? if it is, can we have an option to switch it to the same convention that other tools use? (i.e. no leading zero for single-digit season numbers in directory names).

In the meantime, can I work around this by symlinking ‘Season 0_n_’ directories to ‘Season n’ directories, or will that confuse the media scanning process?

  • Paul

Fedora 25, with media stored on a ~12TB btrfs filesystem on top of ~22TB RAID-5 LVM. Rootfs on ~227GB SSD. Kernel 4.11 (and up-to-date with Fedora 25 repos).

Plex does seem to create folders with leading zeroes. I use mcebuddy to process recordings and it is configured to use single digit folder names.

Is there a specific reason you are wanting the single digit folder names? If not, instead of constantly moving files to your other folders why not move all your files to the 2 digit folders. Then you don’t have to worry about checking folders in the future.

I assume that Plex is making the DVR honor their own rules:

https://support.plex.tv/hc/en-us/articles/200220687-Naming-Series-Season-Based-TV-Shows

I also have ‘Season 1’ style directories that I’ve been slowly converting to honor the Plex naming conventions.

Other tools I use, like Sonarr & KMTTG for example, do not create season directories with a leading zero. Plex is quite happy scanning season directories without a leading zero, but other tools aren’t as accommodating.

The issue that I consider to be a ‘bug’ is that it creates a new directory for a single-digit series with a leading zero, when one already exists without a leading zero. Thus I get duplicates I have to manually merge. This is the case when I’m using the DVR for new episodes, and Sonarr to back-fill episodes of the same series.

I’ll have to check the other tools to see if there are configuration options to force them to be a minimum of two digits. Otherwise I’m going to have to generate a parallel folder tree for each convention, one symlink’d to the other.

This just doesn’t seem up to the normal high standards of the good folks at Plex.

Looks like I can change Sonarr to use two-digit season numbers in the directory name by changing the ‘Season Folder Name’ setting to ‘Season {season:00}’.

Though I still regard creating a new folder for a season (with a leading zero) when one already exists (without a zero) as a bug.