public void saveAlbumsPhotos(String folderToSave) {
        MyDownloadExecutor executor = new MyDownloadExecutor(nThreads);
        for (Album album : albums) {
            File folder = new File(folderToSave + album.getAid() + "_" + fixWindowsFileName(album.getTitle()));
            boolean success = folder.mkdirs();
            System.out.println("created folder: " + folder.getAbsolutePath() + " " + success);
            for (Photo photo : album.getPhotos()) {
                File dest = new File(folder.getAbsolutePath() + "/" + photo.getFileName());

                if (!dest.exists() || dest.length() < 120) {
                    executor.jobsCountInc();
                    executor.execute(new Downloader(photo.getSrc(), dest, executor));
                    downloadedPhotosCount++;
                } else {
                    System.out.println(dest + " already exists");
                }
            }
        }
        if (downloadedPhotosCount == 0) {
            executor.shutdown();
        }
        try {
            executor.awaitTermination(Long.MAX_VALUE, TimeUnit.NANOSECONDS);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("All photos try to download.");

    }