centralize mojibake support stuff

This commit is contained in:
ed
2021-07-24 21:56:55 +02:00
parent 4451485664
commit d020527c6f
14 changed files with 176 additions and 83 deletions

View File

@@ -5,6 +5,7 @@ import os
from .util import Cooldown
from .th_srv import thumb_path, THUMBABLE, FMT_FF
from .bos import bos
class ThumbCli(object):
@@ -36,7 +37,7 @@ class ThumbCli(object):
tpath = thumb_path(histpath, rem, mtime, fmt)
ret = None
try:
st = os.stat(tpath)
st = bos.stat(tpath)
if st.st_size:
ret = tpath
else: