forked from j62/ctbrec
1
0
Fork 0

Add setting to disable playlist generation on the server

Implementing #142.
This has feature has the disadvantage, that the recording is always detected as still
recording, because the finished state is assumed by the existence of the playlist file.
This commit is contained in:
0xboobface 2019-01-20 13:33:16 +01:00
parent 11f2a3ef8d
commit 43ef2bdf67
2 changed files with 5 additions and 0 deletions

View File

@ -103,4 +103,5 @@ public class Settings {
public String recordingsSortColumn = ""; public String recordingsSortColumn = "";
public String recordingsSortType = ""; public String recordingsSortType = "";
public double[] recordingsColumnWidths = new double[0]; public double[] recordingsColumnWidths = new double[0];
public boolean generatePlaylist = true;
} }

View File

@ -398,6 +398,10 @@ public class LocalRecorder implements Recorder {
} }
private void generatePlaylist(File recDir) { private void generatePlaylist(File recDir) {
if(!config.getSettings().generatePlaylist) {
return;
}
PlaylistGenerator playlistGenerator = new PlaylistGenerator(); PlaylistGenerator playlistGenerator = new PlaylistGenerator();
playlistGenerators.put(recDir, playlistGenerator); playlistGenerators.put(recDir, playlistGenerator);
try { try {