Skip to content

Commit

Permalink
added custom namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus-Rost authored Sep 6, 2018
1 parent dd8472e commit 301cd13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function cmd_link(lang, msg, title, wiki, cmd) {
if ( body.query.pages ) {
if ( body.query.pages['-1'] && body.query.pages['-1'].missing != undefined ) {
request( {
uri: 'https://' + wiki + '.gamepedia.com/api.php?action=query&format=json&list=search&srnamespace=0|4|6|10|12|14&srsearch=' + encodeURI( title ) + '&srlimit=1',
uri: 'https://' + wiki + '.gamepedia.com/api.php?action=query&format=json&list=search&srnamespace=0|4|10|12|14|10000|10002|10004|10006|10008|10010&srsearch=' + encodeURI( title ) + '&srlimit=1',
json: true
}, function( srerror, srresponse, srbody ) {
if ( srerror || !srresponse || !srbody || !srbody.query || ( !srbody.query.search[0] && srbody.query.searchinfo.totalhits != 0 ) ) {
Expand Down

0 comments on commit 301cd13

Please sign in to comment.