1
0
Fork 0
mirror of synced 2024-05-17 18:52:46 +12:00

Add empty authenticator

This commit is contained in:
Serene-Arc 2021-03-09 15:51:06 +10:00 committed by Ali Parlakci
parent 735833503f
commit 7d30af3559
2 changed files with 6 additions and 4 deletions

View file

@ -57,14 +57,14 @@ class RedditDownloader:
self.time_filter = self._create_time_filter()
self.sort_filter = self._create_sort_filter()
self.file_name_formatter = self._create_file_name_formatter()
# self.authenticator = self._create_authenticator()
self._resolve_user_name()
self._determine_directories()
self._create_file_logger()
self.master_hash_list = []
self._load_config()
self.master_hash_list = []
self.authenticator = self._create_authenticator()
self._create_reddit_instance()
def _create_reddit_instance(self):
@ -231,7 +231,7 @@ class RedditDownloader:
return DownloadFilter(self.args.skip, self.args.skip_domain)
def _create_authenticator(self) -> SiteAuthenticator:
raise NotImplementedError
return SiteAuthenticator(self.cfg_parser)
def download(self):
for generator in self.reddit_lists:

View file

@ -1,7 +1,9 @@
#!/usr/bin/env python3
# coding=utf-8
import configparser
class SiteAuthenticator:
def __init__(self):
def __init__(self, cfg: configparser.ConfigParser):
self.imgur_authentication = None