Couldn't import episode An empty file name is not valid

Sonarr version: 2.0.0.5301
Mono: Mono version (5.18.0.240)**
OS: Debian GNU/Linux 9 (stretch)
Debug logs:

Message:

Couldn't import episode /downloads/Black Clover - 68.mkv: An empty file name is not valid.

Exception:

System.ArgumentException: An empty file name is not valid.
  at System.IO.DirectoryInfo.CheckPath (System.String path) [0x00016] in <04750267503a43e5929c1d1ba19daf3e>:0 
  at System.IO.DirectoryInfo..ctor (System.String path, System.Boolean simpleOriginalPath) [0x00006] in <04750267503a43e5929c1d1ba19daf3e>:0 
  at System.IO.DirectoryInfo..ctor (System.String path) [0x00000] in <04750267503a43e5929c1d1ba19daf3e>:0 
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo..ctor(string)
  at NzbDrone.Common.Extensions.PathExtensions.IsParentPath (System.String parentPath, System.String childPath) [0x00060] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Extensions\PathExtensions.cs:92 
  at NzbDrone.Common.Extensions.PathExtensions.GetRelativePath (System.String parentPath, System.String childPath) [0x00000] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Common\Extensions\PathExtensions.cs:60 
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.GetOriginalFilePath (NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x0006f] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:177 
  at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List`1[T] decisions, System.Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem, NzbDrone.Core.MediaFiles.EpisodeImport.ImportMode importMode) [0x00263] in M:\BuildAgent\work\5d7581516c0ee5b3\src\NzbDrone.Core\MediaFiles\EpisodeImport\ImportApprovedEpisodes.cs:105

Description of issue:
When trying to manually import episodes, but it fails. Automatic import is also failing, have several weeks of anime stuck in DL folder.

This is fixed in develop.

is there an ETA on when it will be ready for release?

Seeing the same issue with my setup. Is a release coming?

1 Like

I found his reply on a bug post on git. The issue is something to do with top level importing, all you have to do to temp fix is move the fines down one folder (see example below)

Here’s what I did to fix:

/downloads/my_show_s01_e02.mkv
moved to–> /downloads/finished/my_show_s01_e02.mkv

then it imports without error. I hope the bug ver is released soon, this bug makes it no longer automated…

Are your completed downloads in the same folder you are downloading into? (I don’t mean where Sonarr is importing them to).

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.