{"action":"created","issue":{"url":"https://api.github.com/repos/magefree/mage/issues/1860","repository_url":"https://api.github.com/repos/magefree/mage","labels_url":"https://api.github.com/repos/magefree/mage/issues/1860/labels{/name}","comments_url":"https://api.github.com/repos/magefree/mage/issues/1860/comments","events_url":"https://api.github.com/repos/magefree/mage/issues/1860/events","html_url":"https://github.com/magefree/mage/pull/1860","id":148096854,"number":1860,"title":"Fix set codes","user":{"login":"fenhl","id":641386,"avatar_url":"https://avatars.githubusercontent.com/u/641386?v=3","gravatar_id":"","url":"https://api.github.com/users/fenhl","html_url":"https://github.com/fenhl","followers_url":"https://api.github.com/users/fenhl/followers","following_url":"https://api.github.com/users/fenhl/following{/other_user}","gists_url":"https://api.github.com/users/fenhl/gists{/gist_id}","starred_url":"https://api.github.com/users/fenhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenhl/subscriptions","organizations_url":"https://api.github.com/users/fenhl/orgs","repos_url":"https://api.github.com/users/fenhl/repos","events_url":"https://api.github.com/users/fenhl/events{/privacy}","received_events_url":"https://api.github.com/users/fenhl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-04-13T15:23:50Z","updated_at":"2016-04-13T18:31:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/magefree/mage/pulls/1860","html_url":"https://github.com/magefree/mage/pull/1860","diff_url":"https://github.com/magefree/mage/pull/1860.diff","patch_url":"https://github.com/magefree/mage/pull/1860.patch"},"body":"This changes all set codes to be three letters, and cleans up the mtg-sets-data.txt, sorting alphabetically by set code and removing duplicates. All card classes from affected sets have been changed, so there may be some work left to do for backwards compatibility.\r\n\r\n*   For sets with official set codes, these are used now, the only exception being *Duel Decks: Anthology, Elves vs. Goblins*, whose official set code (EVG) is the same as the original *Duel Decks: Elves vs. Goblins*, so I used the set code for the entirety of *Duel Decks: Anthology* (DD3) instead.\r\n*   For other sets, set codes are taken from [MTG JSON](http://mtgjson.com/sets.html), [this CCGHQ thread](http://www.slightlymagic.net/forum/viewtopic.php?f=2&t=581&start=15), [magiccards.info](http://magiccards.info/sitemap.html), left as is, or newly invented."},"comment":{"url":"https://api.github.com/repos/magefree/mage/issues/comments/209584596","html_url":"https://github.com/magefree/mage/pull/1860#issuecomment-209584596","issue_url":"https://api.github.com/repos/magefree/mage/issues/1860","id":209584596,"user":{"login":"fenhl","id":641386,"avatar_url":"https://avatars.githubusercontent.com/u/641386?v=3","gravatar_id":"","url":"https://api.github.com/users/fenhl","html_url":"https://github.com/fenhl","followers_url":"https://api.github.com/users/fenhl/followers","following_url":"https://api.github.com/users/fenhl/following{/other_user}","gists_url":"https://api.github.com/users/fenhl/gists{/gist_id}","starred_url":"https://api.github.com/users/fenhl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fenhl/subscriptions","organizations_url":"https://api.github.com/users/fenhl/orgs","repos_url":"https://api.github.com/users/fenhl/repos","events_url":"https://api.github.com/users/fenhl/events{/privacy}","received_events_url":"https://api.github.com/users/fenhl/received_events","type":"User","site_admin":false},"created_at":"2016-04-13T18:31:58Z","updated_at":"2016-04-13T18:31:58Z","body":"I'm not sure how to read the lists and mappings of set codes in the image download code. Is this documented anywhere? As for the format legality code, I'm not seeing any set codes there."}}