Skip to content

Commit

Permalink
rename file from webp to mp4
Browse files Browse the repository at this point in the history
  • Loading branch information
Maleehak committed Jul 20, 2024
1 parent fb2fccb commit d3ae99a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d3ae99a

Please sign in to comment.