From c488eb8c7d6f827eb6182a5560f12de7aa2017d1 Mon Sep 17 00:00:00 2001 From: Wesnydy Ribeiro Date: Thu, 15 Dec 2016 10:45:39 -0300 Subject: [PATCH] extractor worker release - ok --- core/extractor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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