Отключил поддержку аудио. 1.0.2

master 1.0.2
inpos 2017-02-04 13:45:37 +03:00
parent 003419c1a0
commit 7f5e5f5ee4
3 changed files with 12 additions and 6 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="kodi-vk.inpos.ru"
version="1.0.1"
version="1.0.2"
name="VK Add-on"
provider-name="inpos">
<requires>
@ -8,7 +8,7 @@ provider-name="inpos">
<import addon="script.module.vk"/>
</requires>
<extension point="xbmc.python.pluginsource" library="default.py">
<provides>image video audio</provides>
<provides>image video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en">Vkontakte for Kodi</summary>

View File

@ -1,3 +1,9 @@
v1.0.2 (2017-02-04)
- Убрал дополнение из раздела Аудио.
v1.0.1 (2017-02-04)
- Исправил зависимости в метаданных
v1.0.0 (2017-02-03)
- Подготовлена рабочая версия. Исправлены мелкие недочёты.

View File

@ -664,8 +664,8 @@ class KodiVkGUI:
xbmcplugin.addDirectoryItem(_addon_id, None, list_item, isFolder = False)
if c_type == _CTYPE_VIDEO:
self.root.add_folder(self._string(400502), {'do': _DO_MAIN_VIDEO, 'oid': oid})
elif c_type == _CTYPE_AUDIO:
self.root.add_folder(self._string(400503), {'do': _DO_MAIN_AUDIO, 'oid': oid})
#elif c_type == _CTYPE_AUDIO:
# self.root.add_folder(self._string(400503), {'do': _DO_MAIN_AUDIO, 'oid': oid})
elif c_type == _CTYPE_IMAGE:
self.root.add_folder(self._string(400504), {'do': _DO_MAIN_PHOTO, 'oid': oid})
else:
@ -859,8 +859,8 @@ class KodiVk:
cw_id = xbmcgui.getCurrentWindowId()
if cw_id in (10006, 10024, 10025, 10028):
self.params['content_type'] = _CTYPE_VIDEO
elif id in (10005, 10500, 10501, 10502):
self.params['content_type'] = _CTYPE_AUDIO
#elif id in (10005, 10500, 10501, 10502):
# self.params['content_type'] = _CTYPE_AUDIO
elif id in (10002,):
self.params['content_type'] = _CTYPE_IMAGE
self.c_type = self.params.get('content_type', None)