support setting folderdepth in client.jsonc

This commit is contained in:
j 2013-04-23 16:21:49 +02:00
parent 376dd794bc
commit 8790f223fc

View file

@ -186,7 +186,7 @@ class Client(object):
self.api.DEBUG = DEBUG
if self.signin():
self.profile = "%sp.webm" % max(self.api.site['video']['resolutions'])
self.folderdepth = self.api.site['site'].get('folderdepth', 3)
self.folderdepth = self._config.get('folderdepth', self.api.site['site'].get('folderdepth', 3))
def signin(self):
if 'username' in self._config: