mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
issues/674
This commit is contained in:
parent
6a9bedc7da
commit
e049a22d12
@ -1,4 +1,4 @@
|
|||||||
import re
|
import re, html
|
||||||
from translator.basetranslator import basetrans
|
from translator.basetranslator import basetrans
|
||||||
|
|
||||||
|
|
||||||
@ -49,4 +49,4 @@ class TS(basetrans):
|
|||||||
res = re.search(
|
res = re.search(
|
||||||
'<div class="result-container">([\\s\\S]*?)</div>', response.text
|
'<div class="result-container">([\\s\\S]*?)</div>', response.text
|
||||||
).groups()
|
).groups()
|
||||||
return res[0].replace(""", '"')
|
return html.unescape(res[0])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user