diff --git a/backend/src/main/java/com/example/BriefMe/service/impl/YoutubeVideoToTextConverterImpl.java b/backend/src/main/java/com/example/BriefMe/service/impl/YoutubeVideoToTextConverterImpl.java index 75f541f..6e02d6e 100644 --- a/backend/src/main/java/com/example/BriefMe/service/impl/YoutubeVideoToTextConverterImpl.java +++ b/backend/src/main/java/com/example/BriefMe/service/impl/YoutubeVideoToTextConverterImpl.java @@ -23,7 +23,7 @@ public class YoutubeVideoToTextConverterImpl implements VideoToTextConverter { public static final String OUTPUT_FILE = "output-"; public static final String DOT = "."; - public static final String WEB_M = "webm"; + public static final String MP4 = "mp4"; public static final String SUBTITLES_FORMAT = "json3"; @Override @@ -68,11 +68,11 @@ public String fetchSubtitlesJsonFileFromVideo(String inputVideo) { log.error("Failed to download subtitles."); } - return outputFile + WEB_M + DOT + subtitlesLanguage + DOT + SUBTITLES_FORMAT; + return outputFile + MP4 + DOT + subtitlesLanguage + DOT + SUBTITLES_FORMAT; } catch (IOException | InterruptedException e) { e.printStackTrace(); } - return outputFile + WEB_M + DOT + subtitlesLanguage + DOT + SUBTITLES_FORMAT; + return outputFile + MP4 + DOT + subtitlesLanguage + DOT + SUBTITLES_FORMAT; } @Override