def __init__(self):
     self.up = urlparser.urlparser()
     self.cm = common()
     self.history = CSearchHistoryHelper('Wgrane')
     # temporary data
     self.currList = []
     self.currItem = {}
Example #2
0
    def __init__(self, params={}):
        self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'
        self.HEADER = {
            'User-Agent': self.USER_AGENT,
            'Connection': 'keep-alive'
        }
        if '' != params.get('cookie', ''):
            self.COOKIE_FILE = GetCookieDir(params['cookie'])
            self.defaultParams = {
                'header': self.HEADER,
                'use_cookie': True,
                'load_cookie': True,
                'save_cookie': True,
                'cookiefile': self.COOKIE_FILE
            }
        else:
            self.defaultParams = {'header': self.HEADER}
        self.sessionEx = MainSessionWrapper()
        self.up = urlparser()
        self.ts_urlpars = ts_urlparser()
        proxyURL = params.get('proxyURL', '')
        useProxy = params.get('useProxy', False)
        self.cm = common(proxyURL, useProxy)

        self.currList = []
        self.currItem = {}
        if '' != params.get('history', ''):
            self.history = CSearchHistoryHelper(
                params['history'], params.get('history_store_type', False))
        self.moreMode = False
Example #3
0
    def __init__(self):
        CBaseHostClass.__init__(self, {
            'history': 'ninateka',
            'cookie': 'ninateka.cookie'
        })
        self.DEFAULT_ICON_URL = 'http://ninateka.pl/Content/images/ninateka_logo.png'

        self.menuHTML = ''
        self.refresh = False
        self.cm = common()
        self.history = CSearchHistoryHelper('ninateka')

        self.MAIN_URL = 'http://ninateka.pl/'
        self.VIDEOS_URL = self.getFullUrl(
            'filmy?MediaType=video&Paid=False&CategoryCodenames=')
        self.SEARCH_URL = self.VIDEOS_URL + '&SearchQuery='

        #DEFAULT_GET_PARAM = 'MediaType=video&Paid=False'

        self.MAIN_CAT_TAB = [{
            'category': 'list_all',
            'title': 'Wszystkie',
            'url': self.VIDEOS_URL
        }, {
            'category': 'list_cats',
            'title': 'Kategorie',
            'url': self.MAIN_URL
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True,
        }, {
            'category': 'search_history',
            'title': _('Search history'),
        }]
 def __init__(self):
     printDBG('Host __init__ begin')
     self.exSession = MainSessionWrapper()
     self.COOKIEFILE = GetCookieDir('scseriale.cookie')
     self.cm = common()
     self.currList = []
     self.up = urlparser()
     self.history = CSearchHistoryHelper('wspolne')
     printDBG('Host __init__ end')
Example #5
0
    def __init__(self):
        self.menuHTML = ''
        self.refresh = False
        self.cm = common()
        self.history = CSearchHistoryHelper('ninateka')

        # temporary data
        self.currList = []
        self.currItem = {}
Example #6
0
    def __init__(self):
        self.cm = common()
        self.history = CSearchHistoryHelper('fighttube')
        self.ytp = YouTubeParser()
        self.ytformats = config.plugins.iptvplayer.ytformat.value

        # temporary data
        self.currList = []
        self.currItem = {}
Example #7
0
 def __init__(self):
     self.up = urlparser.urlparser()
     self.cm = pCommon.common()
     self.history = CSearchHistoryHelper('iptak')
     # temporary data
     self.currList = []
     self.currItem = {}
     
     # for cache to speedUp
     self.menuData = None
Example #8
0
    def __init__(self):

        printDBG('Loading ' + serialeo.SERVICE)

        self.cm = common()
        self.up = urlparser.urlparser()
        self.history = CSearchHistoryHelper('serialeo')

        self.tabMenu = []
        self.currList = []
Example #9
0
    def __init__(self, params={}):
        self.sessionEx = MainSessionWrapper() 
        self.up = urlparser()
        
        proxyURL = params.get('proxyURL', '')
        useProxy = params.get('useProxy', False)
        self.cm = common(proxyURL, useProxy)

        self.currList = []
        self.currItem = {}
        if '' != params.get('history', ''):
            self.history = CSearchHistoryHelper(params['history'])
        if '' != params.get('cookie', ''):
            self.COOKIE_FILE = GetCookieDir(params['cookie'])
        self.moreMode = False
Example #10
0
    def __init__(self, params={}):
        self.sessionEx = MainSessionWrapper()
        self.up = urlparser()

        proxyURL = params.get('proxyURL', '')
        useProxy = params.get('useProxy', False)
        if 'MozillaCookieJar' == params.get('cookie_type', ''):
            self.cm = common(proxyURL, useProxy, True)
        else:
            self.cm = common(proxyURL, useProxy)

        self.currList = []
        self.currItem = {}
        if '' != params.get('history', ''):
            self.history = CSearchHistoryHelper(
                params['history'], params.get('history_store_type', False))
        if '' != params.get('cookie', ''):
            self.COOKIE_FILE = GetCookieDir(params['cookie'])
        self.moreMode = False
        self.minPyVer = params.get('min_py_ver', 0)