예제 #1
0
    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
0
    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
예제 #3
0
# *  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
# *
# */
sys.path.append( os.path.join ( os.path.dirname(__file__),'resources','lib') )
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
import joj
import xbmcprovider, xbmcutil
import util
import traceback,urllib2

__scriptid__   = 'plugin.video.joj.sk'
__scriptname__ = 'joj.sk'
__addon__ = ArchivCZSK.get_xbmc_addon(__scriptid__)
__language__   = __addon__.getLocalizedString

settings = {'quality':__addon__.getSetting('quality')}
provider = joj.JojContentProvider()

class XBMCJojContentProvider(xbmcprovider.XBMCMultiResolverContentProvider):
    def render_default(self, item):
        if item['type'] == 'showoff':
            item['title'] = item['title'] + '  (Nevys)'
        elif item['type'] == "showon7d":
            item['title'] = item['title'] + ' (7d)'
        if item['type'] == 'topvideo' or item['type'] == 'newvideo':
            self.render_video(item)
        else:
            self.render_dir(item)
예제 #4
0
import sys
import traceback
import m3u8

from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
try:
    from Plugins.Extensions.archivCZSK.engine.client import add_dir, add_video, getSearch, showError, showInfo, showWarning, log, getListInput, set_command
    from Plugins.Extensions.archivCZSK.resources.libraries import m3u8
except ImportError:
    showError("PrimaPlay vyzaduje novsiu verziu archivCZSK")

sys.path.append(os.path.join (os.path.dirname(__file__), 'libPrimaPlay'))

import PrimaPlay

_addon_ = ArchivCZSK.get_xbmc_addon('plugin.video.primaplay')
_scriptname_ = _addon_.getAddonInfo('name')
_version_ = _addon_.getAddonInfo('version')

###############################################################################
def _log(msg, level=0):
    if type(msg).__name__ == 'unicode':
        msg = msg.encode('utf-8')
    if level == 0:
        log.debug("[%s] %s" % (_scriptname_, msg.__str__()))
    else:
        log.error("[%s] %s" % (_scriptname_, msg.__str__()))

def logDbg(msg):
    _log(msg, level=0)
예제 #5
0
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):
예제 #6
0
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
0
import urllib2,urllib,re,os,string,time,base64,datetime
from urlparse import urlparse, urlunparse, parse_qs
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 NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0'
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' )
fanart = os.path.join( home, 'fanart.jpg' )

def OBSAH():
    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)
    addDir('TOP pořady','http://novaplus.nova.cz',9,icon,1)
    addDir('Poslední epizody','http://novaplus.nova.cz',8,icon,1)
    addDir('Nejsledovanější','http://novaplus.nova.cz',6,icon,1)
    addDir('Nova Plus Originals','http://novaplus.nova.cz',10,icon,1)
    addDir('Doporučujeme','http://novaplus.nova.cz',7,icon,1)
예제 #8
0
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=\'([^']+)"
예제 #9
0
 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)
예제 #10
0
 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)
예제 #11
0
# *
# *  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))
예제 #12
0
import os
import cookielib
import decimal
import random

import aes
import simplejson as json
from parseutils import *

from util import addDir, addLink, showInfo, showError, showWarning
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK

__baseurl__ = 'http://voyo.markiza.sk'
_UserAgent_ = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0'

__settings__ = ArchivCZSK.get_xbmc_addon('plugin.video.voyosk')
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')

user_php_url = 'http://voyo.markiza.sk/bin/eshop/ws/user.php'
wallet_php_url = 'http://voyo.markiza.sk/bin/eshop/ws/ewallet.php'
player_php_url = 'http://voyo.markiza.sk/bin/eshop/ws/plusPlayer.php'
livestream_php_url = 'http://voyo.markiza.sk/lbin/player/LiveStream.php'

MAX_PAGE_ENTRIES = 35
예제 #13
0
            image,
            infoLabels=infoLabels,
            menuItems=menuItems,
            video_item=video_item)


def addLink(name, url, image, *args, **kwargs):
    add_video(name, url, None, image)


import HTMLParser
from datetime import datetime, timedelta

__baseurl__ = 'http://tv.sme.sk'
__piano_d__ = '?piano_d=1'
__addon__ = ArchivCZSK.get_xbmc_addon('plugin.video.tv.sme.sk')
__cwd__ = __addon__.getAddonInfo('path')
__scriptname__ = 'plugin.video.tv.sme.sk'
icon = os.path.join(__cwd__, 'icon.png')
nexticon = os.path.join(__cwd__, 'nextpage.png')
video_quality = int(__addon__.getSetting('quality'))

VQ_SELECT = 0
VQ_SD = 1
VQ_HD = 2


def log(msg, level='debug'):
    if type(msg).__name__ == 'unicode':
        msg = msg.encode('utf-8', 'ignore')
    if level == 'debug':
예제 #14
0
from urlparse import urlparse, urlunparse, parse_qs
import aes
import json
try:
    import hashlib
except ImportError:
    import md5

from Components.config import config
from parseutils import *
from util import addDir, addLink, addSearch, getSearch
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK

__baseurl__ = 'http://videoarchiv.markiza.sk'
_UserAgent_ = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0'
addon =  ArchivCZSK.get_xbmc_addon('plugin.video.dmd-czech.markiza')
profile = addon.getAddonInfo('profile')
__settings__ = addon
home = __settings__.getAddonInfo('path')
icon =  os.path.join( home, 'icon.png' )
fanart = os.path.join( home, 'fanart.jpg' )
loginurl = 'https://moja.markiza.sk/'
settings = {'username': __settings__.get_setting('markiza_user'), 'password': __settings__.get_setting('markiza_pass')}
cookiepath = os.path.join(config.plugins.archivCZSK.logPath.getValue(),'markiza.cookies')

class loguj(object):
    ERROR = 0
    INFO = 1
    DEBUG = 2
    mode = INFO
예제 #15
0
import os, re, sys, urllib, urllib2, traceback, cookielib, time, socket
from htmlentitydefs import name2codepoint as n2cp
import simplejson as json
import util
from Plugins.Extensions.archivCZSK.engine import client
from Plugins.Extensions.archivCZSK.archivczsk import ArchivCZSK
from resolver import rslog

try:
    from Plugins.Extensions.archivCZSK.settings import USER_AGENT
    UA = USER_AGENT
except:
    UA = 'Mozilla/6.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.5) Gecko/2008092417 Firefox/3.0.3'
    pass

__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))
예제 #16
0
# *  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",
예제 #17
0
# -*- 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):