Changed how parameteres are passed to backend
This commit is contained in:
parent
ed44b50414
commit
049b2554ff
@ -144,12 +144,10 @@ class YandereBot:
|
||||
try:
|
||||
backend_s = picked_profile["backend"]
|
||||
backend = importlib.import_module(backend_s)
|
||||
username = self.settings_credentials[backend_s]["username"]
|
||||
password = self.settings_credentials[backend_s]["password"]
|
||||
backend_credentials = self.settings_credentials[backend_s]
|
||||
img = None
|
||||
downloader = backend.downloader(
|
||||
username, password,
|
||||
self.settings_behavior["tmp_dir"]
|
||||
backend_credentials, self.settings_behavior
|
||||
)
|
||||
|
||||
img = downloader.fetch_post(picked_profile)
|
||||
|
Reference in New Issue
Block a user