videoconverter-worker 1.0.7__py3-none-any.whl → 1.0.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {videoconverter_worker-1.0.7.dist-info → videoconverter_worker-1.0.8.dist-info}/METADATA +1 -1
- videoconverter_worker-1.0.8.dist-info/RECORD +10 -0
- worker.py +7 -4
- videoconverter_worker-1.0.7.dist-info/RECORD +0 -10
- {videoconverter_worker-1.0.7.dist-info → videoconverter_worker-1.0.8.dist-info}/WHEEL +0 -0
- {videoconverter_worker-1.0.7.dist-info → videoconverter_worker-1.0.8.dist-info}/entry_points.txt +0 -0
- {videoconverter_worker-1.0.7.dist-info → videoconverter_worker-1.0.8.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
ffmpeg_runner.py,sha256=2sYugXkKp-NKj3ahxbwbhAo4G49FDu-0oze-cdJvcY0,12218
|
|
2
|
+
metadata.py,sha256=32zQn7jJ6XTHhunwTn5Xv0qmpjHnap_pkPxY0XI8MBs,3116
|
|
3
|
+
schema.py,sha256=3ILdGl5qSQOSvKfiKWcnaxdyHwV4rDvGnRZIparVp3o,4361
|
|
4
|
+
task_queue.py,sha256=sYQelPRuTbP9g_sPs69xOR3n5SIxGBFxY4EI5ueQrQs,11822
|
|
5
|
+
worker.py,sha256=oDd4NG0OM5GsoYnRNf8XtcwIyoe8Zd7SkXABrC8WqzM,22417
|
|
6
|
+
videoconverter_worker-1.0.8.dist-info/METADATA,sha256=rPAbe8ov972I4JqYOylfTTlFlJuQkavM51e0oYpbCoo,5139
|
|
7
|
+
videoconverter_worker-1.0.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
+
videoconverter_worker-1.0.8.dist-info/entry_points.txt,sha256=qedJjjix02n9Hz8adBioDIpGHghm8S3fQZdFwM5LV1A,83
|
|
9
|
+
videoconverter_worker-1.0.8.dist-info/top_level.txt,sha256=iamWyiqUZ4X0_2UZx6GEk9gsPmiI9qhse_15HqtzUj8,48
|
|
10
|
+
videoconverter_worker-1.0.8.dist-info/RECORD,,
|
worker.py
CHANGED
|
@@ -50,7 +50,7 @@ def _desub_spinner(stop_event: threading.Event) -> None:
|
|
|
50
50
|
try:
|
|
51
51
|
ts = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
|
52
52
|
extra = _cpu_ram_str()
|
|
53
|
-
sys.stderr.write(f"\r{ts} [INFO] worker: 去字幕中 {dots}
|
|
53
|
+
sys.stderr.write(f"\r{ts} [INFO] worker: 去字幕中{extra} {dots} ")
|
|
54
54
|
sys.stderr.flush()
|
|
55
55
|
except (OSError, UnicodeEncodeError):
|
|
56
56
|
break
|
|
@@ -470,7 +470,7 @@ def main() -> int:
|
|
|
470
470
|
parser.add_argument(
|
|
471
471
|
"--dir",
|
|
472
472
|
default=".",
|
|
473
|
-
help="
|
|
473
|
+
help="简易模式:工作目录(支持相对路径),不存在则自动创建,默认当前目录",
|
|
474
474
|
)
|
|
475
475
|
parser.add_argument(
|
|
476
476
|
"--start",
|
|
@@ -531,9 +531,12 @@ def main() -> int:
|
|
|
531
531
|
|
|
532
532
|
if args.simple:
|
|
533
533
|
base = Path(args.dir).resolve()
|
|
534
|
-
if not base.is_dir():
|
|
535
|
-
logger.error("
|
|
534
|
+
if base.exists() and not base.is_dir():
|
|
535
|
+
logger.error("路径已存在但不是目录: %s", base)
|
|
536
536
|
return 1
|
|
537
|
+
if not base.exists():
|
|
538
|
+
base.mkdir(parents=True, exist_ok=True)
|
|
539
|
+
logger.info("已创建工作目录: %s", base)
|
|
537
540
|
out_dir = Path(args.output).resolve() if args.output else (base / "videoconverter_out")
|
|
538
541
|
out_dir.mkdir(parents=True, exist_ok=True)
|
|
539
542
|
if args.file:
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
ffmpeg_runner.py,sha256=2sYugXkKp-NKj3ahxbwbhAo4G49FDu-0oze-cdJvcY0,12218
|
|
2
|
-
metadata.py,sha256=32zQn7jJ6XTHhunwTn5Xv0qmpjHnap_pkPxY0XI8MBs,3116
|
|
3
|
-
schema.py,sha256=3ILdGl5qSQOSvKfiKWcnaxdyHwV4rDvGnRZIparVp3o,4361
|
|
4
|
-
task_queue.py,sha256=sYQelPRuTbP9g_sPs69xOR3n5SIxGBFxY4EI5ueQrQs,11822
|
|
5
|
-
worker.py,sha256=o4_OHP1O1wMQ9zBrKgmvRHIEwU4NF2o0ocUzeJ3DRwY,22192
|
|
6
|
-
videoconverter_worker-1.0.7.dist-info/METADATA,sha256=_4UJrZU6nz2_Z-4DjlxuF99QspiOOLrdKf77xRJu1aQ,5139
|
|
7
|
-
videoconverter_worker-1.0.7.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
8
|
-
videoconverter_worker-1.0.7.dist-info/entry_points.txt,sha256=qedJjjix02n9Hz8adBioDIpGHghm8S3fQZdFwM5LV1A,83
|
|
9
|
-
videoconverter_worker-1.0.7.dist-info/top_level.txt,sha256=iamWyiqUZ4X0_2UZx6GEk9gsPmiI9qhse_15HqtzUj8,48
|
|
10
|
-
videoconverter_worker-1.0.7.dist-info/RECORD,,
|
|
File without changes
|
{videoconverter_worker-1.0.7.dist-info → videoconverter_worker-1.0.8.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{videoconverter_worker-1.0.7.dist-info → videoconverter_worker-1.0.8.dist-info}/top_level.txt
RENAMED
|
File without changes
|