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

[Feature] Handle UFC Fights for Title Matching #7

Open
dreulavelle opened this issue Jul 19, 2024 · 2 comments
Open

[Feature] Handle UFC Fights for Title Matching #7

dreulavelle opened this issue Jul 19, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@dreulavelle
Copy link
Owner

Examples:

UFC.241.PPV.Cormier.vs.Miocic.2.HDTV.x264-PUNCH[TGx]
UFC.251.PPV.Usman.vs.Masvidal.HDTV.x264-PUNCH[TGx]
UFC.236.PPV.Holloway.Vs.Poirier.2.HDTV.x264-PUNCH[TGx]
UFC.235.PPV.Jones.Vs.Smith.HDTV.x264-PUNCH[TGx]
UFC.244.PPV.Masvidal.vs.Diaz.HDTV.x264-PUNCH[TGx]
UFC.245.PPV.Usman.vs.Covington.WEB.x264-PUNCH[TGx]
UFC.on.ESPN.12.WEB-DL.H264.Fight-BB
UFC.246.PPV.McGregor.vs.Cerrone.HDTV.x264-PUNCH[TGx]
UFC.239.PPV.Jones.Vs.Santos.HDTV.x264-PUNCH[TGx]
UFC.Fight.Night.158.Cowboy.vs.Gaethje.WEB.x264-PUNCH[TGx]
UFC.250.PPV.720p.HDTV.x264-VERUM[TGx]
UFC.238.PPV.Cejudo.vs.Moraes.WEB.x264-PUNCH[TGx]
UFC.247.PPV.Jones.vs.Reyes.HDTV.x264-PUNCH[TGx]
@dreulavelle dreulavelle self-assigned this Jul 19, 2024
@dreulavelle dreulavelle added the enhancement New feature or request label Jul 19, 2024
@mhdzumair
Copy link
Contributor

you could use below as im using for WWE and UFC from TGX.

    name_parser_patterns = [
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Date>\d{{4}}\.\d{{2}}\.\d{{2}})[.\s](?P<Resolution>\d{{3,4}}[pi])[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Date>\d{{4}}\.\d{{2}}\.\d{{2}})[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Date>\d{{2}}\.\d{{2}}\.\d{{4}})[.\s](?P<Resolution>\d{{3,4}}[pi])[.\s](?P<Language>\w+)",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Date>\d{{2}}\.\d{{2}}\.\d{{4}})[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Date>\d{{4}}-\d{{2}}-\d{{2}})[.\s](?P<Resolution>\d{{3,4}}[pi])[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Date>\d{{4}}-\d{{2}}-\d{{2}})[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Year>\d{{4}})[.\s](?P<Resolution>\d{{3,4}}[pi])[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Year>\d{{4}})[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](?P<Resolution>\d{{3,4}}[pi])[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s](HDTV|WEB|WEB-DL|Sportnet360)[.\s]",
        r"{event}[.\s](?P<Event>[\w\s.]+)[.\s]",
    ]

@dreulavelle
Copy link
Owner Author

I'll find some WWE examples for this as well

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

No branches or pull requests

2 participants