Sonarr / Sonarr

Smart PVR for newsgroup and bittorrent users.
https://sonarr.tv
GNU General Public License v3.0
10.83k stars 1.42k forks source link

Series with numbers both as integers and word form in title matches incorrectly #4434

Closed ZhunCn closed 3 years ago

ZhunCn commented 3 years ago

Describe the bug When requesting episode 1 of "86: Eighty Six" (TVDB ID 378609), the release [SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F].mkv fails to parse and match with the series, giving an "Unknown Series` error. The releases that only have the number "86" without the numbers spelled out are accepted and matched correctly. Other releases containing both the integer and word form, such as "86 - Eighty Six" or "86 EIGHTY-SIX" fails to match. The show within Sonarr displays as solely "86".

To Reproduce Same as above.

Expected behavior Matches correctly for either titles.

Platform Information (please complete the following information):

Trace Logs Failed Matches:

21-4-10 22:32:37.4|Trace|DownloadDecisionMaker|Processing release 2/138
21-4-10 22:32:37.4|Debug|DownloadDecisionMaker|Processing release '[ok] 86 EIGHTY-SIX - 01 [Multi-Subs + VOSTFR] [1080p].mkv' from 'Nyaa'
21-4-10 22:32:37.4|Debug|Parser|Parsing string '[ok] 86 EIGHTY-SIX - 01 [Multi-Subs + VOSTFR] [1080p].mkv'
21-4-10 22:32:37.4|Trace|Parser|^\[(?<subgroup>.+?)\][-_. ]?(?<title>.+?)(?:(?<!\b[0]\d+))(?:[. ]-[. ](?<absoluteepisode>\d{2,3}(\.\d{1,2})?(?!\d+|[-])))+(?:[-_. ]+(?<special>special|ova|ovd))?.*?(?<hash>\[\w{8}\])?(?:$|\.mkv)
21-4-10 22:32:37.4|Debug|Parser|Episode Parsed. 86 EIGHTY-SIX - 001 
21-4-10 22:32:37.4|Debug|Parser|Language parsed: English
21-4-10 22:32:37.4|Debug|QualityParser|Trying to parse quality for [ok] 86 EIGHTY-SIX - 01 [Multi-Subs + VOSTFR] [1080p].mkv
21-4-10 22:32:37.4|Debug|Parser|Quality parsed: HDTV-1080p v1
21-4-10 22:32:37.4|Debug|Parser|Release Group parsed: ok
21-4-10 22:32:37.4|Trace|Owin|SQLite error (5): database is locked in "PRAGMA cache_size=-10000"
21-4-10 22:32:37.4|Trace|Owin|

21-4-10 22:32:37.4|Trace|Owin|SQLite error (5): database is locked in "PRAGMA cache_size=-10000"
21-4-10 22:32:37.4|Trace|Owin|

21-4-10 22:32:37.4|Debug|ParsingService|No matching series 86 EIGHTY-SIX
21-4-10 22:32:37.4|Debug|DownloadDecisionMaker|Release rejected for the following reasons: [Permanent] Unknown Series
21-4-10 22:32:37.4|Trace|DownloadDecisionMaker|Processing release 3/138
21-4-10 22:32:37.4|Debug|DownloadDecisionMaker|Processing release '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F].mkv' from 'Nyaa'
21-4-10 22:32:37.4|Debug|Parser|Parsing string '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F].mkv'
21-4-10 22:32:37.4|Trace|Parser|^\[(?<subgroup>.+?)\][-_. ]?(?<title>.+?)(?:(?<!\b[0]\d+))(?:[. ]-[. ](?<absoluteepisode>\d{2,3}(\.\d{1,2})?(?!\d+|[-])))+(?:[-_. ]+(?<special>special|ova|ovd))?.*?(?<hash>\[\w{8}\])?(?:$|\.mkv)
21-4-10 22:32:37.4|Debug|Parser|Episode Parsed. 86 - Eighty Six - 001 
21-4-10 22:32:37.4|Debug|Parser|Language parsed: English
21-4-10 22:32:37.4|Debug|QualityParser|Trying to parse quality for [SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F].mkv
21-4-10 22:32:37.4|Debug|Parser|Quality parsed: HDTV-1080p v1
21-4-10 22:32:37.4|Debug|Parser|Release Group parsed: SubsPlease
21-4-10 22:32:37.4|Debug|Parser|Release Hash parsed: 1B13598F
21-4-10 22:32:37.4|Debug|ParsingService|No matching series 86 - Eighty Six
21-4-10 22:32:37.4|Debug|DownloadDecisionMaker|Release rejected for the following reasons: [Permanent] Unknown Series

Accepted Match:

21-4-10 22:32:37.5|Trace|DownloadDecisionMaker|Processing release 9/138
21-4-10 22:32:37.5|Debug|DownloadDecisionMaker|Processing release '[KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv' from 'Nyaa'
21-4-10 22:32:37.5|Debug|Parser|Parsing string '[KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv'
21-4-10 22:32:37.5|Trace|Parser|^\[(?<subgroup>.+?)\][-_. ]?(?<title>[^-]+?)(?:(?<![-_. ]|\b[0]\d+) - )(?:[-_. ]?(?<absoluteepisode>\d{2,3}(\.\d{1,2})?(?!\d+)))+(?:[-_. ]+(?<special>special|ova|ovd))?.*?(?<hash>\[\w{8}\])?(?:$|\.mkv)
21-4-10 22:32:37.5|Debug|Parser|Episode Parsed. 86 - 001 
21-4-10 22:32:37.5|Debug|Parser|Language parsed: English
21-4-10 22:32:37.5|Debug|QualityParser|Trying to parse quality for [KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv
21-4-10 22:32:37.5|Debug|Parser|Quality parsed: HDTV-720p v1
21-4-10 22:32:37.5|Debug|Parser|Release Group parsed: KRP
21-4-10 22:32:37.5|Debug|ParsingService|Using absolute episode number 1 for: 86 - TVDB: 1x01
21-4-10 22:32:37.5|Trace|PreferredWordService|Calculating preferred word score for '[KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv'
21-4-10 22:32:37.5|Trace|PreferredWordService|Calculated preferred word score for '[KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv': 0
21-4-10 22:32:37.5|Debug|AcceptableSizeSpecification|Beginning size check for: [KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv
21-4-10 22:32:37.5|Debug|AcceptableSizeSpecification|Item: [KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv, meets size constraints
21-4-10 22:32:37.5|Debug|AlreadyImportedSpecification|Performing already imported check on report
21-4-10 22:32:37.5|Debug|CutoffSpecification|Comparing file quality and language with report. Existing file is HDTV-1080p v1 - English
21-4-10 22:32:37.5|Trace|PreferredWordService|Calculating preferred word score for '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F]'
21-4-10 22:32:37.5|Trace|PreferredWordService|Calculated preferred word score for '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F]': 2
21-4-10 22:32:37.5|Trace|PreferredWordService|Calculating preferred word score for '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F]'
21-4-10 22:32:37.5|Trace|PreferredWordService|Calculated preferred word score for '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F]': 2
21-4-10 22:32:37.5|Trace|PreferredWordService|Calculating preferred word score for 'Season 1/86 - S01E01 - Undertaker HDTV-1080p [SubsPlease].mkv'
21-4-10 22:32:37.5|Trace|PreferredWordService|Calculated preferred word score for 'Season 1/86 - S01E01 - Undertaker HDTV-1080p [SubsPlease].mkv': 2
21-4-10 22:32:37.5|Debug|LanguageSpecification|Checking if report meets language requirements. English
21-4-10 22:32:37.5|Trace|ConfigService|Using default config value for 'maximumsize' defaultValue:'0'
21-4-10 22:32:37.5|Debug|MaximumSizeSpecification|Maximum size is not set.
21-4-10 22:32:37.5|Debug|MinimumAgeSpecification|Not checking minimum age requirement for non-usenet report
21-4-10 22:32:37.5|Debug|QualityAllowedByProfileSpecification|Checking if report meets quality requirements. HDTV-720p v1
21-4-10 22:32:37.5|Debug|ReleaseRestrictionsSpecification|Checking if release meets restrictions: [KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv
21-4-10 22:32:37.5|Debug|ReleaseRestrictionsSpecification|[[KRP] 86 - 01 (ABEMA 1280x720 x264 AAC).mkv] contains these ignored terms: KRP
21-4-10 22:32:37.5|Debug|RetentionSpecification|Not checking retention requirement for non-usenet report
21-4-10 22:32:37.5|Debug|UpgradeAllowedSpecification|Comparing file quality and language with report. Existing file is HDTV-1080p v1 - English
21-4-10 22:32:37.5|Debug|UpgradeDiskSpecification|Comparing file quality and language with report. Existing file is HDTV-1080p v1 - English
21-4-10 22:32:37.6|Trace|PreferredWordService|Calculating preferred word score for '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F]'
21-4-10 22:32:37.6|Trace|PreferredWordService|Calculated preferred word score for '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F]': 2
21-4-10 22:32:37.6|Trace|PreferredWordService|Calculating preferred word score for '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F]'
21-4-10 22:32:37.6|Trace|PreferredWordService|Calculated preferred word score for '[SubsPlease] 86 - Eighty Six - 01 (1080p) [1B13598F]': 2
21-4-10 22:32:37.6|Trace|PreferredWordService|Calculating preferred word score for 'Season 1/86 - S01E01 - Undertaker HDTV-1080p [SubsPlease].mkv'
21-4-10 22:32:37.6|Trace|PreferredWordService|Calculated preferred word score for 'Season 1/86 - S01E01 - Undertaker HDTV-1080p [SubsPlease].mkv': 2
21-4-10 22:32:37.6|Trace|ConfigService|Using default config value for 'downloadpropersandrepacks' defaultValue:'PreferAndUpgrade'
21-4-10 22:32:37.6|Debug|UpgradableSpecification|Existing item has better quality, skipping
21-4-10 22:32:37.6|Debug|SceneMappingSpecification|No applicable scene mapping, skipping.
21-4-10 22:32:37.6|Debug|SeriesSpecification|Checking if series matches searched series
21-4-10 22:32:37.6|Debug|DelaySpecification|Ignoring delay for user invoked search
21-4-10 22:32:37.6|Debug|HistorySpecification|Skipping history check during search
21-4-10 22:32:37.6|Debug|MonitoredEpisodeSpecification|Skipping monitored check during search
21-4-10 22:32:37.6|Debug|DownloadDecisionMaker|Release rejected for the following reasons: [Permanent] Contains these ignored terms: KRP, [Permanent] Existing file on disk is of equal or higher preference: HDTV-1080p v1 - English
markus101 commented 3 years ago

This is not a bug. Anime so it will need an alias on thexem.de.

ZhunCn commented 3 years ago

This is not a bug. Anime so it will need an alias on thexem.de.

The show on xem has the title "86: Eighty Six", with alias "86".