mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 07:33:53 +08:00
.
This commit is contained in:
parent
3f6e1e8d71
commit
b17943a3ac
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
set(VERSION_MAJOR 6)
|
set(VERSION_MAJOR 6)
|
||||||
set(VERSION_MINOR 16)
|
set(VERSION_MINOR 16)
|
||||||
set(VERSION_PATCH 13)
|
set(VERSION_PATCH 14)
|
||||||
set(VERSION_REVISION 0)
|
set(VERSION_REVISION 0)
|
||||||
set(LUNA_VERSION "{${VERSION_MAJOR},${VERSION_MINOR},${VERSION_PATCH},${VERSION_REVISION}}")
|
set(LUNA_VERSION "{${VERSION_MAJOR},${VERSION_MINOR},${VERSION_PATCH},${VERSION_REVISION}}")
|
||||||
add_library(VERSION_DEF ${CMAKE_CURRENT_LIST_DIR}/version_def.cpp)
|
add_library(VERSION_DEF ${CMAKE_CURRENT_LIST_DIR}/version_def.cpp)
|
||||||
|
@ -22,6 +22,26 @@ class weblio(cishubase):
|
|||||||
join = '<div ID="base" style="overflow-x: hidden; min-width: 0; margin:0;">{}</div>'.format(
|
join = '<div ID="base" style="overflow-x: hidden; min-width: 0; margin:0;">{}</div>'.format(
|
||||||
"".join(collect)
|
"".join(collect)
|
||||||
)
|
)
|
||||||
|
for shit in simplehtmlparser_all(join, "script", "<script"):
|
||||||
|
join = join.replace(shit, "")
|
||||||
|
|
||||||
|
def removeklass(join, klass):
|
||||||
|
while True:
|
||||||
|
sig = "class=" + klass
|
||||||
|
fnd = join.find(sig)
|
||||||
|
if fnd == -1:
|
||||||
|
break
|
||||||
|
start = join.rfind("<img", None, fnd)
|
||||||
|
if start == -1:
|
||||||
|
break
|
||||||
|
end = join.find(">", fnd)
|
||||||
|
if end == -1:
|
||||||
|
break
|
||||||
|
join = join[:start] + join[end + 1 :]
|
||||||
|
return join
|
||||||
|
|
||||||
|
join = removeklass(join, "lgDictLg")
|
||||||
|
join = removeklass(join, "lgDictSp")
|
||||||
links = []
|
links = []
|
||||||
style = simplehtmlparser(html, "style", "<style>")[7:-8]
|
style = simplehtmlparser(html, "style", "<style>")[7:-8]
|
||||||
for link in simplehtmlparser_all(html, "link", '<link rel="stylesheet"'):
|
for link in simplehtmlparser_all(html, "link", '<link rel="stylesheet"'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user