import uservar import re import urllib2 import urlparse import urllib import xbmc import uploader from uploader import UploaderError from resources.libs import wizard as wiz from xbmc import getCondVisibility as condition, translatePath as translate, log as xbmc_log DIALOG = xbmcgui.Dialog() AddonID = uservar.ADDON_ID addon = wiz.addonId(AddonID) ADDON_TITLE = wiz.addonInfo(AddonID,'name') ADDON_VERSION = wiz.addonInfo(AddonID,'version') DEBUG = False STRINGS = { 'do_upload': 30000, 'upload_id': 30001, 'upload_url': 30002, 'no_email_set': 30003, 'email_sent': 30004 } BASE_URL = 'https://logs.tvaddons.ag/' EXPIRATION = 2592000 REPLACES = ( ('//.+?:.+?@', '//USER:PASSWORD@'),
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. # # http://www.gnu.org/copyleft/gpl.html # ################################################################################ import xbmc, xbmcaddon, xbmcgui, xbmcplugin, os, sys, xbmcvfs, glob import shutil import urllib2, urllib import re import uservar from datetime import date, datetime, timedelta from resources.libs import extract, downloader, notify, loginit, debridit, traktit, skinSwitch, uploadLog, wizard as wiz ADDON_ID = uservar.ADDON_ID ADDONTITLE = uservar.ADDONTITLE ADDON = wiz.addonId(ADDON_ID) VERSION = wiz.addonInfo(ADDON_ID, 'version') ADDONPATH = wiz.addonInfo(ADDON_ID, 'path') ADDONID = wiz.addonInfo(ADDON_ID, 'id') DIALOG = xbmcgui.Dialog() DP = xbmcgui.DialogProgress() HOME = xbmc.translatePath('special://home/') PROFILE = xbmc.translatePath('special://profile/') KODIHOME = xbmc.translatePath('special://xbmc/') ADDONS = os.path.join(HOME, 'addons') KODIADDONS = os.path.join(KODIHOME, 'addons') USERDATA = os.path.join(HOME, 'userdata') PLUGIN = os.path.join(ADDONS, ADDON_ID) PACKAGES = os.path.join(ADDONS, 'packages') ADDONDATA = os.path.join(USERDATA, 'addon_data', ADDON_ID) FANART = os.path.join(ADDONPATH, 'fanart.jpg') ICON = os.path.join(ADDONPATH, 'icon.png')
import xbmc, xbmcaddon, xbmcgui, xbmcplugin, os, sys, xbmcvfs, glob import shutil import urllib2,urllib import re import uservar from datetime import date, datetime, timedelta from resources.libs import extract, downloader, notify, debridit, traktit, skinSwitch, uploadLog, wizard as wiz ADDON_ID = uservar.ADDON_ID ADDONTITLE = uservar.ADDONTITLE ADDON = wiz.addonId(ADDON_ID) VERSION = wiz.addonInfo(ADDON_ID,'version') DIALOG = xbmcgui.Dialog() DP = xbmcgui.DialogProgress() HOME = xbmc.translatePath('special://home/') PROFILE = xbmc.translatePath('special://profile/') ADDONS = os.path.join(HOME, 'addons') USERDATA = os.path.join(HOME, 'userdata') PLUGIN = os.path.join(ADDONS, ADDON_ID) PACKAGES = os.path.join(ADDONS, 'packages') ADDONDATA = os.path.join(USERDATA, 'addon_data', ADDON_ID) FANART = os.path.join(PLUGIN, 'fanart.jpg') ICON = os.path.join(PLUGIN, 'icon.png') ART = os.path.join(PLUGIN, 'resources', 'art') SKIN = xbmc.getSkinDir() BUILDNAME = wiz.getS('buildname') BUILDVERSION = wiz.getS('buildversion') BUILDLATEST = wiz.getS('latestversion') BUILDCHECK = wiz.getS('lastbuildcheck') AUTOCLEANUP = wiz.getS('autoclean') AUTOCACHE = wiz.getS('clearcache')
# $$$$$$$$$$ $$ $$$$$$ # # $$$$$$$$$$$ # ############################################################################ """ ``pyxbmct.addonwindow`` module contains all classes and constants of PyXBMCt framework """ import os import xbmc import xbmcgui from xbmcaddon import Addon import uservar from resources.libs import wizard as wiz ADDON_ID = uservar.ADDON_ID ADDONPATH = wiz.addonInfo(ADDON_ID, 'path') _images = os.path.join(ADDONPATH, 'resources', 'skins', 'DefaultSkin', 'media') # Text alighnment constants. Mixed variants are obtained by bit OR (|) ALIGN_LEFT = 0 """Align left""" ALIGN_RIGHT = 1 """Align right""" ALIGN_CENTER_X = 2 """Align center horisontally""" ALIGN_CENTER_Y = 4 """Align center vertically""" ALIGN_CENTER = 6 """Align center by both axis""" ALIGN_TRUNCATED = 8 """Align truncated"""
import xbmc, xbmcaddon, xbmcgui, xbmcplugin, os, sys, xbmcvfs, glob import shutil import urllib2,urllib import re import time from resources.libs import wizard as wiz from datetime import date, datetime, timedelta ADDON_ID = xbmcaddon.Addon().getAddonInfo('id') ADDON = wiz.addonId(ADDON_ID) VERSION = wiz.addonInfo(ADDON_ID,'version') ADDONPATH = wiz.addonInfo(ADDON_ID,'path') ADDONTITLE = 'SalonDigital' DIALOG = xbmcgui.Dialog() DP = xbmcgui.DialogProgress() HOME = xbmc.translatePath('special://home/') ADDONS = os.path.join(HOME, 'addons') USERDATA = os.path.join(HOME, 'userdata') PLUGIN = os.path.join(ADDONS, ADDON_ID) PACKAGES = os.path.join(ADDONS, 'packages') ADDONDATA = os.path.join(USERDATA, 'addon_data', ADDON_ID) FANART = os.path.join(ADDONPATH, 'fanart.jpg') ICON = os.path.join(ADDONPATH, 'icon.png') ART = os.path.join(ADDONPATH, 'resources', 'art') SKINFOLD = os.path.join(ADDONPATH, 'resources', 'skins', 'DefaultSkin', 'media') ADVANCED = os.path.join(USERDATA, 'advancedsettings.xml') NOTIFY = wiz.getS('notify') NOTEID = wiz.getS('noteid') NOTEDISMISS = wiz.getS('notedismiss') BUILDNAME = wiz.getS('buildname') BUILDVERSION = wiz.getS('buildversion')
import uservar import re import urllib2 import urlparse import urllib import xbmc import uploader from uploader import UploaderError from resources.libs import wizard as wiz from xbmc import getCondVisibility as condition, translatePath as translate, log as xbmc_log DIALOG = xbmcgui.Dialog() AddonID = uservar.ADDON_ID addon = wiz.addonId(AddonID) ADDON_TITLE = wiz.addonInfo(AddonID, 'name') ADDON_VERSION = wiz.addonInfo(AddonID, 'version') DEBUG = False STRINGS = { 'do_upload': 30000, 'upload_id': 30001, 'upload_url': 30002, 'no_email_set': 30003, 'email_sent': 30004 } BASE_URL = 'https://logs.tvaddons.ag/' EXPIRATION = 2592000 REPLACES = ( ('//.+?:.+?@', '//USER:PASSWORD@'),
import xbmc, xbmcaddon, xbmcgui, xbmcplugin, os, sys, xbmcvfs, glob import shutil import urllib2, urllib import re import uservar from datetime import date, datetime, timedelta from resources.libs import extract, downloader, notify, loginit, debridit, traktit, skinSwitch, uploadLog, wizard as wiz ADDON_ID = uservar.ADDON_ID ADDONTITLE = uservar.ADDONTITLE ADDON = wiz.addonId(ADDON_ID) VERSION = wiz.addonInfo(ADDON_ID, 'version') DIALOG = xbmcgui.Dialog() DP = xbmcgui.DialogProgress() HOME = xbmc.translatePath('special://home/') PROFILE = xbmc.translatePath('special://profile/') ADDONS = os.path.join(HOME, 'addons') USERDATA = os.path.join(HOME, 'userdata') PLUGIN = os.path.join(ADDONS, ADDON_ID) PACKAGES = os.path.join(ADDONS, 'packages') ADDONDATA = os.path.join(USERDATA, 'addon_data', ADDON_ID) FANART = os.path.join(PLUGIN, 'fanart.jpg') ICON = os.path.join(PLUGIN, 'icon.png') ART = os.path.join(PLUGIN, 'resources', 'art') SKIN = xbmc.getSkinDir() BUILDNAME = wiz.getS('buildname') DEFAULTSKIN = wiz.getS('defaultskin') DEFAULTNAME = wiz.getS('defaultskinname') DEFAULTIGNORE = wiz.getS('defaultskinignore') BUILDVERSION = wiz.getS('buildversion') BUILDLATEST = wiz.getS('latestversion')