Add .ts file extensions for segments if it is missing
This commit is contained in:
parent
cf3849024f
commit
3749b1ee77
|
@ -129,6 +129,9 @@ public class HlsDownload extends AbstractHlsDownload {
|
|||
if (questionMarkPosition > 0) {
|
||||
prefixedFileName = prefixedFileName.substring(0, questionMarkPosition);
|
||||
}
|
||||
if (!prefixedFileName.endsWith(".ts")) {
|
||||
prefixedFileName += ".ts";
|
||||
}
|
||||
File file = FileSystems.getDefault().getPath(downloadDir.toAbsolutePath().toString(), prefixedFileName).toFile();
|
||||
return new FileOutputStream(file);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue