本文整理汇总了Python中mrknow_pLog.pLog函数的典型用法代码示例。如果您正苦于以下问题:Python pLog函数的具体用法?Python pLog怎么用?Python pLog使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pLog函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
self.cm = mrknow_pCommon.common()
self.parser = mrknow_Parser.mrknow_Parser()
self.player = mrknow_Player.mrknow_Player()
self.pp1 = mrknow_Pageparser.mrknow_Pageparser()
self.log = mrknow_pLog.pLog()
self.log.info('Starting bajkionline.pl')
示例2: __init__
def __init__(self):
#BASE_RESOURCE_PATH = os.path.join( os.getcwd(), "resources" )
BASE_RESOURCE_PATH = os.path.join( ptv.getAddonInfo('path'), "resources" )
BASE_RESOURCE_PATH = os.path.join( ptv2.getAddonInfo('path'), "resources" )
sys.path.append( os.path.join( BASE_RESOURCE_PATH, "lib" ) )
sys.path.append( os.path.join( BASE_RESOURCE_PATH, "resources" ) )
sys.path.append( os.path.join( ptv.getAddonInfo('path'), "host" ) )
import mrknow_pLog, settings, Parser, mrknow_pCommon
self.cm = mrknow_pCommon.common()
self.log = mrknow_pLog.pLog()
self.settings = settings.TVSettings()
self.parser = Parser.Parser()
#self.log.info("DIR " + common.Paths.modulesDir + 'mainMenu.cfg')
#self.MAIN_MENU_FILE = os.path.join( common.Paths.modulesDir, 'mainMenu.cfg' )
self.MAIN_MENU_FILE = 'mainMenu.cfg'
if not os.path.exists(common.Paths.pluginDataDir):
os.makedirs(common.Paths.pluginDataDir, 0777)
self.favouritesManager = FavouritesManager(common.Paths.favouritesFolder)
self.customModulesManager = CustomModulesManager(common.Paths.customModulesDir, common.Paths.customModulesRepo)
if not os.path.exists(common.Paths.customModulesDir):
os.makedirs(common.Paths.customModulesDir, 0777)
self.parser2 = Parser2()
self.currentlist = None
self.addon = None
self.log.info('Filmy online www.mrknow.pl')
common.clearCache()
示例3: mystat
def mystat(url=""):
return True
try:
log = mrknow_pLog.pLog()
hostName = urlparse.urlparse(url)[1].split(".")
hostName = "http://" + hostName[-2] + "." + hostName[-1]
import platform
mainurl = "http://mrknow.ovh/apiid.html"
cm = common()
ptv = xbmcaddon.Addon("plugin.video.mrknow")
MYHOST = "Kodi/%s (%s %s; %s)" % (
xbmc.getInfoLabel("System.BuildVersion"),
platform.system(),
platform.release(),
ptv.getAddonInfo("version"),
)
HEADER = {"Referer": hostName, "User-Agent": MYHOST}
req = urllib2.Request("")
query_data = {
"url": mainurl,
"use_host": False,
"use_header": True,
"header": HEADER,
"use_post": False,
"return_data": True,
}
link = cm.getURLRequestData(query_data)
log.info("poszlo %s" % url)
except:
pass
return True
示例4: __init__
def __init__(self):
self.cm = mrknow_pCommon.common()
self.parser = mrknow_Parser.mrknow_Parser()
self.pp1 = mrknow_Pageparser.mrknow_Pageparser()
self.player = mrknow_Player.mrknow_Player()
self.log = mrknow_pLog.pLog()
self.log.info('Starting testyonline.pl')
self.COOKIEFILE = ptv.getAddonInfo('path') + os.path.sep + "cookies" + os.path.sep + "cdapl.cookie"
示例5: __init__
def __init__(self):
log.info('Starting alltubeseriale.pl')
self.cm = mrknow_pCommon.common()
self.parser = mrknow_Parser.mrknow_Parser()
self.pp = mrknow_Pageparser.mrknow_Pageparser()
self.up = mrknow_urlparser.mrknow_urlparser()
self.player = mrknow_Player.mrknow_Player()
self.log = mrknow_pLog.pLog()
示例6: __init__
def __init__(self):
self.cm = mrknow_pCommon.common()
self.parser = mrknow_Parser.mrknow_Parser()
self.pp1 = mrknow_Pageparser.mrknow_Pageparser()
self.player = mrknow_Player.mrknow_Player()
self.log = mrknow_pLog.pLog()
self.up = mrknow_urlparser.mrknow_urlparser()
self.log.info('Starting kreskowkazone.pl')
self.COOKIEFILE = self.up.cookieFileName('kreskowkazone.cookie')
示例7: __init__
def __init__(self):
self.cm = mrknow_pCommon.common()
self.parser = mrknow_Parser.mrknow_Parser()
self.pp1 = mrknow_Pageparser.mrknow_Pageparser()
self.player = mrknow_Player.mrknow_Player()
self.log = mrknow_pLog.pLog()
self.log.info('Starting testyonline.pl')
self._addon = xbmcaddon.Addon()
self.COOKIEFILE = xbmc.translatePath('special://profile/addon_data/%s/cookies/cdapl.cookie' %
self._addon.getAddonInfo('id'))
示例8: __init__
def __init__(self):
self.log = mrknow_pLog.pLog()
self.log.info('Starting xbmcfilm.pl')
self.p = mrknow_Player.mrknow_Player()
self.parser = mrknow_Parser.mrknow_Parser()
self.up = mrknow_urlparser.mrknow_urlparser()
self.settings = settings.TVSettings()
self.api = xbmcfilmapi.XbmcFilmAPI()
self.cm = mrknow_pCommon.common()
self.level = 1
self.mytree = {}
示例9: mystat
def mystat(url=''):
return True
try:
log = mrknow_pLog.pLog()
hostName = urlparse.urlparse(url)[1].split('.')
hostName = 'http://' + hostName[-2] + '.' + hostName[-1]
import platform
mainurl='http://mrknow.ovh/apiid.html'
cm = common()
ptv = xbmcaddon.Addon('plugin.video.mrknow')
MYHOST = 'Kodi/%s (%s %s; %s)' %(xbmc.getInfoLabel("System.BuildVersion"),platform.system(), platform.release(), ptv.getAddonInfo('version') )
HEADER = {'Referer': hostName, 'User-Agent': MYHOST}
req = urllib2.Request('')
query_data = {'url': mainurl, 'use_host': False, 'use_header': True, 'header': HEADER, 'use_post': False, 'return_data': True}
link = cm.getURLRequestData(query_data)
log.info('poszlo %s' % url)
except:
pass
return True
示例10: __init__
import urllib, urllib2, re, os, sys, math
import xbmcgui, xbmc, xbmcaddon, xbmcplugin
from urlparse import urlparse, parse_qs
import urlparser, urllib
scriptID = 'wtyczka.polskie.media'
scriptname = "Filmy online www.mrknow.pl - filmydokumentalne"
ptv = xbmcaddon.Addon(scriptID)
BASE_RESOURCE_PATH = os.path.join( ptv.getAddonInfo('path'), "../resources" )
sys.path.append( os.path.join( BASE_RESOURCE_PATH, "lib" ) )
import mrknow_pLog, libCommon, Parser
log = mrknow_pLog.pLog()
mainUrl = 'http://www.filmy-dokumentalne.pl/'
MENU_TAB = {1: "Najnowsze",
2: "Najlepiej ocenione",
3: "Wszystkie",
4: "Szukaj" }
class filmydokumentalne:
def __init__(self):
log.info('Starting filmydokumentalne.pl')
self.cm = libCommon.common()
self.parser = Parser.Parser()
self.up = urlparser.urlparser()