本文整理汇总了Python中Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK.get_xbmc_addon方法的典型用法代码示例。如果您正苦于以下问题:Python ArchivCZSK.get_xbmc_addon方法的具体用法?Python ArchivCZSK.get_xbmc_addon怎么用?Python ArchivCZSK.get_xbmc_addon使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK
的用法示例。
在下文中一共展示了ArchivCZSK.get_xbmc_addon方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: saveVipDaysToSettings
# 需要导入模块: from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK [as 别名]
# 或者: from Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK import get_xbmc_addon [as 别名]
def saveVipDaysToSettings(self):
vipDaysLeft = "-99"
try:
if self.token and self.loginOk:
udata = userData()
vipDaysLeft = udata.vipDaysLeft
else:
vipDaysLeft = "-2"
except:
pass
# save to settings
try:
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
addon = ArchivCZSK.get_xbmc_addon('plugin.video.stream-cinema')
addon.setSetting('wsvipdays', vipDaysLeft)
except:
pass
示例2: vp8_youtube_filter
# 需要导入模块: from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK [as 别名]
# 或者: from Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK import get_xbmc_addon [as 别名]
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# * GNU General Public License for more details.
# *
# * You should have received a copy of the GNU General Public License
# * along with this program; see the file COPYING. If not, write to
# * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# * http://www.gnu.org/copyleft/gpl.html
# *
# */
import os
import util, xbmcprovider, xbmcutil, resolver
from provider import ResolveException
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
__scriptid__ = 'plugin.video.pohadkar.cz'
__scriptname__ = 'Pohádkář.cz'
__addon__ = ArchivCZSK.get_xbmc_addon(__scriptid__)
__language__ = __addon__.getLocalizedString
__settings__ = __addon__.getSetting
sys.path.append(os.path.join (__addon__.getAddonInfo('path'), 'resources', 'lib'))
import pohadkar
settings = {'downloads':__addon__.getSetting('downloads'), 'quality':__addon__.getSetting('quality')}
def vp8_youtube_filter(stream):
# some embedded devices running xbmc doesnt have vp8 support, so we
# provide filtering ability for youtube videos
#======================================================================
# 5: "240p h263 flv container",
# 18: "360p h264 mp4 container | 270 for rtmpe?",
# 22: "720p h264 mp4 container",
示例3: OBSAH
# 需要导入模块: from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK [as 别名]
# 或者: from Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK import get_xbmc_addon [as 别名]
import urllib2,urllib,re,os,string,time,base64,datetime
from urlparse import urlparse
import aes
try:
import hashlib
except ImportError:
import md5
from parseutils import *
from util import addDir, addLink, addSearch, getSearch
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
__baseurl__ = 'http://novaplus.nova.cz'
__dmdbase__ = 'http://iamm.uvadi.cz/xbmc/voyo/'
_UserAgent_ = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
addon = ArchivCZSK.get_xbmc_addon('plugin.video.dmd-czech.novaplus')
profile = addon.getAddonInfo('profile')
__settings__ = addon
home = __settings__.getAddonInfo('path')
icon = os.path.join( home, 'icon.png' )
nexticon = os.path.join( home, 'nextpage.png' )
fanart = os.path.join( home, 'fanart.jpg' )
nova_service_url = 'http://cdn-lb.cdn.cra.cz/'
nova_app_id = 'nova-vod'
def OBSAH():
addDir('Nejnovější','http://novaplus.nova.cz',6,icon,1)
addDir('Seriály a pořady','http://novaplus.nova.cz/porady/',5,icon,1)
addDir('Televizní noviny','http://novaplus.nova.cz/porad/televizni-noviny',1,icon,1)
def NEW(url,page):
示例4: writeSetting
# 需要导入模块: from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK [as 别名]
# 或者: from Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK import get_xbmc_addon [as 别名]
def writeSetting(self, id, val):
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
addon = ArchivCZSK.get_xbmc_addon('plugin.video.stream-cinema')
addon.setSetting(id, val)
示例5: hasattr
# 需要导入模块: from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK [as 别名]
# 或者: from Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK import get_xbmc_addon [as 别名]
# *
# * You should have received a copy of the GNU General Public License
# * along with this program; see the file COPYING. If not, write to
# * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# * http://www.gnu.org/copyleft/gpl.html
# *
# */
import os, re, sys, urllib, urllib2, traceback, cookielib, time, socket
from htmlentitydefs import name2codepoint as n2cp
import simplejson as json
import util
UA = 'Mozilla/6.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008092417 Firefox/3.0.3'
from Plugins.Extensions.archivCZSK.engine import client
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
__addon__ = ArchivCZSK.get_xbmc_addon('script.module.stream.resolver')
__lang__ = __addon__.getLocalizedString
client_version = 0
if hasattr(client,'getVersion'):
client_version = client.getVersion()
# compatibility for older version
if isinstance(client_version, basestring):
client_version = 1
##
# initializes urllib cookie handler
def init_urllib():
cj = cookielib.LWPCookieJar()
opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cj))
示例6:
# 需要导入模块: from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK [as 别名]
# 或者: from Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK import get_xbmc_addon [as 别名]
import simplejson as json
from util import addDir, addLink, showInfo, showError, showWarning
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
sys.path.append(os.path.join (os.path.dirname(__file__), 'resources', 'lib'))
try:
import voyo27 as voyo
except ImportError:
import voyo26 as voyo
__baseurl__ = 'http://voyo.nova.cz'
_UserAgent_ = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0'
__settings__ = ArchivCZSK.get_xbmc_addon('plugin.video.dmd-czech.voyo')
home = __settings__.getAddonInfo('path')
icon = os.path.join(home, 'icon.png')
nexticon = os.path.join(home, 'nextpage.png')
username = __settings__.getSetting('username')
password = __settings__.getSetting('password')
dev_hash = __settings__.getSetting('devhash')
secret_token = __settings__.getSetting('secret_token')
user_php_url = __baseurl__ + '/bin/eshop/ws/user.php'
wallet_php_url = __baseurl__ + '/bin/eshop/ws/ewallet.php'
player_php_url = __baseurl__ + '/bin/eshop/ws/plusPlayer.php'
MAX_PAGE_ENTRIES = 34
PAGER_RE = "<span class=\'next next_set\'><a href=\'([^']+)"
示例7: log
# 需要导入模块: from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK [as 别名]
# 或者: from Plugins.Extensions.archivCZSK.archivczsk.ArchivCZSK import get_xbmc_addon [as 别名]
# -*- coding: utf-8 -*-
import urllib2,urllib,re,os
__baseurl__ = 'http://tv.sme.sk'
_UserAgent_ = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
from util import addDir, addLink
from util import log as ACZSKLog
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
import HTMLParser
from datetime import datetime,timedelta
__settings__ = ArchivCZSK.get_xbmc_addon('plugin.video.tv.sme.sk')
__cwd__ = __settings__.getAddonInfo('path')
__scriptname__ = 'plugin.video.tv.sme.sk'
icon = os.path.join(__cwd__, 'icon.png')
nexticon = os.path.join(__cwd__, 'nextpage.png')
def log(msg, level='debug'):
if type(msg).__name__=='unicode':
msg = msg.encode('utf-8','ignore')
if level == 'debug':
logfnc = ACZSKLog.debug
else:
logfnc = ACZSKLog.error
logfnc("[%s] %s"%(__scriptname__,msg))
def logDbg(msg):
log(msg,level='debug')
def logErr(msg):