This commit is contained in:
恍兮惚兮 2025-01-02 03:08:56 +08:00
parent 3f6e1e8d71
commit b17943a3ac
2 changed files with 21 additions and 1 deletions

View File

@ -1,7 +1,7 @@
set(VERSION_MAJOR 6)
set(VERSION_MINOR 16)
set(VERSION_PATCH 13)
set(VERSION_PATCH 14)
set(VERSION_REVISION 0)
set(LUNA_VERSION "{${VERSION_MAJOR},${VERSION_MINOR},${VERSION_PATCH},${VERSION_REVISION}}")
add_library(VERSION_DEF ${CMAKE_CURRENT_LIST_DIR}/version_def.cpp)

View File

@ -22,6 +22,26 @@ class weblio(cishubase):
join = '<div ID="base" style="overflow-x: hidden; min-width: 0; margin:0;">{}</div>'.format(
"".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 = []
style = simplehtmlparser(html, "style", "<style>")[7:-8]
for link in simplehtmlparser_all(html, "link", '<link rel="stylesheet"'):