mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 16:28:51 -05:00
Use only a single thread to download subtitles (so that we can keep track of the Download-Quota header and check it before each request)
This commit is contained in:
parent
d5bacdcb23
commit
3f870c4a1f
@ -329,7 +329,7 @@ class SubtitleAutoMatchDialog extends JDialog {
|
||||
|
||||
// start download
|
||||
if (downloadQueue.size() > 0) {
|
||||
downloadService = Executors.newFixedThreadPool(2);
|
||||
downloadService = Executors.newSingleThreadExecutor();
|
||||
|
||||
for (DownloadTask downloadTask : downloadQueue) {
|
||||
downloadTask.getSubtitleBean().setState(StateValue.PENDING);
|
||||
|
Loading…
Reference in New Issue
Block a user