diff --git a/classes/make_settings.py b/classes/make_settings.py index d319d8918..0d09624bc 100644 --- a/classes/make_settings.py +++ b/classes/make_settings.py @@ -63,6 +63,8 @@ def __init__(self, option={}) -> None: self.renamer = option.get('renamer', True) self.reformat_media = option.get( 'reformat_media', True) + self.downloader = option.get( + 'downloader', True) self.delete_empty_directories = option.get( 'delete_empty_directories', False) self.auto_site_choice = auto_site_choice diff --git a/helpers/main_helper.py b/helpers/main_helper.py index 08c9206da..68cb3ca7a 100644 --- a/helpers/main_helper.py +++ b/helpers/main_helper.py @@ -695,14 +695,15 @@ async def process_names( async def process_downloads(api, module): - for auth in api.auths: - subscriptions = await auth.get_subscriptions(refresh=False) - for subscription in subscriptions: - await module.prepare_downloads(subscription) - if json_global_settings["helpers"]["delete_empty_directories"]: - delete_empty_directories( - subscription.download_info.get("base_directory", "") - ) + if json_global_settings["helpers"]["downloader"]: + for auth in api.auths: + subscriptions = await auth.get_subscriptions(refresh=False) + for subscription in subscriptions: + await module.prepare_downloads(subscription) + if json_global_settings["helpers"]["delete_empty_directories"]: + delete_empty_directories( + subscription.download_info.get("base_directory", "") + ) async def process_webhooks(api: Union[OnlyFans.start], category, category2): diff --git a/modules/onlyfans.py b/modules/onlyfans.py index 0f6d5a4c9..3aea515fa 100644 --- a/modules/onlyfans.py +++ b/modules/onlyfans.py @@ -659,7 +659,6 @@ async def process_metadata( subscription, delete_metadatas, ): - print Session, api_type, folder = main_helper.export_sqlite( archive_path, new_metadata_object, parent_type )