Code cleanup
This commit is contained in:
parent
2b8bb40f6d
commit
632f104f03
|
@ -12,9 +12,9 @@ import ctbrec.io.HttpClient;
|
||||||
import ctbrec.recorder.download.hls.HlsDownload;
|
import ctbrec.recorder.download.hls.HlsDownload;
|
||||||
|
|
||||||
public class MVLiveHlsDownload extends HlsDownload {
|
public class MVLiveHlsDownload extends HlsDownload {
|
||||||
private static final Logger LOG = LoggerFactory.getLogger(MVLiveMergedHlsDownload.class);
|
private static final Logger LOG = LoggerFactory.getLogger(MVLiveHlsDownload.class);
|
||||||
|
|
||||||
private ScheduledExecutorService scheduler;
|
private transient ScheduledExecutorService scheduler;
|
||||||
|
|
||||||
public MVLiveHlsDownload(HttpClient client) {
|
public MVLiveHlsDownload(HttpClient client) {
|
||||||
super(client);
|
super(client);
|
||||||
|
@ -30,7 +30,7 @@ public class MVLiveHlsDownload extends HlsDownload {
|
||||||
t.setPriority(Thread.MIN_PRIORITY);
|
t.setPriority(Thread.MIN_PRIORITY);
|
||||||
return t;
|
return t;
|
||||||
});
|
});
|
||||||
scheduler.scheduleAtFixedRate(() -> updateCloudFlareCookies(), 120, 120, TimeUnit.SECONDS);
|
scheduler.scheduleAtFixedRate(this::updateCloudFlareCookies, 120, 120, TimeUnit.SECONDS);
|
||||||
updateCloudFlareCookies();
|
updateCloudFlareCookies();
|
||||||
super.start();
|
super.start();
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue