kelesi / mtga-utils

Magic the Gathering: Arena related stuff (Card collection export)
MIT License
53 stars 13 forks source link

Get deck lists #17

Closed pak21 closed 4 years ago

pak21 commented 4 years ago

While you can export your decks one at a time from Arena, that's tedious. Add parsing of all decks at once from the logfile.

This turned out to be only very slightly less trivial than it might have been:

kelesi commented 4 years ago

Sorry, I completely forgot about this PR. I have to check in the following week. It would be great if you could reslove the conflicts with my latest changes, though.

pak21 commented 4 years ago

Conflicts fixed, and test added for a "new format" array as well.

pak21 commented 4 years ago

Made a couple of updates here over the weekend, the important one was to fix for parsing deck lists from the new format log file. The exposing of the internal ID is because my use case needs a stable identifier for decks ;-)