Revision 479 tmp/org.txm.groovy.core/src/groovy/org/txm/importer/transcriber/TRS2SRT.groovy

TRS2SRT.groovy (revision 479)
216 216
			
217 217
			File trsFile = new File(path)
218 218
			String name = trsFile.getName()
219
			name = name.substring(0, name.indexOf("."))
219
			name = name.substring(0, name.lastIndexOf("."))
220 220
			File srtFile = new File(trsFile.getParentFile(), name+".srt")
221 221
			TRS2SRT t = new TRS2SRT(trsFile)
222 222
			t.process(srtFile)

Also available in: Unified diff