From 8790f223fc93b466cb04c5ca525affc58c453cc1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 23 Apr 2013 16:21:49 +0200 Subject: [PATCH] support setting folderdepth in client.jsonc --- pandora_client/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 9f84e24..681e688 100644 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -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: