forked from j62/ctbrec
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:
parent
11f2a3ef8d
commit
43ef2bdf67
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue