mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 17:56:11 +00:00
Use six to get correct string format
This commit is contained in:
parent
44808f5dd4
commit
6e786a1e6b
2 changed files with 3 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
|||
<import addon="xbmc.python" version="2.25.0"/>
|
||||
<import addon="script.module.requests" version="2.22.0"/>
|
||||
<import addon="script.module.dateutil" version="2.7.3"/>
|
||||
<import addon="script.module.six" />
|
||||
<import addon="script.module.six" version="1.13"/>
|
||||
<import addon="script.module.kodi-six" />
|
||||
<import addon="script.module.addon.signals" version="0.0.1"/>
|
||||
<import addon="script.module.futures" version="2.2.0"/>
|
||||
|
|
|
@ -7,6 +7,7 @@ import logging
|
|||
import os
|
||||
|
||||
from kodi_six import xbmcgui, xbmcaddon
|
||||
from six import ensure_text
|
||||
|
||||
from helper import window, addon_id
|
||||
|
||||
|
@ -64,7 +65,7 @@ class ContextMenu(xbmcgui.WindowXMLDialog):
|
|||
|
||||
if self.getFocusId() == LIST:
|
||||
option = self.list_.getSelectedItem()
|
||||
self.selected_option = option.getLabel().decode('utf-8')
|
||||
self.selected_option = ensure_text(option.getLabel())
|
||||
LOG.info('option selected: %s', self.selected_option)
|
||||
|
||||
self.close()
|
||||
|
|
Loading…
Reference in a new issue