Can't rename/move anime

I made a topic on this a few days earlier but it seems to have fallen into the woodwork. It’s still an issue I’m having, so here it is again:

I’m using Sonarr and SABnzbd to download anime. When Sonarr tries to move completed files into another folder, I get the following error:

Couldn’t import episode D:\sabnzbd complete\tv[HorribleSubs].Akame.ga.Kill!-24.[1080p][HorribleSubs] Akame ga Kill! - 24 [1080p].mkv: Illegal characters in path.

…with the following exception:

15-2-26 17:56:27.5|Warn|ImportApprovedEpisodes|Couldn’t import episode D:\sabnzbd complete\tv\ [HorribleSubs].Akame.ga.Kill!-24.[1080p]\ [HorribleSubs] Akame ga Kill! - 24 [1080p].mkv

System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.Combine(String path1, String path2)
at NzbDrone.Core.Organizer.FileNameBuilder.BuildFilePath(Series series, Int32 seasonNumber, String fileName, String extension) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\Organizer\FileNameBuilder.cs:line 163
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeFileMovingService.cs:line 64
at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\UpgradeMediaFileService.cs:line 64
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import(List`1 decisions, Boolean newDownload, DownloadClientItem downloadClientItem) in m:\BuildAgent\work\6c3239faf2b92630\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:line 89

All anime downloaded through Sonarr has this issue.

Interestingly, I’m also unable to include brackets in the episode renamer. Doing so displays the following message:

Produces invalid file names

My current naming convention is:

|{Release Group}| {Series Title} - S{season:00}E{episode:00} - {Absolute:000} - {Episode Title} {Quality Full}

Any fixes for these would be greatly appreciated!

I moved a post to an existing topic: Illegal characters in path when moving files with brackets?

You want a pipe character in a filename?! :open_mouth: