Added SampleURL

This commit is contained in:
2025-08-08 23:40:23 +02:00
parent 435fcd2fc3
commit 41ecfaec90

View File

@ -15,6 +15,16 @@ class ImageURL:
return f"https://wimg.rule34.xxx//images/{self.dir}/{self.id}.{self.format}"
class SampleURL:
def __init__(self, image_dir: int, image_id: str, image_format: str):
self.dir: int = image_dir
self.id: str = image_id
self.format: str = image_format.lstrip(".")
def __str__(self) -> str:
return f"https://rule34.xxx//samples/{self.dir}/sample_{self.id}.{self.format}"
class ThumbnailURL:
def __init__(self, image_dir: int, image_id: str):
self.dir: int = image_dir