Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue matching "X-Men '97" #770

Open
soredake opened this issue Apr 2, 2024 · 1 comment
Open

Issue matching "X-Men '97" #770

soredake opened this issue Apr 2, 2024 · 1 comment

Comments

@soredake
Copy link

soredake commented Apr 2, 2024

❯ guessit -i '.\X-Men ''97\Season 1\X-Men ''97 - S01E01 - To Me, My X-Men WEBDL-2160p.mkv'
For: .\X-Men '97\Season 1\X-Men '97 - S01E01 - To Me, My X-Men WEBDL-2160p.mkv
GuessIt found: {
    "title": [
        "X",
        "Men '97"
    ],
    "season": 1,
    "episode_title": "X-Men '97",
    "episode": 1,
    "source": "Web",
    "screen_size": "2160p",
    "container": "mkv",
    "mimetype": "video/x-matroska",
    "type": "episode",
    "input_string": ".\\X-Men '97\\Season 1\\X-Men '97 - S01E01 - To Me, My X-Men WEBDL-2160p.mkv"
}

iamkroot/trakt-scrobbler#286

@offbyone
Copy link

offbyone commented Apr 25, 2024

This happens with X-Men too:

$ guessit -i 'X-Men.S05.DVDRip.x264-BTN/S05E07 - Old Soldiers.mkv'
For: X-Men.S05.DVDRip.x264-BTN/S05E07 - Old Soldiers.mkv
GuessIt found: {
    "title": [
        "X",
        "Men"
    ],
    "season": 5,
    "source": "DVD",
    "other": "Rip",
    "video_codec": "H.264",
    "release_group": "BTN",
    "episode": 7,
    "container": "mkv",
    "mimetype": "video/x-matroska",
    "type": "episode",
    "input_string": "X-Men.S05.DVDRip.x264-BTN/S05E07 - Old Soldiers.mkv"
}

That title is just wrong; it should be a string, right?

Full verbose output
$ guessit -v -i 'X-Men.S05.DVDRip.x264-BTN/S05E07 - Old Soldiers.mkv'
For: X-Men.S05.DVDRip.x264-BTN/S05E07 - Old Soldiers.mkv
Pattern has 2 match(es). (<FunctionalPattern:(<function path.<locals>.mark_path at 0x10551b600>,)>)
Marker found. (<X-Men.S05.DVDRip.x264-BTN:(0, 25)+name=path>)
Marker found. (<S05E07 - Old Soldiers.mkv:(26, 51)+name=path>)
Pattern has 6 match(es). (<Chain:[<RePattern:['(?P<seasonMarker>s)(?P<season>\\d+)[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?(?P<episodeMarker>xe|ex|ep|e|x|d)[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?(?P<episode>\\d+)']>({1,None}), <RePattern:['(?P<episodeSeparator>(?:xe)|(?:ex)|(?:ep)|(?:e)|(?:x)|(?:d)|(?:\\+)|(?:\\&)|(?:and)|(?:et)|(?:\\ )|(?:\\[)|(?:\\])|(?:\\()|(?:\\))|(?:\\{)|(?:\\})|(?:\\+)|(?:\\*)|(?:\\|)|(?:=)|(?:_)|(?:\\#)|(?:\\.)|(?:,)|(?:;)|(?::)|(?:\\-)|(?:\\~)|(?:to)|(?:a))(?P<episode>\\d+)']>({0,None})]>)
Match found. (<S05E07:(26, 32)+private+tags=['SxxExx']>)
Match found. (<S:(26, 27)+private+name=seasonMarker+tags=['SxxExx']+initiator=S05E07>)
Match found. (<5:(27, 29)+name=season+tags=['SxxExx']+initiator=S05E07>)
Match found. (<E:(29, 30)+private+name=episodeMarker+tags=['SxxExx']+initiator=S05E07>)
Match found. (<7:(30, 32)+name=episode+tags=['SxxExx']+initiator=S05E07>)
Match found. (<S05E07:(26, 32)+private+tags=['SxxExx']>)
Pattern has 4 match(es). (<Chain:[<RePattern:['(?P<seasonMarker>s)(?P<season>\\d+)']>({1,1}), <RePattern:['(?P<other>Extras)']>({0,1}), <RePattern:['(?P<seasonSeparator>(?:s)|(?:\\+)|(?:\\&)|(?:and)|(?:et)|(?:\\ )|(?:\\[)|(?:\\])|(?:\\()|(?:\\))|(?:\\{)|(?:\\})|(?:\\+)|(?:\\*)|(?:\\|)|(?:=)|(?:_)|(?:\\#)|(?:\\.)|(?:,)|(?:;)|(?::)|(?:\\-)|(?:\\~)|(?:to)|(?:a))(?P<season>\\d+)']>({0,None})]>)
Match found. (<S05:(6, 9)+private+tags=['SxxExx']>)
Match found. (<S:(6, 7)+private+name=seasonMarker+tags=['SxxExx']+initiator=S05>)
Match found. (<5:(7, 9)+name=season+tags=['SxxExx']+initiator=S05>)
Match found. (<S05:(6, 9)+private+tags=['SxxExx']>)
Pattern is disabled. (<RePattern:['(?P<episodeMarker>episode|episodes|eps|ep|episodio|episodios|capitulo|capitulos)[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?(?P<episode>(?:\\d{1,4}|(?=[MCDLXVI]+)M{0,4}(?:CM|CD|D?C{0,3})(?:XC|XL|L?X{0,3})(?:IX|IV|V?I{0,3})|(?:(?=\\w+)zero|one|two|three|four|five|six|seven|eight|nine|ten|eleven|twelve|thirteen|fourteen|fifteen|sixteen|seventeen|eighteen|nineteen|twenty|zéro|un|deux|trois|quatre|cinq|six|sept|huit|neuf|dix|onze|douze|treize|quatorze|quinze|seize|dix[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]sept|dix[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]huit|dix[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]neuf|vingt|zero|une|deux|trois|quatre|cinq|six|sept|huit|neuf|dix|onze|douze|treize|quatorze|quinze|seize|dixsept|dixhuit|dixneuf|vingt)))(?:v(?P<version>\\d+))?(?:[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?(?:of|sur)[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?(?P<count>\\d+))?']>)
Pattern is disabled. (<Chain:[<RePattern:['(?P<episode>\\d)']>({1,1}), <RePattern:['v(?P<version>\\d+)']>({0,1}), <RePattern:['(?P<episodeSeparator>[x-])(?P<episode>\\d{1,2})']>({0,None})]>)
Pattern has 1 match(es). (<RePattern:['\\.(?:3g2|3gp|3gp2|asf|avi|divx|flv|iso|m4v|mk2|mk3d|mka|mkv|mov|mp4|mp4a|mpeg|mpg|ogg|ogm|ogv|qt|ra|ram|rm|ts|m2ts|vob|wav|webm|wma|wmv)$']>)
Match found. (<mkv:(47, 51)+name=container+tags=['extension', 'extension', 'video']>)
Pattern has 1 match(es). (<StringPattern:('3g2', '3gp', '3gp2', 'asf', 'avi', 'divx', 'flv', 'iso', 'm4v', 'mk2', 'mk3d', 'mka', 'mkv', 'mov', 'mp4', 'mp4a', 'mpeg', 'mpg', 'ogg', 'ogm', 'ogv', 'qt', 'ra', 'ram', 'rm', 'ts', 'm2ts', 'vob', 'wav', 'webm', 'wma', 'wmv')>)
Match found. (<mkv:(48, 51)+name=container+tags=['video']>)
Pattern has 3 match(es). (<RePattern:['(DVD)(?:[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?(?P<other>Rip))?']>)
Match found. (<DVD:(10, 16)+private+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>)
Match found. (<DVD:(10, 13)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>)
Match found. (<Rip:(13, 16)+name=other+tags=['video-codec-prefix', 'streaming_service.suffix']+initiator=DVD>)
Pattern has 2 match(es). (<RePattern:['(VIDEO[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?TS)', '(DVD[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?R(?:$|(?!E)))', '(DVD[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?9)', '(DVD[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?5)']>)
Match found. (<DVD:(10, 14)+private+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>)
Match found. (<DVD:(10, 14)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>)
Pattern has 1 match(es). (<RePattern:['[hx][\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?264', '(MPEG[\\ \\[\\]\\(\\)\\{\\}\\+\\*\\|=\\-_\\~\\#\\.,;:]?4)?AVC(?:HD)?']>)
Match found. (<H.264:(17, 21)+name=video_codec+tags=['source-suffix', 'streaming_service.suffix']>)
Pattern is disabled. (<FunctionalPattern:(<function build_expected_function.<locals>.expected at 0x1056cd6c0>,)>)
Pattern has 1 match(es). (<StringPattern:('iP',)>)
Match found. (<BBC iPlayer:(14, 16)+name=streaming_service+tags=['source-prefix']>)
Pattern has 2 match(es). (<RePattern:['x(\\d+)']>)
Match found. (<x264:(17, 21)+private+name=bonus>)
Match found. (<264:(18, 21)+name=bonus+initiator=x264>)
2 independent rule(s) at priority 2048.
Checking rule condition: <ConflictSolver>
Conflicting match <BBC iPlayer:(14, 16)+name=streaming_service+tags=['source-prefix']> will be removed in favor of match <Rip:(13, 16)+name=other+tags=['video-codec-prefix', 'streaming_service.suffix']+initiator=DVD>
Conflicting match <mkv:(48, 51)+name=container+tags=['video']> will be removed in favor of match <mkv:(47, 51)+name=container+tags=['extension', 'extension', 'video']>
Conflicting match <DVD:(10, 14)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']> will be removed in favor of match <DVD:(10, 13)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>
Conflicting match <264:(18, 21)+name=bonus+initiator=x264> will be removed in favor of match <H.264:(17, 21)+name=video_codec+tags=['source-suffix', 'streaming_service.suffix']>
Rule was triggered: IdentitySet([<BBC iPlayer:(14, 16)+name=streaming_service+tags=['source-prefix']>, <264:(18, 21)+name=bonus+initiator=x264>, <DVD:(10, 14)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>, <mkv:(48, 51)+name=container+tags=['video']>])
Running rule consequence: <ConflictSolver> IdentitySet([<BBC iPlayer:(14, 16)+name=streaming_service+tags=['source-prefix']>, <264:(18, 21)+name=bonus+initiator=x264>, <DVD:(10, 14)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>, <mkv:(48, 51)+name=container+tags=['video']>])
Checking rule condition: <EnlargeGroupMatches>
6 independent rule(s) at priority 128.
Checking rule condition: <WeakConflictSolver>
Checking rule condition: <SeePatternRange>
Checking rule condition: <EpisodeNumberSeparatorRange>
Checking rule condition: <SeasonSeparatorRange>
Rule was triggered: ([<5:(27, 29)+name=season+tags=['SxxExx']+initiator=S05E07>], [<5:(27, 29)+name=season+tags=['SxxExx']+initiator=S05E07>])
Running rule consequence: <SeasonSeparatorRange> ([<5:(27, 29)+name=season+tags=['SxxExx']+initiator=S05E07>], [<5:(27, 29)+name=season+tags=['SxxExx']+initiator=S05E07>])
Checking rule condition: <AudioChannelsValidatorRule>
Checking rule condition: <ValidateStreamingService>
19 independent rule(s) at priority 64.
Checking rule condition: <RemoveInvalidSeason>
Checking rule condition: <RemoveInvalidEpisode>
Checking rule condition: <RemoveWeakIfMovie>
Checking rule condition: <RemoveWeakIfSxxExx>
Checking rule condition: <RemoveWeakDuplicate>
Checking rule condition: <EpisodeDetailValidator>
Checking rule condition: <CountValidator>
Checking rule condition: <ValidateSourcePrefixSuffix>
Rule was triggered: [<DVD:(10, 14)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>, <DVD:(10, 14)+private+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>]
Running rule consequence: <ValidateSourcePrefixSuffix> [<DVD:(10, 14)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>, <DVD:(10, 14)+private+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>]
Checking rule condition: <ValidateVideoCodec>
Checking rule condition: <AudioValidatorRule>
Checking rule condition: <ValidateWebsitePrefix>
Checking rule condition: <KeepMarkedYearInFilepart>
Checking rule condition: <RemoveConflictsWithEpisodeTitle>
Checking rule condition: <ValidateHasNeighbor>
Checking rule condition: <ValidateHasNeighborAfter>
Checking rule condition: <ValidateHasNeighborBefore>
Checking rule condition: <ValidateScreenerRule>
Checking rule condition: <ValidateMuxRule>
Checking rule condition: <ValidateReal>
7 independent rule(s) at priority 64.
Checking rule condition: <RemoveDetachedEpisodeNumber>
Checking rule condition: <VersionValidator>
Checking rule condition: <ValidateWeakSource>
Checking rule condition: <DtsHDRule>
Checking rule condition: <DtsRule>
Checking rule condition: <AacRule>
Checking rule condition: <DolbyDigitalRule>
6 independent rule(s) at priority 32.
Checking rule condition: <RemoveInvalidLanguages>
Checking rule condition: <RemoveUndeterminedLanguages>
Checking rule condition: <RenameAnotherToOther>
Checking rule condition: <ValidateHardcodedSubs>
Checking rule condition: <ValidateStreamingServiceNeighbor>
Checking rule condition: <ValidateAtEnd>
1 independent rule(s) at priority 16.
Checking rule condition: <RemoveWeak>
16 independent rule(s) at priority 0.
Checking rule condition: <RenameToAbsoluteEpisode>
Rule was triggered: ([], [])
Running rule consequence: <RenameToAbsoluteEpisode> ([], [])
Checking rule condition: <RenameToDiscMatch>
Checking rule condition: <VideoProfileRule>
Checking rule condition: <HqConflictRule>
Checking rule condition: <PostProcessScreenSize>
Checking rule condition: <ScreenSizeOnlyOne>
Checking rule condition: <ResolveScreenSizeConflicts>
Checking rule condition: <PreferTitleOverWebsite>
Checking rule condition: <Filepart3EpisodeTitle>
Checking rule condition: <Filepart2EpisodeTitle>
Rule was triggered: <X:(0, 1)+tags=['filepart-title']>
Running rule consequence: <Filepart2EpisodeTitle> <X:(0, 1)+tags=['filepart-title']>
Checking rule condition: <SubtitleExtensionRule>
Checking rule condition: <SubtitlePrefixLanguageRule>
Rule is disabled: <RemoveLanguage>
Checking rule condition: <DashSeparatedReleaseGroup>
Rule was triggered: ([], [<BTN:(21, 25)+name=release_group>])
Running rule consequence: <DashSeparatedReleaseGroup> ([], [<BTN:(21, 25)+name=release_group>])
Checking rule condition: <BitRateTypeRule>
Checking rule condition: <FilmTitleRule>
2 independent rule(s) at priority 0.
Checking rule condition: <UltraHdBlurayRule>
Checking rule condition: <SubtitleSuffixLanguageRule>
1 independent rule(s) at priority 0.
Checking rule condition: <TitleFromPosition>
Rule was triggered: ([<Men:(2, 6)+name=title+tags=['title']>], [])
Running rule consequence: <TitleFromPosition> ([<Men:(2, 6)+name=title+tags=['title']>], [])
5 independent rule(s) at priority 0.
Checking rule condition: <EpisodeSingleDigitValidator>
Checking rule condition: <PreferTitleWithYear>
Checking rule condition: <TitleToEpisodeTitle>
Checking rule condition: <SceneReleaseGroup>
Checking rule condition: <BonusTitleRule>
2 independent rule(s) at priority 0.
Checking rule condition: <EpisodeTitleFromPosition>
Checking rule condition: <AnimeReleaseGroup>
1 independent rule(s) at priority 0.
Checking rule condition: <AlternativeTitleReplace>
9 independent rule(s) at priority -2048.
Checking rule condition: <PrivateRemover>
Rule was triggered: [<S05E07:(26, 32)+private+tags=['SxxExx']>, <S:(26, 27)+private+name=seasonMarker+tags=['SxxExx']+initiator=S05E07>, <E:(29, 30)+private+name=episodeMarker+tags=['SxxExx']+initiator=S05E07>, <S05E07:(26, 32)+private+tags=['SxxExx']>, <S05:(6, 9)+private+tags=['SxxExx']>, <S:(6, 7)+private+name=seasonMarker+tags=['SxxExx']+initiator=S05>, <S05:(6, 9)+private+tags=['SxxExx']>, <DVD:(10, 16)+private+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>, <x264:(17, 21)+private+name=bonus>]
Running rule consequence: <PrivateRemover> [<S05E07:(26, 32)+private+tags=['SxxExx']>, <S:(26, 27)+private+name=seasonMarker+tags=['SxxExx']+initiator=S05E07>, <E:(29, 30)+private+name=episodeMarker+tags=['SxxExx']+initiator=S05E07>, <S05E07:(26, 32)+private+tags=['SxxExx']>, <S05:(6, 9)+private+tags=['SxxExx']>, <S:(6, 7)+private+name=seasonMarker+tags=['SxxExx']+initiator=S05>, <S05:(6, 9)+private+tags=['SxxExx']>, <DVD:(10, 16)+private+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>, <x264:(17, 21)+private+name=bonus>]
Checking rule condition: <ProperCountRule>
Checking rule condition: <EquivalentHoles>
Checking rule condition: <RemoveLessSpecificSeasonEpisode>
Checking rule condition: <RemoveAmbiguous>
Checking rule condition: <SeasonYear>
Checking rule condition: <YearSeason>
Checking rule condition: <Processors>
Checking rule condition: <StripSeparators>
Rule was triggered: [<7:(30, 32)+name=episode+tags=['SxxExx']+initiator=S05E07>, <5:(7, 9)+name=season+tags=['SxxExx']+initiator=S05>, <mkv:(47, 51)+name=container+tags=['extension', 'extension', 'video']>, <DVD:(10, 13)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>, <Rip:(13, 16)+name=other+tags=['video-codec-prefix', 'streaming_service.suffix']+initiator=DVD>, <H.264:(17, 21)+name=video_codec+tags=['source-suffix', 'streaming_service.suffix']>, <5:(27, 29)+name=season+tags=['SxxExx']+initiator=S05E07>, <X:(0, 1)+name=title+tags=['filepart-title']>, <BTN:(21, 25)+name=release_group>, <Men:(2, 6)+name=title+tags=['title']>]
Running rule consequence: <StripSeparators> [<7:(30, 32)+name=episode+tags=['SxxExx']+initiator=S05E07>, <5:(7, 9)+name=season+tags=['SxxExx']+initiator=S05>, <mkv:(47, 51)+name=container+tags=['extension', 'extension', 'video']>, <DVD:(10, 13)+name=source+tags=['video-codec-prefix', 'streaming_service.suffix']>, <Rip:(13, 16)+name=other+tags=['video-codec-prefix', 'streaming_service.suffix']+initiator=DVD>, <H.264:(17, 21)+name=video_codec+tags=['source-suffix', 'streaming_service.suffix']>, <5:(27, 29)+name=season+tags=['SxxExx']+initiator=S05E07>, <X:(0, 1)+name=title+tags=['filepart-title']>, <BTN:(21, 25)+name=release_group>, <Men:(2, 6)+name=title+tags=['title']>]
2 independent rule(s) at priority -2048.
Checking rule condition: <Mimetype>
Rule was triggered: video/x-matroska
Running rule consequence: <Mimetype> video/x-matroska
Checking rule condition: <TypeProcessor>
Rule was triggered: episode
Running rule consequence: <TypeProcessor> episode
1 independent rule(s) at priority -2048.
Checking rule condition: <RenameEpisodeTitleWhenMovieType>
GuessIt found: {
    "title": [
        "X",
        "Men"
    ],
    "season": 5,
    "source": "DVD",
    "other": "Rip",
    "video_codec": "H.264",
    "release_group": "BTN",
    "episode": 7,
    "container": "mkv",
    "mimetype": "video/x-matroska",
    "type": "episode",
    "input_string": "X-Men.S05.DVDRip.x264-BTN/S05E07 - Old Soldiers.mkv"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants