Skip to content

Bulk asynchronous downloader for multiple file hosts

Add filesize to mediaItem

Jules-WinnfieldX47b4f97ebaed
diff --git a/cyberdrop_dl/utils/dataclasses/url_objects.py b/cyberdrop_dl/utils/dataclasses/url_objects.py
index 20218ed5d..c76fc4931 100644
--- a/cyberdrop_dl/utils/dataclasses/url_objects.py
+++ b/cyberdrop_dl/utils/dataclasses/url_objects.py
@@ -1,6 +1,4 @@
from dataclasses import field
-from pathlib import Path
-from typing import Optional
from yarl import URL
@@ -13,6 +11,7 @@ class MediaItem:
self.filename = filename
self.ext = ext
self.original_filename = original_filename
+ self.filesize: int = field(init=False)
class ScrapeItem: