{"action":"closed","issue":{"url":"https://api.github.com/repos/sopel-irc/sopel/issues/1255","repository_url":"https://api.github.com/repos/sopel-irc/sopel","labels_url":"https://api.github.com/repos/sopel-irc/sopel/issues/1255/labels{/name}","comments_url":"https://api.github.com/repos/sopel-irc/sopel/issues/1255/comments","events_url":"https://api.github.com/repos/sopel-irc/sopel/issues/1255/events","html_url":"https://github.com/sopel-irc/sopel/issues/1255","id":306650028,"number":1255,"title":"[wikipedia] Queries with e.g. & do not work properly","user":{"login":"dgw","id":164140,"avatar_url":"https://avatars3.githubusercontent.com/u/164140?v=4","gravatar_id":"","url":"https://api.github.com/users/dgw","html_url":"https://github.com/dgw","followers_url":"https://api.github.com/users/dgw/followers","following_url":"https://api.github.com/users/dgw/following{/other_user}","gists_url":"https://api.github.com/users/dgw/gists{/gist_id}","starred_url":"https://api.github.com/users/dgw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgw/subscriptions","organizations_url":"https://api.github.com/users/dgw/orgs","repos_url":"https://api.github.com/users/dgw/repos","events_url":"https://api.github.com/users/dgw/events{/privacy}","received_events_url":"https://api.github.com/users/dgw/received_events","type":"User","site_admin":false},"labels":[{"id":209793,"url":"https://api.github.com/repos/sopel-irc/sopel/labels/Bug","name":"Bug","color":"FFA500","default":false},{"id":34757453,"url":"https://api.github.com/repos/sopel-irc/sopel/labels/Easyfix","name":"Easyfix","color":"02d7e1","default":false}],"state":"closed","locked":false,"assignee":{"login":"dgw","id":164140,"avatar_url":"https://avatars3.githubusercontent.com/u/164140?v=4","gravatar_id":"","url":"https://api.github.com/users/dgw","html_url":"https://github.com/dgw","followers_url":"https://api.github.com/users/dgw/followers","following_url":"https://api.github.com/users/dgw/following{/other_user}","gists_url":"https://api.github.com/users/dgw/gists{/gist_id}","starred_url":"https://api.github.com/users/dgw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgw/subscriptions","organizations_url":"https://api.github.com/users/dgw/orgs","repos_url":"https://api.github.com/users/dgw/repos","events_url":"https://api.github.com/users/dgw/events{/privacy}","received_events_url":"https://api.github.com/users/dgw/received_events","type":"User","site_admin":false},"assignees":[{"login":"dgw","id":164140,"avatar_url":"https://avatars3.githubusercontent.com/u/164140?v=4","gravatar_id":"","url":"https://api.github.com/users/dgw","html_url":"https://github.com/dgw","followers_url":"https://api.github.com/users/dgw/followers","following_url":"https://api.github.com/users/dgw/following{/other_user}","gists_url":"https://api.github.com/users/dgw/gists{/gist_id}","starred_url":"https://api.github.com/users/dgw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgw/subscriptions","organizations_url":"https://api.github.com/users/dgw/orgs","repos_url":"https://api.github.com/users/dgw/repos","events_url":"https://api.github.com/users/dgw/events{/privacy}","received_events_url":"https://api.github.com/users/dgw/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/sopel-irc/sopel/milestones/11","html_url":"https://github.com/sopel-irc/sopel/milestone/11","labels_url":"https://api.github.com/repos/sopel-irc/sopel/milestones/11/labels","id":3207995,"number":11,"title":"6.5.2","description":"Bugfixes, mostly fixing the help module (GitHub killed the anonymous gist API) and other little things.","creator":{"login":"dgw","id":164140,"avatar_url":"https://avatars3.githubusercontent.com/u/164140?v=4","gravatar_id":"","url":"https://api.github.com/users/dgw","html_url":"https://github.com/dgw","followers_url":"https://api.github.com/users/dgw/followers","following_url":"https://api.github.com/users/dgw/following{/other_user}","gists_url":"https://api.github.com/users/dgw/gists{/gist_id}","starred_url":"https://api.github.com/users/dgw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgw/subscriptions","organizations_url":"https://api.github.com/users/dgw/orgs","repos_url":"https://api.github.com/users/dgw/repos","events_url":"https://api.github.com/users/dgw/events{/privacy}","received_events_url":"https://api.github.com/users/dgw/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":19,"state":"open","created_at":"2018-03-22T00:48:20Z","updated_at":"2018-03-27T05:53:56Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2018-03-19T21:48:42Z","updated_at":"2018-03-27T05:53:56Z","closed_at":"2018-03-27T05:53:56Z","author_association":"CONTRIBUTOR","body":"````\r\n<dgw> ;w Miraculous Ladybug\r\n<Kaede> KeyError: u'extract' (file \"/usr/local/lib/python2.7/dist-packages/sopel/modules/wikipedia.py\",\r\n        line 87, in mw_snippet)\r\n[…]\r\n<dgw> https://en.wikipedia.org/wiki/Miraculous:_Tales_of_Ladybug_%26_Cat_Noir\r\n<Kaede> KeyError: u'extract' (file \"/usr/local/lib/python2.7/dist-packages/sopel/modules/wikipedia.py\",\r\n        line 87, in mw_snippet)\r\n````\r\n\r\nBasically, if a search returns a page title that contains `&`, e.g. \"Miraculous: Tales of Ladybug & Cat Noir\", the `wikipedia` module winds up trying to retrieve a snippet for, e.g., \"Miraculous: Tales of Ladybug \" and failing to do so because the page doesn't exist.\r\n\r\nI have a fix for this in testing, but wanted to open the issue so anyone searching for the problem would find out that it is already on the radar."}}
{"actor":{"display_login":"dgw"}}