{"action":"created","comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/22957293","id":22957293,"diff_hunk":"@@ -0,0 +1,80 @@\n+(function (env) {\n+    \"use strict\";\n+\n+    env.ddg_spice_tvmaze_show = function(api_result){\n+        if (!api_result.id) {","path":"share/spice/tvmaze/show/tvmaze_show.js","position":5,"original_position":5,"commit_id":"760caddd8b0c891b6cdd7e46a1967e7493a4aad0","original_commit_id":"760caddd8b0c891b6cdd7e46a1967e7493a4aad0","user":{"login":"jagtalon","id":81969,"avatar_url":"https://avatars.githubusercontent.com/u/81969?v=3","gravatar_id":"","url":"https://api.github.com/users/jagtalon","html_url":"https://github.com/jagtalon","followers_url":"https://api.github.com/users/jagtalon/followers","following_url":"https://api.github.com/users/jagtalon/following{/other_user}","gists_url":"https://api.github.com/users/jagtalon/gists{/gist_id}","starred_url":"https://api.github.com/users/jagtalon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagtalon/subscriptions","organizations_url":"https://api.github.com/users/jagtalon/orgs","repos_url":"https://api.github.com/users/jagtalon/repos","events_url":"https://api.github.com/users/jagtalon/events{/privacy}","received_events_url":"https://api.github.com/users/jagtalon/received_events","type":"User","site_admin":false},"body":"Check if `api_result` exists before accessing ID","created_at":"2015-01-14T18:23:32Z","updated_at":"2015-01-14T18:23:32Z","html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1313#discussion_r22957293","pull_request_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1313","_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/22957293"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1313#discussion_r22957293"},"pull_request":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1313"}}},"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1313","id":25382441,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1313","diff_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1313.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1313.patch","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1313","number":1313,"state":"open","locked":false,"title":"TV show IA","user":{"login":"tvdavid","id":8103082,"avatar_url":"https://avatars.githubusercontent.com/u/8103082?v=3","gravatar_id":"","url":"https://api.github.com/users/tvdavid","html_url":"https://github.com/tvdavid","followers_url":"https://api.github.com/users/tvdavid/followers","following_url":"https://api.github.com/users/tvdavid/following{/other_user}","gists_url":"https://api.github.com/users/tvdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/tvdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvdavid/subscriptions","organizations_url":"https://api.github.com/users/tvdavid/orgs","repos_url":"https://api.github.com/users/tvdavid/repos","events_url":"https://api.github.com/users/tvdavid/events{/privacy}","received_events_url":"https://api.github.com/users/tvdavid/received_events","type":"User","site_admin":false},"body":"Hey all,\r\n\r\nThis is not a definite version yet intended for complete scrutiny, but I've been working on this for a couple of days and would love to get some early feedback.\r\n\r\nThis IA uses the www.tvmaze.com API to display all sorts of information about TV shows. Currently it answers to the generic query \"$query tv show\" with general information about that show, and to \"$query next episode\" with the name & airdate for that show's upcoming episode. If we want, it could be expanded to additional queries such as \"popular tv shows\", \"$query previous episode\", or \"$query episode list\".\r\n\r\nScreenshots below, or you can play with it live on: http://duckdev.tvmaze.org:5000/?q=the+walking+dead+tv+show\r\n\r\n![tvshow](https://cloud.githubusercontent.com/assets/8103082/5272542/38cd1894-7a7e-11e4-87e4-4e33c442ba0c.png)\r\n![nextepisode](https://cloud.githubusercontent.com/assets/8103082/5272544/3b30d5ee-7a7e-11e4-9263-d9a5b42ff1e6.png)\r\n\r\nI'd love some feedback about this IA in general, the layout / look & feel, and the templates that I've used. Specifically I wasn't very sure about the auxiliary template used in Show: I borrowed the HTML from the wikipedia IA, but that one doesn't seem to be included for this repository nor could I find the template that it's using? At first I tried to put the _record_ template there, but that looked pretty bad.\r\n\r\nAlso let me know if there's any additional information you'd like to see on these pages, or if you have ideas for additional answer types than I mentioned above :)","created_at":"2014-12-02T23:03:56Z","updated_at":"2015-01-14T18:23:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6786c7c5a0ae99ebe3877814ad34d135a228cc48","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1313/commits","review_comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1313/comments","review_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/{number}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1313/comments","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/760caddd8b0c891b6cdd7e46a1967e7493a4aad0","head":{"label":"tvdavid:master","ref":"master","sha":"760caddd8b0c891b6cdd7e46a1967e7493a4aad0","user":{"login":"tvdavid","id":8103082,"avatar_url":"https://avatars.githubusercontent.com/u/8103082?v=3","gravatar_id":"","url":"https://api.github.com/users/tvdavid","html_url":"https://github.com/tvdavid","followers_url":"https://api.github.com/users/tvdavid/followers","following_url":"https://api.github.com/users/tvdavid/following{/other_user}","gists_url":"https://api.github.com/users/tvdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/tvdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvdavid/subscriptions","organizations_url":"https://api.github.com/users/tvdavid/orgs","repos_url":"https://api.github.com/users/tvdavid/repos","events_url":"https://api.github.com/users/tvdavid/events{/privacy}","received_events_url":"https://api.github.com/users/tvdavid/received_events","type":"User","site_admin":false},"repo":{"id":27173629,"name":"zeroclickinfo-spice","full_name":"tvdavid/zeroclickinfo-spice","owner":{"login":"tvdavid","id":8103082,"avatar_url":"https://avatars.githubusercontent.com/u/8103082?v=3","gravatar_id":"","url":"https://api.github.com/users/tvdavid","html_url":"https://github.com/tvdavid","followers_url":"https://api.github.com/users/tvdavid/followers","following_url":"https://api.github.com/users/tvdavid/following{/other_user}","gists_url":"https://api.github.com/users/tvdavid/gists{/gist_id}","starred_url":"https://api.github.com/users/tvdavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tvdavid/subscriptions","organizations_url":"https://api.github.com/users/tvdavid/orgs","repos_url":"https://api.github.com/users/tvdavid/repos","events_url":"https://api.github.com/users/tvdavid/events{/privacy}","received_events_url":"https://api.github.com/users/tvdavid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tvdavid/zeroclickinfo-spice","description":"DuckDuckGo instant answer plugins based on JavaScript APIs","fork":true,"url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/issues/comments/{number}","contents_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/tvdavid/zeroclickinfo-spice/releases{/id}","created_at":"2014-11-26T11:23:09Z","updated_at":"2014-12-24T00:10:33Z","pushed_at":"2014-12-24T00:10:32Z","git_url":"git://github.com/tvdavid/zeroclickinfo-spice.git","ssh_url":"git@github.com:tvdavid/zeroclickinfo-spice.git","clone_url":"https://github.com/tvdavid/zeroclickinfo-spice.git","svn_url":"https://github.com/tvdavid/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":12137,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"duckduckgo:master","ref":"master","sha":"bc9a4334bebc45d0d80f8791f200a7ddbca9b468","user":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"repo":{"id":1997671,"name":"zeroclickinfo-spice","full_name":"duckduckgo/zeroclickinfo-spice","owner":{"login":"duckduckgo","id":342708,"avatar_url":"https://avatars.githubusercontent.com/u/342708?v=3","gravatar_id":"","url":"https://api.github.com/users/duckduckgo","html_url":"https://github.com/duckduckgo","followers_url":"https://api.github.com/users/duckduckgo/followers","following_url":"https://api.github.com/users/duckduckgo/following{/other_user}","gists_url":"https://api.github.com/users/duckduckgo/gists{/gist_id}","starred_url":"https://api.github.com/users/duckduckgo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duckduckgo/subscriptions","organizations_url":"https://api.github.com/users/duckduckgo/orgs","repos_url":"https://api.github.com/users/duckduckgo/repos","events_url":"https://api.github.com/users/duckduckgo/events{/privacy}","received_events_url":"https://api.github.com/users/duckduckgo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/duckduckgo/zeroclickinfo-spice","description":"DuckDuckGo instant answer plugins based on JavaScript APIs","fork":false,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice","forks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/forks","keys_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/teams","hooks_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/hooks","issue_events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/events{/number}","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/events","assignees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/assignees{/user}","branches_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/branches{/branch}","tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/tags","blobs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/refs{/sha}","trees_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/{sha}","languages_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/languages","stargazers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/stargazers","contributors_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contributors","subscribers_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscribers","subscription_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/subscription","commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/commits{/sha}","git_commits_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/git/commits{/sha}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/comments{/number}","issue_comment_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/comments/{number}","contents_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/contents/{+path}","compare_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/merges","archive_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/downloads","issues_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues{/number}","pulls_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls{/number}","milestones_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/milestones{/number}","notifications_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/labels{/name}","releases_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/releases{/id}","created_at":"2011-07-04T22:08:37Z","updated_at":"2015-01-14T17:17:15Z","pushed_at":"2015-01-14T17:17:14Z","git_url":"git://github.com/duckduckgo/zeroclickinfo-spice.git","ssh_url":"git@github.com:duckduckgo/zeroclickinfo-spice.git","clone_url":"https://github.com/duckduckgo/zeroclickinfo-spice.git","svn_url":"https://github.com/duckduckgo/zeroclickinfo-spice","homepage":"http://duckduckhack.com/","size":27398,"stargazers_count":203,"watchers_count":203,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":411,"mirror_url":null,"open_issues_count":103,"forks":411,"open_issues":103,"watchers":203,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1313"},"html":{"href":"https://github.com/duckduckgo/zeroclickinfo-spice/pull/1313"},"issue":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1313"},"comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/issues/1313/comments"},"review_comments":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1313/comments"},"review_comment":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/pulls/1313/commits"},"statuses":{"href":"https://api.github.com/repos/duckduckgo/zeroclickinfo-spice/statuses/760caddd8b0c891b6cdd7e46a1967e7493a4aad0"}}}}