mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
10d8eabf03
commit
2ca024941a
@ -287,7 +287,7 @@ class vndbsettings(QDialog):
|
|||||||
self._ref.proxy, "GET", "authinfo", headers=self.headers
|
self._ref.proxy, "GET", "authinfo", headers=self.headers
|
||||||
)["id"]
|
)["id"]
|
||||||
|
|
||||||
def querylist(self, needtitle):
|
def querylist(self):
|
||||||
|
|
||||||
userid = self.userid
|
userid = self.userid
|
||||||
pagei = 1
|
pagei = 1
|
||||||
@ -295,9 +295,7 @@ class vndbsettings(QDialog):
|
|||||||
while True:
|
while True:
|
||||||
json_data = {
|
json_data = {
|
||||||
"user": userid,
|
"user": userid,
|
||||||
"fields": (
|
"fields": ("id, vn.title,vn.titles.title,vn.titles.main"),
|
||||||
"id, vn.title,vn.titles.title,vn.titles.main" if needtitle else "id"
|
|
||||||
),
|
|
||||||
"sort": "vote",
|
"sort": "vote",
|
||||||
"results": 100,
|
"results": 100,
|
||||||
"page": pagei,
|
"page": pagei,
|
||||||
@ -323,7 +321,7 @@ class vndbsettings(QDialog):
|
|||||||
collect[vid] = gameuid
|
collect[vid] = gameuid
|
||||||
|
|
||||||
for item in collectresults:
|
for item in collectresults:
|
||||||
title = item["name"]
|
title = gettitlefromjs(item["vn"])
|
||||||
vid = int(item["id"][1:])
|
vid = int(item["id"][1:])
|
||||||
if vid in thislistvids:
|
if vid in thislistvids:
|
||||||
continue
|
continue
|
||||||
@ -338,7 +336,7 @@ class vndbsettings(QDialog):
|
|||||||
|
|
||||||
def getalistname_upload(self, uid):
|
def getalistname_upload(self, uid):
|
||||||
reflist = getreflist(uid)
|
reflist = getreflist(uid)
|
||||||
vids = [int(item["id"][1:]) for item in self.querylist(False)]
|
vids = [int(item["id"][1:]) for item in self.querylist()]
|
||||||
|
|
||||||
for gameuid in reflist:
|
for gameuid in reflist:
|
||||||
vid = savehook_new_data[gameuid][self._ref.idname]
|
vid = savehook_new_data[gameuid][self._ref.idname]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user