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

Include the multiverse ID #6

Open
jakobo opened this issue Sep 5, 2014 · 3 comments
Open

Include the multiverse ID #6

jakobo opened this issue Sep 5, 2014 · 3 comments

Comments

@jakobo
Copy link

jakobo commented Sep 5, 2014

Having the multiverse ID available in the API would be a huge help. This would allow a developer to link to the gatherer page, look up card images from mtgimage, etc.

@SteGriff
Copy link
Owner

SteGriff commented Sep 5, 2014

You're right, and I'll investigate and try to implement in the next round of changes :) Thanks for your interest!

@TheOddler
Copy link

Any update on this? That's pretty much the only thing I'm missing atm from the api.

@SteGriff
Copy link
Owner

Note to self

The file_get_contents result is a redirection from a named search to a page with a multiverse ID. We can do the first fgc with follow_location set to false to get the MVID in the URL and then retreive the actual page. See: http:https://stackoverflow.com/a/12566320

Option 2 is to search the page for "multiverseid=x" but that has to be BEFORE strip_tags is called

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

3 participants