()
| 1304 | } |
| 1305 | |
| 1306 | private void saveHistory() { |
| 1307 | Path historyFile = Paths.get(Utils.getConfigDir() + "/history.json"); |
| 1308 | try { |
| 1309 | if (!Files.exists(historyFile)) { |
| 1310 | Files.createDirectories(historyFile.getParent()); |
| 1311 | Files.createFile(historyFile); |
| 1312 | } |
| 1313 | |
| 1314 | HISTORY.toFile(historyFile.toString()); |
| 1315 | Utils.setConfigList("download.history", Collections.emptyList()); |
| 1316 | } catch (IOException e) { |
| 1317 | LOGGER.error("Failed to save history to file " + historyFile, e); |
| 1318 | } |
| 1319 | } |
| 1320 | |
| 1321 | private void ripNextAlbum() { |
| 1322 | isRipping = true; |
no test coverage detected