2015-01-09 14:11:21 +03:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#
|
|
|
|
try:
|
|
|
|
import xbmcaddon
|
2015-12-23 18:26:19 +03:00
|
|
|
from functions import log, debug
|
2015-01-09 14:11:21 +03:00
|
|
|
|
|
|
|
__settings__ = xbmcaddon.Addon("plugin.video.torrenter")
|
2016-02-24 19:48:46 +03:00
|
|
|
force_debug = __settings__.getSetting("debug")
|
2015-01-09 14:11:21 +03:00
|
|
|
except:
|
2016-02-24 19:48:46 +03:00
|
|
|
force_debug = 'true'
|
2015-01-09 14:11:21 +03:00
|
|
|
|
|
|
|
|
|
|
|
def Log(msg, force=False):
|
2015-12-23 18:26:19 +03:00
|
|
|
log(msg)
|
2015-01-09 14:11:21 +03:00
|
|
|
|
|
|
|
|
|
|
|
def Debug(msg, force=False):
|
2016-02-24 19:48:46 +03:00
|
|
|
if force_debug == 'true' or force:
|
2015-12-23 18:26:19 +03:00
|
|
|
debug(msg, True)
|
2015-01-09 14:11:21 +03:00
|
|
|
|
|
|
|
|
|
|
|
def Info(msg, force=False):
|
2016-02-24 19:48:46 +03:00
|
|
|
if force_debug == 'true' or force:
|
2015-12-23 18:26:19 +03:00
|
|
|
debug(msg, True)
|
2015-01-09 14:11:21 +03:00
|
|
|
|
|
|
|
|
|
|
|
def Warn(msg, force=False):
|
2016-02-24 19:48:46 +03:00
|
|
|
if force_debug == 'true' or force:
|
2015-12-23 18:26:19 +03:00
|
|
|
debug(msg, True)
|