[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/subed f8ea5543ff: subed-word-data: Bugfix related to from-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/subed f8ea5543ff: subed-word-data: Bugfix related to from-string |
Date: |
Sat, 16 Nov 2024 10:00:44 -0500 (EST) |
branch: elpa/subed
commit f8ea5543ffb6555bf55b00a0e263a3f697ba90ab
Author: Sacha Chua <sacha@sachachua.com>
Commit: Sacha Chua <sacha@sachachua.com>
subed-word-data: Bugfix related to from-string
*
subed/subed-word-data.el (subed-word-data-load-from-file):
Don't call with from-string.
*
subed/subed-word-data.el (subed-word-data-load-from-string):
Call with from-string.
---
subed/subed-word-data.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/subed/subed-word-data.el b/subed/subed-word-data.el
index 131996dc28..cb9f3fea56 100644
--- a/subed/subed-word-data.el
+++ b/subed/subed-word-data.el
@@ -133,14 +133,14 @@ For now, only SRV2 and JSON files are supported."
f)))))
(subed-word-data--load
(if (and (stringp file) (string-match "\\.json\\'" file))
- (subed-word-data--extract-words-from-whisperx-json file t)
+ (subed-word-data--extract-words-from-whisperx-json file)
(subed-word-data--extract-words-from-srv2 (xml-parse-file file)))))
(defun subed-word-data-load-from-string (string)
"Load word-level timing from STRING.
For now, only JSON or SRV2 files are supported."
(subed-word-data--load (if (string-match "^{" string)
- (subed-word-data--extract-words-from-whisperx-json string)
+ (subed-word-data--extract-words-from-whisperx-json string t)
(subed-word-data--extract-words-from-srv2 string))))
(defvar subed-word-data-extensions '(".en.srv2" ".srv2") "Extensions to search
for word data.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/subed f8ea5543ff: subed-word-data: Bugfix related to from-string,
ELPA Syncer <=