{"action":"created","issue":{"url":"https://api.github.com/repos/Zequez/FactorioMods/issues/10","labels_url":"https://api.github.com/repos/Zequez/FactorioMods/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Zequez/FactorioMods/issues/10/comments","events_url":"https://api.github.com/repos/Zequez/FactorioMods/issues/10/events","html_url":"https://github.com/Zequez/FactorioMods/issues/10","id":108353067,"number":10,"title":"factoriomods uri is truncated.","user":{"login":"Berserker66","id":3189725,"avatar_url":"https://avatars.githubusercontent.com/u/3189725?v=3","gravatar_id":"","url":"https://api.github.com/users/Berserker66","html_url":"https://github.com/Berserker66","followers_url":"https://api.github.com/users/Berserker66/followers","following_url":"https://api.github.com/users/Berserker66/following{/other_user}","gists_url":"https://api.github.com/users/Berserker66/gists{/gist_id}","starred_url":"https://api.github.com/users/Berserker66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Berserker66/subscriptions","organizations_url":"https://api.github.com/users/Berserker66/orgs","repos_url":"https://api.github.com/users/Berserker66/repos","events_url":"https://api.github.com/users/Berserker66/events{/privacy}","received_events_url":"https://api.github.com/users/Berserker66/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-25T15:57:15Z","updated_at":"2015-09-25T16:28:05Z","closed_at":null,"body":"As an example, for the galactic trade mod: this is the decoded string:\r\n\r\n'{\"id\":52,\"url\":\"http://www.factoriomods.com/mods/galactic-trade-mod\",\"categories\":[\"gameplay\"],\"author\":\"coopmaster\",\"contact\":\"coopmaster24@gmail.com\",\"title\":\"Galactic Trade Mod\",\"name\":\"GalacticTrade\",\"description\":\"This mod adds the ability to buy and sell items in the game at market prices. You unlock the chest by researching market trading which comes after electronics.\",\"homepage\":\"\",\"releases\":[{\"id\":279,\"version\":\"0.6.5\",\"released_at\":\"2015-09-22T00:00:00.000Z\",\"game_versions\":[\"0.12.x\"],\"dependencies\":[],\"files\":[{\"id\":293,\"name\":\"\",\"mirror\":null,\"url\":\"https://drive.google.com/open?id=0B-yFva9bu-RVRDlCWEZ0ZmNkOVE\"},{\"id\":292,\"name\":\"\",\"mirror\":null,\"url\":\"http://www.factorioforums.com/forum/download/file.php?id=6083\"}]},{\"id\":274,\"version\":\"0.6.4\",\"released_at\":\"2015-09-20T00:00:00.000Z\",\"game_versions\":[\"0.12.x\"],\"dependencies\":[],\"files\":[{\"id\":287,\"name\":\"\",\"mirror\":null,\"url\":\"http://www.factorioforums.com/forum/download/file.php?id=6024\"},{\"id\":286,\"name\":\"\",\"mirror\":null,\"url\":\"https://drive.google.com/open?id=0B-yFva9bu-RVblJEU0FkM01MZUk\"}]},{\"id\":270,\"version\":\"0.6.2\",\"released_at\":\"2015-09-15T00:00:00.000Z\",\"game_versions\":[\"0.12.x\"],\"dependencies\":[],\"files\":[{\"id\":279,\"name\":\"\",\"mirror\":null,\"url\":\"https://drive.google.com/open?id=0B-yFva9bu-RVdWNXSGxjaWxyT2s\"}]},{\"id\":266,\"version\":\"0.6.1\",\"released_at\":\"2015-09-10T00:00:00.000Z\",\"game_versions\":[\"0.12.x\"],\"dependencies\":[],\"files\":[{\"id\":273,\"name\":\"\",\"mirror\":null,\"url\":\"https://drive.google.com/open?id=0B-yFva9bu-RVSDFpc0ZMZ3RiQmM\"}]},{\"id\":69,\"versi'\r\n\r\nAs you can see, it simply ends midway and does not yield a proper json object.\r\n\r\nInstead of encoding all this information, I'd recommend just linking to an url on factoriomods.com, that then yields the json data."},"comment":{"url":"https://api.github.com/repos/Zequez/FactorioMods/issues/comments/143269372","html_url":"https://github.com/Zequez/FactorioMods/issues/10#issuecomment-143269372","issue_url":"https://api.github.com/repos/Zequez/FactorioMods/issues/10","id":143269372,"user":{"login":"Berserker66","id":3189725,"avatar_url":"https://avatars.githubusercontent.com/u/3189725?v=3","gravatar_id":"","url":"https://api.github.com/users/Berserker66","html_url":"https://github.com/Berserker66","followers_url":"https://api.github.com/users/Berserker66/followers","following_url":"https://api.github.com/users/Berserker66/following{/other_user}","gists_url":"https://api.github.com/users/Berserker66/gists{/gist_id}","starred_url":"https://api.github.com/users/Berserker66/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Berserker66/subscriptions","organizations_url":"https://api.github.com/users/Berserker66/orgs","repos_url":"https://api.github.com/users/Berserker66/repos","events_url":"https://api.github.com/users/Berserker66/events{/privacy}","received_events_url":"https://api.github.com/users/Berserker66/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T16:28:05Z","updated_at":"2015-09-25T16:28:05Z","body":"        mod = sys.argv[1].lstrip(r\"factoriomods://\")\r\n        import base64\r\n        mod = base64.b64decode(mod)\r\n\r\nI literally just strip the uri sheme identifier and pass the rest raw."}}