import httplib import hashlib import ssl import StringIO import gzip import json from urlparse import urlparse import urllib from datetime import datetime from kodi_utils import HomeWindow from clientinfo import ClientInformation from simple_logging import SimpleLogging from translation import string_load log = SimpleLogging(__name__) def getDetailsString(): addonSettings = xbmcaddon.Addon() include_media = addonSettings.getSetting("include_media") == "true" include_people = addonSettings.getSetting("include_people") == "true" include_overview = addonSettings.getSetting("include_overview") == "true" detailsString = "DateCreated,EpisodeCount,SeasonCount,Path,Genres,Studios,Etag,Taglines" detailsString += ",RecursiveItemCount,ChildCount,ProductionLocations" if include_media: detailsString += ",MediaStreams" if include_people:
import os import urllib from collections import defaultdict import xbmc import xbmcaddon import xbmcgui from utils import getArt from simple_logging import SimpleLogging from translation import i18n from downloadutils import DownloadUtils from datamanager import DataManager from kodi_utils import HomeWindow log = SimpleLogging(__name__) kodi_version = int(xbmc.getInfoLabel('System.BuildVersion')[:2]) addon_instance = xbmcaddon.Addon() addon_path = addon_instance.getAddonInfo('path') PLUGINPATH = xbmc.translatePath(os.path.join(addon_path)) download_utils = DownloadUtils() home_window = HomeWindow() class ItemDetails(): name = None id = None path = None
import httplib import hashlib import ssl import StringIO import gzip import json from urlparse import urlparse import urllib from datetime import datetime from kodi_utils import HomeWindow from clientinfo import ClientInformation from simple_logging import SimpleLogging from translation import i18n log = SimpleLogging(__name__) def getDetailsString(): addonSettings = xbmcaddon.Addon() include_media = addonSettings.getSetting("include_media") == "true" include_people = addonSettings.getSetting("include_people") == "true" include_overview = addonSettings.getSetting("include_overview") == "true" detailsString = "DateCreated,EpisodeCount,SeasonCount,Path,Genres,Studios,Etag,Taglines" if include_media: detailsString += ",MediaStreams" if include_people: detailsString += ",People"