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

UFC events fetch the wrong data #467

Open
SubJunk opened this issue Mar 9, 2021 · 7 comments
Open

UFC events fetch the wrong data #467

SubJunk opened this issue Mar 9, 2021 · 7 comments
Labels
bug Something isn't working

Comments

@SubJunk
Copy link
Member

SubJunk commented Mar 9, 2021

I've noticed this with different files, they pretty much all seem to return UFC 196: McGregor vs Diaz. One of them is UFC.226.PPV.Miocic.vs.Cormier.720p.HDTV

@SubJunk SubJunk added the bug Something isn't working label Mar 9, 2021
@js-kyle
Copy link
Member

js-kyle commented Mar 10, 2021

Is this for the endpoint, using the title query parameter?

@SubJunk
Copy link
Member Author

SubJunk commented Mar 10, 2021

It will be sending OMDb and title, since that's pretty much 99+% of cases. I can provide the full request to the endpoint if you want

@js-kyle
Copy link
Member

js-kyle commented Mar 10, 2021

That would be very helpful

@SubJunk
Copy link
Member Author

SubJunk commented May 5, 2021

I'm looking into this now

@SubJunk
Copy link
Member Author

SubJunk commented May 5, 2021

If I run db.media_metadata.find({"searchMatches": { $in: ["UFC 226"] } }) on the server it returns the correct result but if I run db.media_metadata.find({"searchMatches": { $in: ["UFC 226 PPV Miocic vs Cormier"] } }) it returns UFC 196, same as this bug. The record also has a ton of other searchMatches in it:

image

@SubJunk
Copy link
Member Author

SubJunk commented May 14, 2021

I'm doing some debugging on this. I can only reproduce it locally when I use a copy of the database, but I still don't know how it got to this state.

If I remove UFC 226 PPV Miocic vs Cormier from the searchMatches array and go to http://localhost:3000/api/media/video?title=UFC%20226%20PPV%20Miocic%20vs%20Cormier I just get a failed result MediaNotFoundError: Metadata not found..

@js-kyle I don't have any ideas, do you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants