Example #1
0
 def __init__(self):
     self._disk = AliyunPan()
     self._path_list = PathList(self._disk)
     self._req = Req()
     self._config = Config()
     self._task_config = Config(ROOT_DIR / Path('tasks.yaml'))
     self._share_link = 'aliyunpan://'
     self._print = Printer()
     GLOBAL_VAR.tasks = self._task_config.read()
     GLOBAL_VAR.txt = ''
Example #2
0
 def __init__(self, init=True, *args, **kwargs):
     self.match = False
     self.whitelist = False
     self._disk = AliyunPan()
     self._path_list = PathList(self._disk)
     self._req = Req(self._disk)
     self._config = Config()
     self._task_config = Config(ROOT_DIR / Path('tasks.yaml'))
     self._share_link = 'aliyunpan://'
     self._print = Printer()
     self._host_url = 'https://www.aliyundrive.com/'
     self._aria2 = None
     self.filter_set = set()
     self._config_set = {
         '~/.config/aliyunpan.yaml', '.config/aliyunpan.yaml',
         '~/aliyunpan.yaml', 'aliyunpan.yaml',
         os.environ.get('ALIYUNPAN_CONF', '')
     }
     GLOBAL_VAR.tasks = self._task_config.read()
     GLOBAL_VAR.txt = ''
     if init:
         self.init(*args, **kwargs)
Example #3
0
 def __init__(self):
     self._disk = AliyunPan()
     self._path_list = PathList(self._disk)
     self._req = Req()
     self._config = Config()
Example #4
0
 def __init__(self):
     self._disk = AliyunPan()
     self._path_list = PathList(self._disk)
     self._req = Req()
     self.refresh_token = ''