From 48243bf13d0b739c12efc32e703d63acb569c2e0 Mon Sep 17 00:00:00 2001 From: Marius Mutu Date: Thu, 23 Apr 2026 09:43:39 +0300 Subject: [PATCH] 2 calculatoare --- copy_m6_m8_to_pc2.bat | 2 +- transcribe.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/copy_m6_m8_to_pc2.bat b/copy_m6_m8_to_pc2.bat index 3b1b338..cb4ed38 100644 --- a/copy_m6_m8_to_pc2.bat +++ b/copy_m6_m8_to_pc2.bat @@ -6,7 +6,7 @@ setlocal cd /d "%~dp0" set "PC2=lenovo-aio-birou" -set "DEST=\\%PC2%\E$\proiecte\nlp-master\nlp-practitioner\audio" +set "DEST=\\%PC2%\audio" echo ============================================== echo Copiez audio Modul 6/7/8 -^> %PC2% diff --git a/transcribe.py b/transcribe.py index 8ccc16b..d79b935 100644 --- a/transcribe.py +++ b/transcribe.py @@ -13,6 +13,7 @@ import argparse import json import logging import os +import re import shutil import subprocess import sys @@ -200,7 +201,11 @@ def main(): skipped = 0 failed = 0 - for mod_idx, mod in enumerate(manifest["modules"], 1): + for pos, mod in enumerate(manifest["modules"], 1): + # Derive module number from name (e.g. "Modul 6" -> 6) so partial + # manifests (e.g. PC2 scraped only --modules 6) still match the filter. + m = re.search(r"(\d+)", mod["name"]) + mod_idx = int(m.group(1)) if m else pos if module_filter and mod_idx not in module_filter: log.info(f"\nSkipping module {mod_idx}: {mod['name']}") continue