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