[modsearch] Update URL for search requests

master
SmallJoker 2016-01-16 20:34:56 +01:00
parent b49015b675
commit b9635b1340
1 changed files with 2 additions and 2 deletions

View File

@ -1,14 +1,14 @@
#!/usr/bin/env python
"""
modsearch.py - Phenny Minetest Mod Search Module
Copyright 2015, SmallJoker
Copyright 2015-2016, SmallJoker
Licensed under GNU General Public License v2.0
"""
import web
def mod(phenny, input):
uri = "http://nimg.pf-control.de/MTstuff/modSearchAPI.php?q="
uri = "http://krock-works.16mb.com/MTstuff/modSearchAPI.php?q="
text, sc = web.get(uri + web.urlencode(input.group(2)))
text = str(text, 'utf-8')
data = web.json(text)