Added SampleURL
This commit is contained in:
10
py34/url.py
10
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
|
||||
|
||||
Reference in New Issue
Block a user