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: try:
backend_s = picked_profile["backend"] backend_s = picked_profile["backend"]
backend = importlib.import_module(backend_s) backend = importlib.import_module(backend_s)
username = self.settings_credentials[backend_s]["username"] backend_credentials = self.settings_credentials[backend_s]
password = self.settings_credentials[backend_s]["password"]
img = None img = None
downloader = backend.downloader( downloader = backend.downloader(
username, password, backend_credentials, self.settings_behavior
self.settings_behavior["tmp_dir"]
) )
img = downloader.fetch_post(picked_profile) img = downloader.fetch_post(picked_profile)