From c36195d1f50c1e1a2f26065795ffa0d7be9bde97 Mon Sep 17 00:00:00 2001 From: inpos Date: Tue, 31 Jan 2017 09:26:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D0=BA=D0=B0=20=D0=BE=D0=B1=D1=85=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kodi-vk.inpos.ru/default.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kodi-vk.inpos.ru/default.py b/kodi-vk.inpos.ru/default.py index a78216c..834b72b 100644 --- a/kodi-vk.inpos.ru/default.py +++ b/kodi-vk.inpos.ru/default.py @@ -498,15 +498,15 @@ class KodiVk: if sys.argv[2]: p.update(dict(urlparse.parse_qsl(sys.argv[2][1:]))) self.params = p - self.c_type = p.get('content_type', None) - if not self.c_type: + if 'content_type' not in self.params.keys(): cw_id = xbmcgui.getCurrentWindowId() if cw_id in (10006, 10024, 10025, 10028): - self.c_type = _CTYPE_VIDEO + self.params['content_type'] = _CTYPE_VIDEO elif id in (10005, 10500, 10501, 10502): - self.c_type = _CTYPE_AUDIO + self.params['content_type'] = _CTYPE_AUDIO elif id in (10002,): - self.c_type = _CTYPE_IMAGE + self.params['content_type'] = _CTYPE_IMAGE + self.c_type = self.params.get('content_type', None) def url(self, params=dict(), **kwparams): if self.c_type: kwparams['content_type'] = self.c_type