Browse Source

Add missing break in retry loop

master
Gwendal 6 years ago
parent
commit
f237446d99
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/main/kotlin/bandcampcollectiondownloader/BandcampCollectionDownloader.kt

+ 1
- 0
src/main/kotlin/bandcampcollectiondownloader/BandcampCollectionDownloader.kt View File

@ -101,6 +101,7 @@ fun downloadAll(cookiesFile: Path?, bandcampUser: String, downloadFormat: String
}
try {
downloadAlbum(artistFolderPath, albumFolderPath, albumtitle, url, cookies, gson, isSingleTrack, artid)
break
} catch (e: Throwable) {
println("""Error while downloading: "${e.javaClass.name}: ${e.message}".""")
if (i == attempts) {


Loading…
Cancel
Save