1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -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:
Reinhard Pointner 2016-04-08 22:59:18 +00:00
parent d5bacdcb23
commit 3f870c4a1f

View File

@ -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);