mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
fix
This commit is contained in:
parent
50d2550511
commit
a34b0d3867
@ -10,7 +10,7 @@ class japandict(cishubase):
|
|||||||
html = requests.get(
|
html = requests.get(
|
||||||
link,
|
link,
|
||||||
proxies=self.proxy,
|
proxies=self.proxy,
|
||||||
).content
|
).content.replace(b"padding-top:60px !important", b"")
|
||||||
base64_content = base64.b64encode(html).decode("utf-8")
|
base64_content = base64.b64encode(html).decode("utf-8")
|
||||||
saver[link] = f"data:application/octet-stream;base64,{base64_content}"
|
saver[link] = f"data:application/octet-stream;base64,{base64_content}"
|
||||||
|
|
||||||
@ -21,8 +21,11 @@ class japandict(cishubase):
|
|||||||
proxies=self.proxy,
|
proxies=self.proxy,
|
||||||
).text
|
).text
|
||||||
|
|
||||||
|
check = get_element_by("class", "alert-heading", html)
|
||||||
|
if check:
|
||||||
|
return
|
||||||
res = get_element_by("class", "list-group list-group-flush", html)
|
res = get_element_by("class", "list-group list-group-flush", html)
|
||||||
if res is None:
|
if not res:
|
||||||
return
|
return
|
||||||
ts = []
|
ts = []
|
||||||
saver = {}
|
saver = {}
|
||||||
|
@ -100,7 +100,7 @@ document.querySelectorAll('.tab-widget_xxxxxx_internal .tab-button_xxxx_internal
|
|||||||
if get_element_by("id", "no-matches", html):
|
if get_element_by("id", "no-matches", html):
|
||||||
return
|
return
|
||||||
res = get_element_by("id", "page_container", html)
|
res = get_element_by("id", "page_container", html)
|
||||||
if res is None:
|
if not res:
|
||||||
return
|
return
|
||||||
res = (
|
res = (
|
||||||
res.replace('href="//', 'href="https://')
|
res.replace('href="//', 'href="https://')
|
||||||
|
@ -29,7 +29,7 @@ include(generate_product_version)
|
|||||||
|
|
||||||
set(VERSION_MAJOR 5)
|
set(VERSION_MAJOR 5)
|
||||||
set(VERSION_MINOR 52)
|
set(VERSION_MINOR 52)
|
||||||
set(VERSION_PATCH 0)
|
set(VERSION_PATCH 1)
|
||||||
|
|
||||||
add_library(pch pch.cpp)
|
add_library(pch pch.cpp)
|
||||||
target_precompile_headers(pch PUBLIC pch.h)
|
target_precompile_headers(pch PUBLIC pch.h)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user