Chinese in folder / filenames causes import from drone factory to fail

I just tried importing a series with the Chinese name in the file / folder name.

Foldername in question: Heart Of Greed - 溏心风暴
Filename example: 溏心风暴 - Episode 01.rmvb

When the foldername has chinese charactors (I didn’t test with other unicode chars), it fails to match it to a series:

14-11-12 08:32:19.9|Trace|CommandExecutor|Publishing DownloadedEpisodesScanCommand
14-11-12 08:32:19.9|Trace|CommandExecutor|DownloadedEpisodesScanCommand -> DownloadedEpisodesImportService
14-11-12 08:32:19.9|Debug|Parser|Parsing string 'Heart Of Greed - ? ? ? ?'
14-11-12 08:32:19.9|Debug|Parser|Unable to parse Heart Of Greed - ? ? ? ?
14-11-12 08:32:19.9|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Heart Of Greed - ? ? ? ?
14-11-12 08:32:19.9|Debug|DownloadedEpisodesImportService|Heart Of Greed - ? ? ? ? folder quality: Unknown v1
14-11-12 08:32:19.9|Debug|DownloadedEpisodesImportService|Unknown Series Heart Of Greed - ? ? ? ?
14-11-12 08:32:19.9|Debug|DiskScanService|Scanning '/volumes/completed/adhoc' for video files
14-11-12 08:32:19.9|Debug|DiskScanService|0 video files were found in /volumes/completed/adhoc

After renaming the folder, it still fails to import unless I rename the file to Heart-Of-Greed S01Ex.rmvb. Although now I’m thinking this could be due to the season number not being in the folder? (although the series only has 1 season)

14-11-12 08:33:04.5|Trace|CommandExecutor|DownloadedEpisodesScanCommand -> DownloadedEpisodesImportService
14-11-12 08:33:04.5|Trace|EventAggregator|Publishing CommandUpdatedEvent
14-11-12 08:33:04.5|Trace|EventAggregator|CommandUpdatedEvent -> CommandModule
14-11-12 08:33:04.5|Trace|EventAggregator|CommandUpdatedEvent <- CommandModule
14-11-12 08:33:04.5|Debug|Parser|Parsing string 'Heart Of Greed'
14-11-12 08:33:04.5|Debug|Parser|Unable to parse Heart Of Greed
14-11-12 08:33:04.5|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Heart Of Greed
14-11-12 08:33:04.5|Debug|DownloadedEpisodesImportService|Heart Of Greed folder quality: Unknown v1
14-11-12 08:33:04.5|Debug|DiskScanService|Scanning '/volumes/completed/adhoc/Heart Of Greed' for video files
14-11-12 08:33:04.5|Debug|DiskScanService|40 video files were found in /volumes/completed/adhoc/Heart Of Greed
14-11-12 08:33:04.5|Debug|ImportDecisionMaker|Analyzing 40/40 files.
14-11-12 08:33:04.5|Debug|Parser|Parsing string 'Heart-Of-Greed S01E01.rmvb'
14-11-12 08:33:04.5|Trace|Parser|^(?<title>.+?)(?:(\W|_)+S?(?<season>(?<!\d+)(?:\d{1,2}|\d{4})(?!\d+))(?:[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+))(?:(?:\-|[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+)))*)\W?(?!\\)
14-11-12 08:33:04.5|Debug|Parser|Episode Parsed. heartgreed - S01E01 
14-11-12 08:33:04.5|Debug|Parser|Language parsed: English
14-11-12 08:33:04.5|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Heart-Of-Greed S01E01.rmvb
14-11-12 08:33:04.5|Debug|Parser|Quality parsed: SDTV v1
14-11-12 08:33:04.5|Debug|Parser|Release Group parsed: Greed
14-11-12 08:33:04.5|Debug|ImportDecisionMaker|Size: 326655816
14-11-12 08:33:04.5|Debug|VideoFileInfoReader|Getting media info from /volumes/completed/adhoc/Heart Of Greed/Heart-Of-Greed S01E01.rmvb
14-11-12 08:33:04.8|Trace|ConfigService|Unable to find config key 'skipfreespacecheckwhenimporting' defaultValue:'False'
14-11-12 08:33:04.8|Debug|VideoFileInfoReader|Getting media info from /volumes/completed/adhoc/Heart Of Greed/Heart-Of-Greed S01E01.rmvb
14-11-12 08:33:04.9|Debug|SampleService|Runtime is over 90 seconds
14-11-12 08:33:04.9|Trace|ConfigService|Unable to find config key 'downloadclientworkingfolders' defaultValue:'_UNPACK_|_FAILED_'
14-11-12 08:33:04.9|Debug|Parser|Parsing string 'Heart-Of-Greed S01E02.rmvb'
14-11-12 08:33:04.9|Trace|Parser|^(?<title>.+?)(?:(\W|_)+S?(?<season>(?<!\d+)(?:\d{1,2}|\d{4})(?!\d+))(?:[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+))(?:(?:\-|[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+)))*)\W?(?!\\)
14-11-12 08:33:04.9|Debug|Parser|Episode Parsed. heartgreed - S01E02 
14-11-12 08:33:04.9|Debug|Parser|Language parsed: English
14-11-12 08:33:04.9|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Heart-Of-Greed S01E02.rmvb
14-11-12 08:33:04.9|Debug|Parser|Quality parsed: SDTV v1
14-11-12 08:33:04.9|Debug|Parser|Release Group parsed: Greed
14-11-12 08:33:04.9|Debug|ImportDecisionMaker|Size: 321856010
14-11-12 08:33:04.9|Debug|VideoFileInfoReader|Getting media info from /volumes/completed/adhoc/Heart Of Greed/Heart-Of-Greed S01E02.rmvb
14-11-12 08:33:05.1|Trace|ConfigService|Unable to find config key 'skipfreespacecheckwhenimporting' defaultValue:'False'
14-11-12 08:33:05.1|Debug|VideoFileInfoReader|Getting media info from /volumes/completed/adhoc/Heart Of Greed/Heart-Of-Greed S01E02.rmvb
14-11-12 08:33:05.2|Debug|SampleService|Runtime is over 90 seconds
14-11-12 08:33:05.2|Trace|ConfigService|Unable to find config key 'downloadclientworkingfolders' defaultValue:'_UNPACK_|_FAILED_'
14-11-12 08:33:05.2|Debug|Parser|Parsing string 'Heart-Of-Greed S01E03.rmvb'
14-11-12 08:33:05.2|Trace|Parser|^(?<title>.+?)(?:(\W|_)+S?(?<season>(?<!\d+)(?:\d{1,2}|\d{4})(?!\d+))(?:[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+))(?:(?:\-|[ex]|\W[ex]|_){1,2}(?<episode>\d{2,3}(?!\d+)))*)\W?(?!\\)
14-11-12 08:33:05.2|Debug|Parser|Episode Parsed. heartgreed - S01E03 
14-11-12 08:33:05.2|Debug|Parser|Language parsed: English
14-11-12 08:33:05.2|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for Heart-Of-Greed S01E03.rmvb
14-11-12 08:33:05.2|Debug|Parser|Quality parsed: SDTV v1
14-11-12 08:33:05.2|Debug|Parser|Release Group parsed: Greed
14-11-12 08:33:05.2|Debug|ImportDecisionMaker|Size: 309480658
14-11-12 08:33:05.2|Debug|VideoFileInfoReader|Getting media info from /volumes/completed/adhoc/Heart Of Greed/Heart-Of-Greed S01E03.rmvb
14-11-12 08:33:05.4|Trace|ConfigService|Unable to find config key 'skipfreespacecheckwhenimporting' defaultValue:'False'
14-11-12 08:33:05.4|Debug|VideoFileInfoReader|Getting media info from /volumes/completed/adhoc/Heart Of Greed/Heart-Of-Greed S01E03.rmvb
14-11-12 08:33:05.4|Debug|SampleService|Runtime is over 90 seconds
14-11-12 08:33:05.4|Trace|ConfigService|Unable to find config key 'downloadclientworkingfolders' defaultValue:'_UNPACK_|_FAILED_'
14-11-12 08:33:05.4|Debug|Parser|Parsing string '? ? ? ?  - Episode 04.rmvb'
14-11-12 08:33:05.4|Trace|Parser|^(?:\[(?<subgroup>.+?)\][-_. ]?)?(?<title>.+?)(?:(?:_|-|\s|\.)+(?<absoluteepisode>(?<!\d+)\d{2,3}(?!\d+)))+(?:_|-|\s|\.)*?(?<hash>\[.{8}\])?(?:$|\.)?
14-11-12 08:33:05.4|Debug|Parser|Episode Parsed. ????episode - 004 
14-11-12 08:33:05.4|Debug|Parser|Language parsed: English
14-11-12 08:33:05.4|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for ? ? ? ?  - Episode 04.rmvb
14-11-12 08:33:05.4|Debug|Parser|Quality parsed: SDTV v1
14-11-12 08:33:05.4|Debug|Parser|Release Group parsed: 
14-11-12 08:33:05.4|Debug|ParsingService|No matching episodes found for: ????episode - 004 SDTV v1
14-11-12 08:33:05.4|Debug|Parser|Parsing string '? ? ? ?  - Episode 05.rmvb'
14-11-12 08:33:05.4|Trace|Parser|^(?:\[(?<subgroup>.+?)\][-_. ]?)?(?<title>.+?)(?:(?:_|-|\s|\.)+(?<absoluteepisode>(?<!\d+)\d{2,3}(?!\d+)))+(?:_|-|\s|\.)*?(?<hash>\[.{8}\])?(?:$|\.)?
14-11-12 08:33:05.4|Debug|Parser|Episode Parsed. ????episode - 005 
14-11-12 08:33:05.4|Debug|Parser|Language parsed: English
14-11-12 08:33:05.4|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for ? ? ? ?  - Episode 05.rmvb
14-11-12 08:33:05.4|Debug|Parser|Quality parsed: SDTV v1
14-11-12 08:33:05.4|Debug|Parser|Release Group parsed: 
14-11-12 08:33:05.4|Debug|ParsingService|No matching episodes found for: ????episode - 005 SDTV v1
14-11-12 08:33:05.4|Debug|Parser|Parsing string '? ? ? ?  - Episode 06.rmvb'
14-11-12 08:33:05.4|Trace|Parser|^(?:\[(?<subgroup>.+?)\][-_. ]?)?(?<title>.+?)(?:(?:_|-|\s|\.)+(?<absoluteepisode>(?<!\d+)\d{2,3}(?!\d+)))+(?:_|-|\s|\.)*?(?<hash>\[.{8}\])?(?:$|\.)?
14-11-12 08:33:05.4|Debug|Parser|Episode Parsed. ????episode - 006 
14-11-12 08:33:05.4|Debug|Parser|Language parsed: English
14-11-12 08:33:05.4|Debug|NzbDrone.Core.Parser.QualityParser|Trying to parse quality for ? ? ? ?  - Episode 06.rmvb
14-11-12 08:33:05.4|Debug|Parser|Quality parsed: SDTV v1
14-11-12 08:33:05.4|Debug|Parser|Release Group parsed: 
14-11-12 08:33:05.4|Debug|ParsingService|No matching episodes found for: ????episode - 006 SDTV v1

The unicode characters might be a problem, but in this instance extra ASCII characters would have caused a similar issue since it wouldn’t have been able to determine the series.

Heart of Greed - Subtitle would have failed for the same reason, unknown series.

The season information doesn’t have to be part of the folder name, but if its not it will fall back to using the complete folder name and trying to find a match, which is why it actually did work when you renamed the folder, parsing still failed, but it was able to determine the series since it went ahead with the scan for files.

Would the subtitle in the file name (溏心风暴 - Episode 01.rmvb) also be why it failed to import?

The episode names in sonarr are listed as episode 1, episode 2, etc, so I was expecting it to be able to ignore the Unicode and find the episode name match?

Thanks

No its the fact that it doesn’t have a season marker in the file, its expecting something like S01E01 or 1x01 to be bale to import it. Part 1 or Part 2 might also work, but its not as common.

Episode 1 is not a standard convention for naming, we see it occasionally, but supporting it without breaking other cases is always a challenge.