LibreTranslate-py
LibreTranslate-py copied to clipboard
subtitle translation issue for time code
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))