diff --git a/core/extractor.py b/core/extractor.py index a53f9fe..845bb4b 100755 --- a/core/extractor.py +++ b/core/extractor.py @@ -79,7 +79,7 @@ def run(ch, method, properties, body): subtitle = pysrt.open(filename, encoding='iso-8859-1') index = 1 # Initialize the extraction of subtitles - print ("Extracting...",) + print ("Extracting...") logger.info("Extraindo legendas do arquivo") for sub in subtitle: pts = calculate_ms(str(sub.start)) @@ -90,6 +90,8 @@ def run(ch, method, properties, body): body['control-message'] = "FINALIZE" body['pts'] = -1 body['index'] = index + #Number of subtitle extracted + logger.info(str(index-1) + " Legendas extraídas") # Clean temporary file logger.info("Removendo arquivo temporário") os.remove(filename) -- libgit2 0.21.2