mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-01-18 23:46:28 +01:00
Run YTTV manager initialization in a separate thread
This commit is contained in:
parent
202c1b655d
commit
518e12c6ad
@ -77,6 +77,7 @@ public class YoutubeManager {
|
||||
|
||||
long millis = System.currentTimeMillis();
|
||||
|
||||
Emulator.getThreading().run(() -> {
|
||||
ExecutorService youtubeDataLoaderPool = Executors.newFixedThreadPool(10);
|
||||
|
||||
Emulator.getLogging().logStart("YouTube Manager -> Loading...");
|
||||
@ -113,6 +114,7 @@ public class YoutubeManager {
|
||||
}
|
||||
|
||||
Emulator.getLogging().logStart("YouTube Manager -> Loaded! (" + (System.currentTimeMillis() - millis) + " MS)");
|
||||
});
|
||||
}
|
||||
|
||||
public YoutubePlaylist getPlaylistDataById(String playlistId) {
|
||||
|
Loading…
Reference in New Issue
Block a user