LibreTranslate-py icon indicating copy to clipboard operation
LibreTranslate-py copied to clipboard

subtitle translation issue for time code

Open ahyear opened this issue 1 year ago • 0 comments

when I try tu translate subtitle from EN to FR i get this (miss reading of time frame) :

EN: [00:00:00.000 --> 00:00:02.000] [MUSIC PLAYING] [00:00:02.000 --> 00:00:11.400] Got the guy that hey!

FR: 00:00:00,000 -- Cancer 00:00:02,000 [MUSIC PLAYING] undefined 00:00:02,000 -- Cancer 00:00:11,400 Je l'ai eu !

I use : libretranslate = os.getenv('LIBRETRANSLATE',"http://127.0.0.1:5000" ) lt = LibreTranslateAPI(libretranslate) translate = lt.translate("{}".format(to_translate),"en","{}".format(targetlang))

ahyear avatar Mar 03 '23 14:03 ahyear