mirror of
https://github.com/mitb-archive/filebot
synced 2024-08-13 17:03:45 -04:00
flush all memory caches to disk (before starting any long running file system operations that might be cancelled by the user)
This commit is contained in:
parent
267bf133f6
commit
a63556e3f4
@ -740,9 +740,6 @@ public class CmdlineOperations implements CmdlineInterface {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warning("Lookup by hash failed: " + e.getMessage());
|
log.warning("Lookup by hash failed: " + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
// flush all memory caches to disk (before starting any long running file system operations that might be cancelled by the user)
|
|
||||||
CacheManager.getInstance().flushAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (SubtitleProvider service : getSubtitleProviders(language.getLocale())) {
|
for (SubtitleProvider service : getSubtitleProviders(language.getLocale())) {
|
||||||
@ -759,9 +756,6 @@ public class CmdlineOperations implements CmdlineInterface {
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.warning(format("Search by name failed: %s", e.getMessage()));
|
log.warning(format("Search by name failed: %s", e.getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
// flush all memory caches to disk (before starting any long running file system operations that might be cancelled by the user)
|
|
||||||
CacheManager.getInstance().flushAll();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// no subtitles for remaining video files
|
// no subtitles for remaining video files
|
||||||
@ -830,6 +824,9 @@ public class CmdlineOperations implements CmdlineInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private Map<File, File> downloadSubtitleBatch(Datasource service, Map<File, List<SubtitleDescriptor>> subtitles, SubtitleFormat outputFormat, Charset outputEncoding, SubtitleNaming naming) {
|
private Map<File, File> downloadSubtitleBatch(Datasource service, Map<File, List<SubtitleDescriptor>> subtitles, SubtitleFormat outputFormat, Charset outputEncoding, SubtitleNaming naming) {
|
||||||
|
// flush all memory caches to disk (before starting any long running file system operations that might be cancelled by the user)
|
||||||
|
CacheManager.getInstance().flushAll();
|
||||||
|
|
||||||
Map<File, File> downloads = new LinkedHashMap<File, File>();
|
Map<File, File> downloads = new LinkedHashMap<File, File>();
|
||||||
|
|
||||||
// fetch subtitle
|
// fetch subtitle
|
||||||
|
Loading…
Reference in New Issue
Block a user