Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Add add_to_parent_title for scrapeitem
Jules-WinnfieldX158a8486066e
diff --git a/cyberdrop_dl/utils/dataclasses/url_objects.py b/cyberdrop_dl/utils/dataclasses/url_objects.pyindex 51cc64dc2..5aa7f4319 100644--- a/cyberdrop_dl/utils/dataclasses/url_objects.py+++ b/cyberdrop_dl/utils/dataclasses/url_objects.py@@ -2,6 +2,8 @@ from dataclasses import fieldfrom pathlib import Pathfrom typing import TYPE_CHECKING+from cyberdrop_dl.utils.utilities import sanitize_folder+if TYPE_CHECKING:from rich.progress import TaskIDfrom yarl import URL@@ -26,3 +28,7 @@ class ScrapeItem:self.url: URL = urlself.parent_title: str = parent_titleself.part_of_album: bool = part_of_album++ async def add_to_parent_title(self, title: str) -> None:+ title = await sanitize_folder(title)+ self.parent_title = (self.parent_title + "/" + title) if self.parent_title else title