Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
move sort status
datawhores67d81456d729
diff --git a/cyberdrop_dl/ui/progress/sort_progress.py b/cyberdrop_dl/ui/progress/sort_progress.pyindex a069c761c..ec8133578 100644--- a/cyberdrop_dl/ui/progress/sort_progress.py+++ b/cyberdrop_dl/ui/progress/sort_progress.py@@ -42,6 +42,12 @@ class SortProgress:self.uninitiated_tasks: List[TaskID] = []self.tasks_visibility_limit = visible_task_limit+ #counts+ self.audio_count=0+ self.video_count=0+ self.image_count=0+ self.other_count=0+async def get_progress(self) -> Panel:"""Returns the progress bar"""return Panel(self.progress_group, title=f"Sorting Downloads ━ Config: {self.manager.config_manager.loaded_config}", border_style="green", padding=(1, 1))@@ -110,3 +116,13 @@ class SortProgress:self.invisible_tasks.append(task_id)await self.redraw()self.progress.advance(task_id, amount)++ async def increment_audio(self):+ self.audio_count += 1++ async def increment_video(self):+ self.video_count += 1+ async def increment_image(self):+ self.image_count += 1+ async def increment_other(self):+ self.other_count += 1\ No newline at end of filediff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.pyindex d64f43be4..1d928ee17 100644--- a/cyberdrop_dl/utils/sorting.py+++ b/cyberdrop_dl/utils/sorting.py@@ -176,6 +176,8 @@ class Sorter:sample_rate=sample_rate, file_date_us=file_date_us, file_date_ca=file_date_ca))await self.move_cd(file, new_file)+ self.manager.progress_manager.sort_progress.increment_audio()+async def sort_image(self, file: Path, base_name: str) -> None:"""Sorts an image file into the sorted image folder"""@@ -198,6 +200,8 @@ class Sorter:file_date_ca=file_date_ca))await self.move_cd(file, new_file)+ self.manager.progress_manager.sort_progress.increment_image()+async def sort_video(self, file: Path, base_name: str) -> None:"""Sorts a video file into the sorted video folder"""@@ -227,6 +231,7 @@ class Sorter:codec=codec, file_date_us=file_date_us, file_date_ca=file_date_ca))await self.move_cd(file, new_file)+ self.manager.progress_manager.sort_progress.increment_video()async def sort_other(self, file: Path, base_name: str) -> None:"""Sorts an other file into the sorted other folder"""@@ -240,3 +245,5 @@ class Sorter:filename=filename, ext=ext, file_date_us=file_date_us, file_date_ca=file_date_ca))await self.move_cd(file, new_file)+ self.manager.progress_manager.sort_progress.increment_other()+