cderickson / MTGO-Tracker

MTGO-Tracker is an analytics tool used to process raw data for Magic: the Gathering Online. Players can import and parse log files created during online play and store resulting information into a local database for self-analysis.
https://cderickson.io/mtgo-tracker/
16 stars 9 forks source link

Multifaced Cards - automatically update? #31

Open gfrt0 opened 4 days ago

gfrt0 commented 4 days ago

Hi, first of all thanks for the great tool. I am still learning how to use it, so apologies if any of this is trivial.

Inspecting the MULTIFACED_CARDS.txt file shows it (1) is outdated and (2) contains Arena-only cards.

For (1), would it not be better to have Update Auxiliary Files pull directly from Scryfall instead of Github?

For both (1) and (2), the following calls return the multifaced cards available on MTGO as of this issue:

* SPLIT CARDS
http://api.scryfall.com/cards/search?q=is:split+in:mtgo&format=csv&page=1

* TRANSFORM CARDS
http://api.scryfall.com/cards/search?q=is:transform+in:mtgo&format=csv&page=1
http://api.scryfall.com/cards/search?q=is:transform+in:mtgo&format=csv&page=2

* DFCs
http://api.scryfall.com/cards/search?q=is:dfc+in:mtgo&format=csv&page=1
http://api.scryfall.com/cards/search?q=is:dfc+in:mtgo&format=csv&page=2
http://api.scryfall.com/cards/search?q=is:dfc+in:mtgo&format=csv&page=3

* MDFCs
http://api.scryfall.com/cards/search?q=is:mdfc+in:mtgo&format=csv&page=1

* ADVENTURE CARDS
http://api.scryfall.com/cards/search?q=is:adventure+in:mtgo&format=csv&page=1

(I am outputting to CSV because it was easier for me to copy-paste to .txt).

cderickson commented 4 days ago

Hey, thanks for trying out the tool, I hope you find it useful!

I have a script that generates MULTIFACED_CARDS.txt using the Scryfall API. Having the tool pull directly from Scryfall instead of relying on me to update it probably makes more sense, I'll put in on my backlog of changes to make. I think when I decided to do it this way, I wasn't expecting flip/split cards to be released so regularly.

gfrt0 commented 3 days ago

Yeah I imagined that was the pipeline, the suggestion is intended to free you up of having to update it every new release (i.e. every 2 weeks, nowadays).