diff --git a/addon/appModules/_chatParser.py b/addon/appModules/_chatParser.py index 06c3d1f..52a2572 100644 --- a/addon/appModules/_chatParser.py +++ b/addon/appModules/_chatParser.py @@ -2,7 +2,7 @@ _DATE_RE = re.compile(r'^\d{4}\.\d{2}\.\d{2} .+$') _MSG_RE = re.compile(r'^(\d{2}:\d{2}) (\S+?) (.+)$') -_RECALL_RE = re.compile(r'^(\d{2}:\d{2}) (\S+?) 已收回訊息$') +_RECALL_RE = re.compile(r'^(\d{2}:\d{2}) (\S+?)已收回訊息$') def parseChatFile(filePath): diff --git a/addon/appModules/line.py b/addon/appModules/line.py index 4e0b62a..312bc74 100644 --- a/addon/appModules/line.py +++ b/addon/appModules/line.py @@ -5941,6 +5941,7 @@ def _messageReaderHandleSaveDialog(self, retriesLeft=10): """Find the Save As dialog, set filename to temp folder, and save.""" import ctypes import ctypes.wintypes as wintypes + import tempfile lineProcessId = self.processID WNDENUMPROC = ctypes.WINFUNCTYPE(wintypes.BOOL, wintypes.HWND, wintypes.LPARAM)