Changed how parameteres are passed to backend

This commit is contained in:
Anon 2022-09-01 18:58:51 -07:00
parent ed44b50414
commit 049b2554ff

View File

@ -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)