{"action":"opened","issue":{"url":"https://api.github.com/repos/Sonarr/Sonarr/issues/815","labels_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/815/labels{/name}","comments_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/815/comments","events_url":"https://api.github.com/repos/Sonarr/Sonarr/issues/815/events","html_url":"https://github.com/Sonarr/Sonarr/issues/815","id":108422675,"number":815,"title":"Error handling when episode name is very long","user":{"login":"Nelluk","id":2545428,"avatar_url":"https://avatars.githubusercontent.com/u/2545428?v=3","gravatar_id":"","url":"https://api.github.com/users/Nelluk","html_url":"https://github.com/Nelluk","followers_url":"https://api.github.com/users/Nelluk/followers","following_url":"https://api.github.com/users/Nelluk/following{/other_user}","gists_url":"https://api.github.com/users/Nelluk/gists{/gist_id}","starred_url":"https://api.github.com/users/Nelluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nelluk/subscriptions","organizations_url":"https://api.github.com/users/Nelluk/orgs","repos_url":"https://api.github.com/users/Nelluk/repos","events_url":"https://api.github.com/users/Nelluk/events{/privacy}","received_events_url":"https://api.github.com/users/Nelluk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-25T23:20:09Z","updated_at":"2015-09-25T23:20:09Z","closed_at":null,"body":"The error in the logs indicates that the file name length is to blame, but it is really the long episode name.\r\n\r\n\tCouldn't import episode C:\\Users\\Nelluk\\Deluge Downloaded\\The.Late.Show.with.Stephen.Colbert.2015.09.24.Andrew.Sullivan.CBS.WEBRip.AAC2.0.x264-SynHD.mp4: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.\r\n\r\n\tSystem.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.\r\n\tat System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)\r\n\tat System.IO.Path.GetDirectoryName(String path)\r\n\tat NzbDrone.Core.MediaFiles.EpisodeFileMovingService.EnsureEpisodeFolder(EpisodeFile episodeFile, Series series, Int32 seasonNumber, String filePath) in m:\\BuildAgent\\work\\6c3239faf2b92630\\src\\NzbDrone.Core\\MediaFiles\\EpisodeFileMovingService.cs:line 153\r\n\tat NzbDrone.Core.MediaFiles.EpisodeFileMovingService.CopyEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode) in m:\\BuildAgent\\work\\6c3239faf2b92630\\src\\NzbDrone.Core\\MediaFiles\\EpisodeFileMovingService.cs:line 88\r\n\tat NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile(EpisodeFile episodeFile, LocalEpisode localEpisode, Boolean copyOnly) in m:\\BuildAgent\\work\\6c3239faf2b92630\\src\\NzbDrone.Core\\MediaFiles\\UpgradeMediaFileService.cs:line 60\r\n\tat 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 90\r\n\r\n\r\nEpisode name: **The Late Show With Stephen Colbert - 09/24/2015 - Andrew Sullivan, Maria Shriver, Jim Gaffigan, Archbishop Thomas Wenski, YMCA Jerusalem Youth Chorus, The Choir Of St. Jean Baptiste**\r\n\r\nHappens with the automatically triggered import in CDH, and a Manual Import.\r\n\r\n\r\n\r\n18:58 _zoggy_: yeah sonarr needs to add adapative renaming\r\n18:58 _zoggy_: if multi-ep count is grater than x or ep title is greater than x revise what it uses\r\n18:59 _zoggy_: was a few shows in sb we ran into that would never work if ep title was used until we added logic to prevent it from happening\r\n18:59 _zoggy_: since most people would rather have the ep than no ep with the title"}}