Updated class variables and whitespace
This commit is contained in:
parent
2e22104a66
commit
88e11f58bc
@ -69,19 +69,13 @@ def select_from_response(response, profile, max_size=None):
|
|||||||
|
|
||||||
|
|
||||||
class downloader:
|
class downloader:
|
||||||
username = None
|
|
||||||
password = None
|
|
||||||
max_size = None
|
|
||||||
tmp = ""
|
|
||||||
url = ""
|
|
||||||
api_endpoint = "index.php?page=dapi&s=post&q=index&json=1"
|
|
||||||
api_tags = "&tags={}"
|
|
||||||
api_limit = "&limit={}"
|
|
||||||
api_offset = "&pid={}"
|
|
||||||
limit = 100
|
|
||||||
max_depth = 200
|
|
||||||
|
|
||||||
def __init__(self, backend_credentials):
|
def __init__(self, backend_credentials):
|
||||||
|
self.api_endpoint = "index.php?page=dapi&s=post&q=index&json=1"
|
||||||
|
self.api_tags = "&tags={}"
|
||||||
|
self.api_limit = "&limit={}"
|
||||||
|
self.api_offset = "&pid={}"
|
||||||
|
self.limit = 100
|
||||||
|
|
||||||
self.username = backend_credentials["username"]
|
self.username = backend_credentials["username"]
|
||||||
self.password = backend_credentials["password"]
|
self.password = backend_credentials["password"]
|
||||||
self.max_size = backend_credentials["max_size"]
|
self.max_size = backend_credentials["max_size"]
|
||||||
|
Reference in New Issue
Block a user