diff --git a/gallery_dl/job.py b/gallery_dl/job.py index 77ce107e..a0adffbd 100644 --- a/gallery_dl/job.py +++ b/gallery_dl/job.py @@ -265,7 +265,7 @@ class DownloadJob(Job): # download succeeded pathfmt.finalize() - self.out.success(pathfmt.path, 0) + self.out.success(pathfmt.path) self._skipcnt = 0 if archive: archive.add(kwdict) diff --git a/gallery_dl/output.py b/gallery_dl/output.py index b2938fc5..3531304b 100644 --- a/gallery_dl/output.py +++ b/gallery_dl/output.py @@ -279,7 +279,7 @@ class NullOutput(): def skip(self, path): """Print a message indicating that a download has been skipped""" - def success(self, path, tries): + def success(self, path): """Print a message indicating the completion of a download""" def progress(self, bytes_total, bytes_downloaded, bytes_per_second): @@ -291,7 +291,7 @@ class PipeOutput(NullOutput): def skip(self, path): stdout_write(CHAR_SKIP + path + "\n") - def success(self, path, tries): + def success(self, path): stdout_write(path + "\n") @@ -313,7 +313,7 @@ class TerminalOutput(NullOutput): def skip(self, path): stdout_write(self.shorten(CHAR_SKIP + path) + "\n") - def success(self, path, tries): + def success(self, path): stdout_write("\r" + self.shorten(CHAR_SUCCESS + path) + "\n") def progress(self, bytes_total, bytes_downloaded, bytes_per_second): @@ -343,7 +343,7 @@ class ColorOutput(TerminalOutput): def skip(self, path): stdout_write(self.color_skip + self.shorten(path) + "\033[0m\n") - def success(self, path, tries): + def success(self, path): stdout_write(self.color_success + self.shorten(path) + "\033[0m\n")