diff --git a/py34/url.py b/py34/url.py index 125f21f..e5568bf 100644 --- a/py34/url.py +++ b/py34/url.py @@ -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