spantrack

This commit is contained in:
2026-08-12 08:47:49 -03:00
parent 2777b34026
commit 8a0f66ebc6
4 changed files with 141 additions and 7 deletions
+22
View File
@@ -0,0 +1,22 @@
import os
import logging
logger = logging.get_logger()
os.environ["NLTK_DATA" = 'C:\\Users\\renat\\AppData\\Roaming\\nltk_data'
os.environ["HF_TOKEN"] = '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'
from spantrack import cli
root = 'D:\DATA\EBOOKS\_SEM_DRM\'
globs = [
"Night School*.epub",
"The Midnight*.epub",
"Past Tense*.epub",
"Blue Moon*.epub",
"The Sentinel",
"Better Off Dead",
"No Plan B",
]
for glob in globs:
f = root.glob(glob)
if len(f) > 1:
logger.error("Glob pattern found more than 1 file: %s", f)
continue
cli.main([f.resolve(), "--voice", "am_liam"])