mirror of
https://github.com/mitb-archive/filebot
synced 2025-01-11 13:58:16 -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
|
// start download
|
||||||
if (downloadQueue.size() > 0) {
|
if (downloadQueue.size() > 0) {
|
||||||
downloadService = Executors.newFixedThreadPool(2);
|
downloadService = Executors.newSingleThreadExecutor();
|
||||||
|
|
||||||
for (DownloadTask downloadTask : downloadQueue) {
|
for (DownloadTask downloadTask : downloadQueue) {
|
||||||
downloadTask.getSubtitleBean().setState(StateValue.PENDING);
|
downloadTask.getSubtitleBean().setState(StateValue.PENDING);
|
||||||
|
Loading…
Reference in New Issue
Block a user