mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Use calibre's chardet
This commit is contained in:
parent
93f37ee295
commit
2fc5adcb84
@ -1,5 +1,5 @@
|
|||||||
import re
|
import re
|
||||||
import chardet
|
from calibre.ebooks import chardet
|
||||||
|
|
||||||
def get_encoding(page):
|
def get_encoding(page):
|
||||||
text = re.sub('</?[^>]*>\s*', ' ', page)
|
text = re.sub('</?[^>]*>\s*', ' ', page)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user