aboutsummaryrefslogtreecommitdiff
path: root/app/tasks/importtasks.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-21 14:02:57 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-21 14:02:57 +0000
commitdd368d87aa926ef2676b22ccee95934a38be7fac (patch)
treed449b9e68053084710156c668230d24605cda795 /app/tasks/importtasks.py
parente5b279d0139e4371eb22dbf1341bcf7089afc7ca (diff)
downloadcheatdb-dd368d87aa926ef2676b22ccee95934a38be7fac.tar.xz
Fix various issues
Diffstat (limited to 'app/tasks/importtasks.py')
-rw-r--r--app/tasks/importtasks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/tasks/importtasks.py b/app/tasks/importtasks.py
index 9afc8b6..c3f8657 100644
--- a/app/tasks/importtasks.py
+++ b/app/tasks/importtasks.py
@@ -66,7 +66,7 @@ def getKrockList():
global krock_list_cache_by_name
if krock_list_cache is None:
- contents = urllib.request.urlopen("http://krock-works.16mb.com/MTstuff/modList.php").read().decode("utf-8")
+ contents = urllib.request.urlopen("https://krock-works.uk.to/minetest/modList.php").read().decode("utf-8")
list = json.loads(contents)
def h(x):
@@ -149,7 +149,8 @@ class PackageTreeNode:
type = PackageType.GAME
elif os.path.isfile(baseDir + "/init.lua"):
type = PackageType.MOD
- elif os.path.isfile(baseDir + "/modpack.txt"):
+ elif os.path.isfile(baseDir + "/modpack.txt") or \
+ os.path.isfile(baseDir + "/modpack.conf"):
type = PackageType.MOD
is_modpack = True
elif os.path.isdir(baseDir + "/mods"):