Exemple #1
0
    def __init__(self):
        proxyUrl = config.plugins.iptvplayer.proxyurl.value
        useProxy = config.plugins.iptvplayer.proxyOnet.value

        CBaseHostClass.__init__(
            self, {
                'proxyURL': proxyUrl,
                'useProxy': useProxy,
                'history': 'vod.pl',
                'cookie': 'vod.pl.cookie',
                'cookie_type': 'MozillaCookieJar'
            })
        self.DEFAULT_ICON_URL = 'https://ocdn.eu/static/ucs/ZTc7MDA_/3981e069a1f7f560017885aaad40ea1a/assets/img/logo.png'
        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,
            'DNT': '1',
            'Accept': 'text/html'
        }
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})
        self.MAIN_URL = 'https://vod.pl/'
        self.cacheFilters = {}
        self.cacheFiltersKeys = []
        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.MAIN_CAT_TAB = [{
            'category': 'list_filters',
            'title': _('Movies'),
            'url': self.getFullUrl('filmy'),
            'f_element': 'SiteFilmy',
        }, {
            'category': 'list_items',
            'title': _('Series'),
            'url': self.getFullUrl('seriale'),
            'f_element': 'SiteSeriale',
        }, {
            'category': 'list_filters',
            'title': _('Programy onetu'),
            'url': self.getFullUrl('programy-onetu'),
            'f_element': 'SiteProgramyOnetu',
        }, {
            'category': 'list_filters',
            'title': _('Dokumentalne'),
            'url': self.getFullUrl('filmy-dokumentalne'),
            'f_element': 'SiteDokumenty',
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True,
        }, {
            'category': 'search_history',
            'title': _('Search history'),
        }]
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'yesmovies.to',
                'cookie': 'yesmovies.to.cookie',
                'cookie_type': 'MozillaCookieJar',
                'min_py_ver': (2, 7, 9)
            })
        self.defaultParams = {
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.DEFAULT_ICON_URL = 'https://cdn.yescdn.ru/images/logo.png'
        self.HEADER = {
            'User-Agent':
            'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0',
            'DNT': '1',
            'Accept': 'text/html'
        }
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})
        self.MAIN_URL = None
        self.cacheFilters = {}
        self.cacheLinks = {}
        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'LosMovies.tv', 'cookie':'LosMovies.cookie', 'cookie_type':'MozillaCookieJar'})
     self.defaultParams = {'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     
     self.DEFAULT_ICON_URL = 'https://superrepo.org/static/images/icons/original/xplugin.video.losmovies.png.pagespeed.ic.JtaWsQ6YWz.jpg'
     self.USER_AGENT = '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, 'DNT':'1', 'Accept': 'text/html'}
     self.AJAX_HEADER = dict(self.HEADER)
     self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest'} )
     self.MAIN_URL = 'http://los-movies.com/'
     self.cacheEpisodes = {}
     self.cacheLinks = {}
     self.defaultParams = {'header':self.HEADER, 'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     
     self.MAIN_CAT_TAB = [{'category':'list_cats',      'mode':'movie',   'title': 'Movies',           'url':self.getMainUrl()                         },
                          {'category':'list_cats',      'mode':'serie',   'title': 'TV Shows',         'url':self.getFullUrl('watch-popular-tv-shows') },
                          {'category':'list_top_cats',  'mode':'movie',   'title': 'Top Movie Lists',  'url':self.getFullUrl('top-movie-lists')        },
                          
                          {'category':'search',            'title': _('Search'), 'search_item':True,                                    },
                          {'category':'search_history',    'title': _('Search history'),                                                } 
                         ]
                         
     self.MAIN_SUB_CATS_TAB = [{'category':'list_abc',        'title': 'Alphabetically',                                  },
                               {'category':'list_categories', 'title': 'Genres',    'url':self.getFullUrl('movie-genres') },
                               {'category':'list_categories', 'title': 'Countries', 'url':self.getFullUrl('countries')    },
                              ]
Exemple #4
0
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'radiostacja.pl',
                'cookie': 'radiostacja.pl.cookie',
                'cookie_type': 'MozillaCookieJar'
            })
        self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'
        self.MAIN_URL = 'http://www.radiostacja.pl/'
        self.DEFAULT_ICON_URL = 'http://is3.mzstatic.com/image/thumb/Purple122/v4/82/c4/6f/82c46f38-3532-e414-530e-33e5d0be2614/source/392x696bb.jpg'
        self.HTTP_HEADER = {
            'User-Agent': self.USER_AGENT,
            'DNT': '1',
            'Accept': 'text/html',
            'Accept-Encoding': 'gzip, deflate',
            'Referer': self.getMainUrl(),
            'Origin': self.getMainUrl()
        }
        self.AJAX_HEADER = dict(self.HTTP_HEADER)
        self.AJAX_HEADER.update({
            'X-Requested-With': 'XMLHttpRequest',
            'Accept-Encoding': 'gzip, deflate',
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
            'Accept': '*/*',
            'Origin': self.getMainUrl()[:-1]
        })

        self.defaultParams = {
            'header': self.HTTP_HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }
        self.cache = {}
Exemple #5
0
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'maxtvgo.com',
                'cookie': 'maxtvgo.com.cookie',
                'cookie_type': 'MozillaCookieJar',
                'min_py_ver': (2, 7, 9)
            })
        self.DEFAULT_ICON_URL = 'https://maxtvgo.com/images/logo_37.png'
        self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'
        self.MAIN_URL = 'https://maxtvgo.com/'
        self.HTTP_HEADER = {
            'User-Agent': self.USER_AGENT,
            'DNT': '1',
            'Accept': 'text/html',
            'Accept-Encoding': 'gzip, deflate',
            'Referer': self.getMainUrl(),
            'Origin': self.getMainUrl()
        }
        self.AJAX_HEADER = dict(self.HTTP_HEADER)
        self.AJAX_HEADER.update({
            'X-Requested-With':
            'XMLHttpRequest',
            'Accept-Encoding':
            'gzip, deflate',
            'Content-Type':
            'application/x-www-form-urlencoded; charset=UTF-8',
            'Accept':
            'application/json, text/javascript, */*; q=0.01'
        })

        self.defaultParams = {
            'header': self.HTTP_HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.MAIN_CAT_TAB = [
            {
                'category': 'list_items',
                'title': 'MaxTVGo',
                'url': self.getFullUrl('/index.php')
            },
            {
                'category': 'list_yt_channel',
                'title': 'Max Kolonko - MaxTV',
                'url': 'https://www.youtube.com/user/Media2000Corp/videos'
            },
            {
                'category': 'list_yt_channel',
                'title': 'MaxTVNews',
                'url': 'https://www.youtube.com/user/MaxTVTUBE/videos'
            },
        ]
        self.ytp = YouTubeParser()
        self.loggedIn = None
        self.login = ''
        self.password = ''
    def __init__(self):
        CBaseHostClass.__init__(self, {
            'history': '  DardarkomCom.tv',
            'cookie': 'dardarkomcom.cookie'
        })
        self.defaultParams = {
            'with_metadata': True,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.HEADER = {'User-Agent': 'Mozilla/5.0', 'Accept': 'text/html'}
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.MAIN_URL = 'http://www.dardarkom.com/'
        self.DEFAULT_ICON_URL = "https://lh5.ggpht.com/xTFuZwF3HX9yPcDhbyCNnjDtZZ1l9qEwUVwoWsPW9Pxry9JsNLSPvWpbvL9waHbHMg=h900"

        self.MAIN_CAT_TAB = [{
            'category': 'search',
            'title': _('Search'),
            'search_item': True
        }, {
            'category': 'search_history',
            'title': _('Search history')
        }]

        self.cacheLinks = {}
Exemple #7
0
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'shoutcast.com',
                'cookie': 'shoutcast.com.cookie',
                'cookie_type': 'MozillaCookieJar'
            })
        self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'
        self.MAIN_URL = 'http://shoutcast.com/'
        self.DEFAULT_ICON_URL = 'http://wiki.shoutcast.com/images/b/bd/Shoutcast.png'
        self.HTTP_HEADER = {
            'User-Agent': self.USER_AGENT,
            'DNT': '1',
            'Accept': 'text/html',
            'Accept-Encoding': 'gzip, deflate',
            'Referer': self.getMainUrl(),
            'Origin': self.getMainUrl()
        }
        self.AJAX_HEADER = dict(self.HTTP_HEADER)
        self.AJAX_HEADER.update({
            'X-Requested-With': 'XMLHttpRequest',
            'Accept-Encoding': 'gzip, deflate',
            'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
            'Accept': '*/*',
            'Origin': self.getMainUrl()[:-1]
        })

        self.defaultParams = {
            'header': self.HTTP_HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }
        self.cacheGenres = {}
Exemple #8
0
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'movs4u.com', 'cookie':'movs4u.com.cookie', 'cookie_type':'MozillaCookieJar'})
     self.DEFAULT_ICON_URL = 'https://www.tvnow.de/styles/modules/header/tvnow.png'
     self.USER_AGENT = '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, 'DNT':'1', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Encoding':'gzip, deflate'}
     self.AJAX_HEADER = dict(self.HEADER)
     self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest'} )
     self.MAIN_URL = 'https://api.tvnow.de/v3/'
     self.cacheLinks = {}
     self.cacheAllAZ = []
     self.cacheAZ = {'list':[], 'cache':{}}
     self.defaultParams = {'header':self.HEADER, 'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
 
     self.MAIN_CAT_TAB = [{'category':'az',              'title': _('A-Z')},
                          {'category':'missed',          'title': _('Missed the program?')},
                          {'category':'channels',        'title': _('Channels')},
                          {'category':'list_cats',       'title': _('Categories')},
                         ]
     self.CHANNELS_TAB = [{'title':'RTL',      'f_channel':'rtl'},
                          {'title':'Vox',      'f_channel':'vox'},
                          {'title':'RTL 2',    'f_channel':'rtl2'},
                          {'title':'Nitro',    'f_channel':'nitro'},
                          {'title':'N-TV',     'f_channel':'ntv'},
                          {'title':'RTLplus',  'f_channel':'rtlplus'},
                          {'title':'Super RTL','f_channel':'superrtl'},
                         ]
Exemple #9
0
    def __init__(self):
        CBaseHostClass.__init__(self, {
            'history': 'Kinopokaz',
            'cookie': 'Kinopokaz.cookie'
        })
        self.catCache = []
        self.moonwalkParser = MoonwalkParser()
        self.hdgocc = HdgoccParser()
        self.HEADER = {'User-Agent': 'Mozilla/5.0', 'Accept': 'text/html'}
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.MAIN_URL = 'http://online-kinopokaz.ru/'
        self.DEFAULT_ICON_URL = "http://ipic.su/img/img7/fs/logi.1456142273.png"

        self.MAIN_CAT_TAB = [{
            'category': 'categories',
            'title': _('Movie categories'),
            'url': self.getMainUrl()
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True
        }, {
            'category': 'search_history',
            'title': _('Search history'),
        }]
    def __init__(self):
        CBaseHostClass.__init__(self, {'history':'mrpiracy.gq', 'cookie':'mrpiracygq.cookie', 'cookie_type':'MozillaCookieJar', 'min_py_ver':(2,7,9)})
        self.DEFAULT_ICON_URL = 'https://pbs.twimg.com/profile_images/790277002544766976/w_TjhbiK.jpg'
        self.USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:43.0) Gecko/20100101 Firefox/43.0'
        self.HEADER = {'User-Agent': self.USER_AGENT, 'DNT':'1', 'Accept': 'text/html'}
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest', 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'} )
        self.MAIN_URL = None
        
        self.cacheLinks    = {}
        self.cacheFilters  = {}
        self.cacheFiltersKeys = []
        self.defaultParams = {'header':self.HEADER, 'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
        
        self.cookiename  = ''
        self.cookievalue = ''
        self.username    = ''
        self.userid      = ''
        
        self.login    = ''
        self.password = ''
        
        self.loggedIn = False

        self.API = base64.b64decode('aHR0cDovL21wYXBpLm1sLw==')
        self.API_SITE = base64.b64decode('aHR0cDovL21wYXBpLm1sL2FwaS8=')
        self.SITE = base64.b64decode('aHR0cDovL21ycGlyYWN5LmdxLw==')
Exemple #11
0
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'allbox.tv', 'cookie':'allbox.tv.cookie', 'cookie_type':'MozillaCookieJar', 'min_py_ver':(2,7,9)})
     self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'
     self.MAIN_URL = 'https://allbox.tv/'
     self.DEFAULT_ICON_URL = 'https://allbox.tv/static/img/seriale_brak_foto.jpg?v=1'
     self.HTTP_HEADER = {'User-Agent': self.USER_AGENT, 'DNT':'1', 'Accept': 'text/html', 'Accept-Encoding':'gzip, deflate', 'Referer':self.getMainUrl(), 'Origin':self.getMainUrl()}
     self.AJAX_HEADER = dict(self.HTTP_HEADER)
     self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest', 'Accept-Encoding':'gzip, deflate', 'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8', 'Accept':'application/json, text/javascript, */*; q=0.01'} )
     
     self.cacheSearch = {}
     self.cacheEpisodes = {}
     self.cacheSeriesLetter = []
     self.cacheSetiesByLetter = {}
     
     self.cacheCartoonsLetter = []
     self.cacheCartoonsByLetter = {}
     
     self.cacheLinks    = {}
     self.defaultParams = {'header':self.HTTP_HEADER, 'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     
     self.MAIN_CAT_TAB = [{'category':'list_filters',       'title': _('Movies'),          'url':self.getFullUrl('/filmy-online') },
                          {'category':'list_items',         'title': _('Premieres'),       'url':self.getFullUrl('/premiery') },
                          {'category':'list_series_az',     'title': _('TV series'),       'url':self.getFullUrl('/seriale-online')},
                          {'category':'list_cartoons_az',   'title': _('Cartoons'),        'url':self.getFullUrl('/bajki-online')},
                          {'category':'list_filters',       'title': _('Ranking'),         'url':self.getFullUrl('/filmy-online,wszystkie,top')},
                          {'category':'list_live_channels', 'title': _('Live TV'),         'url':self.getFullUrl('/get_tv')},
                          
                          {'category':'search',           'title': _('Search'),          'search_item':True}, 
                          {'category':'search_history',   'title': _('Search history')},
                         ]
     self.loggedIn = None
     self.login    = ''
     self.password = ''
     self.loginMessage = ''
 def __init__(self):
     CBaseHostClass.__init__(
         self, {
             'history': 'kinox.to',
             'cookie': 'kinox.to.com.cookie',
             'cookie_type': 'MozillaCookieJar'
         })
     self.DEFAULT_ICON_URL = 'https://www.medienrecht-urheberrecht.de/images/Urteil_streaming-plattform.PNG'
     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,
         'DNT': '1',
         'Accept': 'text/html'
     }
     self.AJAX_HEADER = dict(self.HEADER)
     self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})
     self.MAIN_URL = None
     self.cacheFilters = {}
     self.cacheFiltersKeys = []
     self.cacheSubCategories = []
     self.cacheLangFlags = {'list': [], 'map': {}}
     self.cacheLinks = {}
     self.cacheSeasons = {}
     self.cacheNewTab = {}
     self.defaultParams = {
         'header': self.HEADER,
         'use_cookie': True,
         'load_cookie': True,
         'save_cookie': True,
         'cookiefile': self.COOKIE_FILE,
         'cookie_items': {
             'ListMode': 'cover',
             'CinemaMode': 'cover'
         }
     }
Exemple #13
0
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'otakufr.com',
                'cookie': 'otakufr.cookie',
                'cookie_type': 'MozillaCookieJar'
            })
        self.USER_AGENT = '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,
            'DNT': '1',
            'Accept': 'text/html'
        }
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.DEFAULT_ICON_URL = 'https://rocketdock.com/images/screenshots/thumbnails/21.png'
        self.MAIN_URL = None

        self.cacheABC = {}
        self.cacheSeries = []
        self.cachePrograms = []
        self.cacheLast = {}

        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }
        self._getHeaders = None
    def __init__(self):
        printDBG("SerialeNet.__init__")
        CBaseHostClass.__init__(self, {
            'history': 'SerialeNet',
            'cookie': 'serialenet.cookie'
        })

        self.DEFAULT_ICON_URL = 'http://3.bp.blogspot.com/_Gm9qKcXSvaM/S3X4VtoRfjI/AAAAAAAAAHw/I3ZTIK_DZlY/s200/MCj04421470000%5B1%5D.png'
        self.MAIN_URL = "http://serialnet.pl/"
        self.CAT_TAB = [{
            'category': 'abc_menu',
            'title': 'Alfabetycznie',
            'url': self.getMainUrl()
        }, {
            'category': 'last_update',
            'title': 'Ostatnio uzupełnione',
            'url': self.getMainUrl()
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True
        }, {
            'category': 'search_history',
            'title': _('Search history')
        }]
        self.seasonsCache = []
 def __init__(self):
     CBaseHostClass.__init__(self)
     self.MAIN_URL    = 'http://tele-wizja.ru/'
     self.HTTP_HEADER = { 'User-Agent':'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:21.0) Gecko/20100101 Firefox/21.0'}
     self.COOKIE_FILE = GetCookieDir('telewizjacom.cookie')
     self.http_params = {}
     self.useProxy    = False
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'mythewatchseries',
                'cookie': 'mythewatchseries.cookie',
                'cookie_type': 'MozillaCookieJar'
            })  #, 'min_py_ver':(2,7,9)
        self.USER_AGENT = 'Mozilla/5.0'
        self.HEADER = {'User-Agent': self.USER_AGENT, 'Accept': 'text/html'}
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.DEFAULT_ICON_URL = 'https://gowatchseries.io/img/icon/logo.png'
        self.MAIN_URL = None
        self.cacheLinks = {}
        self.cacheFilters = {}
        self.cacheFiltersKeys = []
Exemple #17
0
 def __init__(self):
     printDBG("Ekstraklasa.__init__")
     CBaseHostClass.__init__(
         self, {
             'proxyURL': config.plugins.iptvplayer.proxyurl.value,
             'useProxy': config.plugins.iptvplayer.ekstraklasa_proxy.value
         })
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'RteIE.tv',
                'cookie': 'rte.ie.cookie',
                'cookie_type': 'MozillaCookieJar'
            })
        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,
            'DNT': '1',
            'Accept': 'text/html'
        }
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.DEFAULT_ICON_URL = 'http://pbs.twimg.com/profile_images/533371112277557248/iJ7Xwp1i.png'
        self.MAIN_URL = None
        self.cacheLinks = {}
        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'C3player.tv',
                'cookie': 'rte.ie.cookie',
                'cookie_type': 'MozillaCookieJar'
            })
        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,
            'DNT': '1',
            'Accept': 'text/html'
        }
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.DEFAULT_ICON_URL = 'http://compass.xboxlive.com/assets/58/73/58738a5d-013b-4bf1-ac89-cdb72477dae9.png'
        self.MAIN_URL = 'https://www.tv3.ie/'
        self.cacheLinks = {}
Exemple #20
0
 def __init__(self):
     CBaseHostClass.__init__(self, {
         'history': 'MoviesNight',
         'cookie': 'MoviesNight.cookie'
     })
     self.movieFiltersCache = {'genres': [], 'years': []}
     self.episodesCache = {}
    def __init__(self):
        printDBG("SportDeutschland.__init__")

        CBaseHostClass.__init__(self, {'history': 'SportDeutschland'})

        self.DEFAULT_ICON_URL = 'https://www.sportdeutschland.de/typo3conf/ext/arx_template/Resources/Public/Images/WebSite/logo.png'
        self.MAINURL = 'http://sportdeutschland.tv/'
        self.MAIN_API_URL = 'http://proxy.vidibusdynamic.net/sportdeutschland.tv/api/'
        self.HTTP_JSON_HEADER = {
            'User-Agent':
            'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0',
            'Accept':
            'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
            'Accept-Encoding': 'gzip, deflate',
            'Referer': self.MAINURL,
            'Origin': self.MAINURL
        }
        self.cm.HEADER = dict(self.HTTP_JSON_HEADER)
        self.MAIN_CAT_TAB = [{
            'category': 'categories',
            'title': _('Categories'),
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True,
        }, {
            'category': 'search_history',
            'title': _('Search history'),
        }]
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'SVTPlaySE.tv', 'cookie':'svtplayse.cookie'})
     self.HEADER = {'User-Agent':'Mozilla/5.0', 'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Encoding':'gzip, deflate'}
     self.AJAX_HEADER = dict(self.HEADER)
     self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest'} )
     self.cm.HEADER = self.HEADER # default header
     self.defaultParams = {'header':self.HEADER, 'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     
     self.MAIN_URL = 'https://www.svtplay.se/'
     self.DEFAULT_ICON_URL = 'https://upload.wikimedia.org/wikipedia/en/5/54/SVT_Play.png' 
     
     self.MAIN_CAT_TAB = [
                          #{'category':'list_items2',        'title': 'POPULÄRT',                            'url':'/populara'        },
                          #{'category':'list_items2',        'title': 'SENASTE PROGRAM',                     'url':'/senaste'         },
                          #{'category':'list_items2',        'title': 'SISTA CHANSEN',                       'url':'/sista-chansen'   },
                          #{'category':'list_items2',        'title': 'LIVESÄNDNINGAR',                      'url':'/live'            },
     
                          {'category':'list_items',        'title': _('Popular'),                            'url':'/popular'         },
                          {'category':'list_items',        'title': _('Latest programs'),                    'url':'/latest'          },
                          {'category':'list_items',        'title': _('Latest news broadcast'),              'url':'/cluster_latest?cluster=nyheter'},
                          {'category':'list_items',        'title': _('Last chance'),                        'url':'/last_chance'     },
                          {'category':'list_items',        'title': _('Live broadcasts'),                    'url':'/live'            },
                          {'category':'list_channels',     'title': _('Channels'),                           'url':'/kanaler'          },   
                          {'category':'list_az_menu',      'title': _('Programs A-Ö'),                       'url':'/program'         },   #/all_titles
                          {'category':'list_items',        'title': _('Categories'),                         'url':'/active_clusters' },  
                          
                          {'category':'search',             'title': _('Search'), 'search_item':True,           'icon':'https://raw.githubusercontent.com/vonH/plugin.video.iplayerwww/master/media/search.png'},
                          {'category':'search_history',     'title': _('Search history'),                     }]
     self.itemsPerPage = 48
     self.programsAZCache = {'keys':[], 'dict':{}}
    def __init__(self):
        CBaseHostClass.__init__(self, {
            'history': 'Sovdub',
            'cookie': 'Sovdub.cookie'
        })

        self.MAIN_URL = 'http://sovdub.ru/'
        self.DEFAULT_ICON_URL = self.getFullIconUrl(
            '/templates/simplefilms/images/logo.png')

        self.MAIN_CAT_TAB = [{
            'category': 'genres',
            'title': _('Genres'),
            'url': self.getMainUrl()
        }, {
            'category': 'countries',
            'title': _('Countries'),
            'url': self.getMainUrl()
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True
        }, {
            'category': 'search_history',
            'title': _('Search history')
        }]
        self.encoding = ''
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'CartoonHD.tv',
                'cookie': 'cartoonhdtv.cookie',
                'cookie_type': 'MozillaCookieJar',
                'min_py_ver': (2, 7, 9)
            })
        self.cacheFilters = {}
        self.cacheLinks = {}
        self.loggedIn = None
        self.DEFAULT_ICON_URL = 'https://cartoonhd.io/templates/cartoonhd/assets/images/logochd.png'

        self.HEADER = {'User-Agent': 'Mozilla/5.0', 'Accept': 'text/html'}
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.MAIN_URL = None
        self.SEARCH_URL = None
Exemple #25
0
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'eurosportplayer.com', 'cookie':'eurosportplayer.com.cookie', 'cookie_type':'MozillaCookieJar'})
     self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36'
     self.MAIN_URL = 'https://www.eurosportplayer.com/'
     self.DEFAULT_ICON_URL = 'https://superrepo.org/static/images/icons/original/xplugin.video.eurosportplayer.png.pagespeed.ic.xB5vsEn8I9.png'
     self.HTTP_HEADER = {'User-Agent': self.USER_AGENT, 'DNT':'1', 'Accept': 'text/html', 'Accept-Encoding':'gzip, deflate', 'Referer':self.getMainUrl(), 'Origin':self.getMainUrl()}
     self.AJAX_HEADER = dict(self.HTTP_HEADER)
     self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest', 'Accept-Encoding':'gzip, deflate', 'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8', 'Accept':'application/vnd.media-service+json; version=1', 'Origin':self.getMainUrl()[:-1]} )
     
     self.defaultParams = {'header':self.HTTP_HEADER, 'with_metadata':True, 'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     
     self.loggedIn = None
     self.login    = ''
     self.password = ''
     self.serverApiData = {}
     self.tokenData = {}
     self.langsMap = {}
     
     self.OFFSET = datetime.now() - datetime.utcnow()
     seconds = self.OFFSET.seconds + self.OFFSET.days * 24 * 3600
     if ((seconds + 1) % 10) == 0: seconds += 1  
     elif ((seconds - 1) % 10) == 0: seconds -= 1 
     self.OFFSET = timedelta(seconds=seconds)
     
     self.ABBREVIATED_MONTH_NAME_TAB = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
     self.ABBREVIATED_DAYS_NAME_TAB = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
Exemple #26
0
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'PlayRTSIW.tv', 'cookie':'rte.ie.cookie', 'cookie_type':'MozillaCookieJar'})
     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, 'DNT':'1', 'Accept': 'text/html'}
     self.AJAX_HEADER = dict(self.HEADER)
     self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest'} )
     
     self.defaultParams = {'header':self.HEADER, 'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     self.ITEMS_TYPE_MAP = {'tv':'videos', 'radio':'audios'}
     self.PLAYER_MAP = ['rtr', 'srf', 'rsi', 'swi', 'rts']
     self.URL_MAP = {'rtr':'https://www.rtr.ch/',
                     'srf':'https://www.srf.ch/',
                     'rsi':'https://www.rsi.ch/',
                     'swi':'https://play.swissinfo.ch/',
                     'rts':'http://www.rts.ch/'}
     
     self.PORTALS_MAP = {}
     for item in self.PLAYER_MAP:
         self.URL_MAP['%s_icon' % item] = self.URL_MAP[item]+'play/static/img/srg/%s/play%s_logo.png' % (item, item)
         self.PORTALS_MAP[item] = {'title':item.upper(), 'url':self.URL_MAP[item]+'play/tv', 'icon':self.URL_MAP['%s_icon' % item]}
     self.SEARCH_ICON_URL = 'https://www.srgssr.ch/fileadmin/dam/images/quicklinks/srgssr-auf-einen-blick.png'
     self.DEFAULT_ICON_URL = 'https://upload.wikimedia.org/wikipedia/commons/thumb/d/d4/SRG_SSR_2011_logo.svg/2000px-SRG_SSR_2011_logo.svg.png'
     self.MAIN_URL = None
     self.cacheLinks = {}
     self.cacheShowsMap = []
     self.cacheShowsAZ = []
Exemple #27
0
    def __init__(self):
        CBaseHostClass.__init__(self, {'history':'plusdede.com', 'cookie':'plusdede.com.cookie', 'cookie_type':'MozillaCookieJar', 'min_py_ver':(2,7,9)})
        self.DEFAULT_ICON_URL = 'https://img15.androidappsapk.co/300/f/d/3/com.joramun.plusdede.png'
        self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'
        self.MAIN_URL = 'https://www.plusdede.com/'
        self.HTTP_HEADER = {'User-Agent': self.USER_AGENT, 'DNT':'1', 'Accept': 'text/html', 'Accept-Encoding':'gzip, deflate', 'Referer':self.getMainUrl(), 'Origin':self.getMainUrl()}
        self.AJAX_HEADER = dict(self.HTTP_HEADER)
        self.AJAX_HEADER.update( {'X-Requested-With': 'XMLHttpRequest', 'Accept-Encoding':'gzip, deflate', 'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8', 'Accept':'application/json, text/javascript, */*; q=0.01'} )
        
        self.cacheLinks    = {}
        self.cacheFilters  = {}
        self.cacheFiltersKeys = []
        self.cacheEpisodes = {}
        self.defaultParams = {'header':self.HTTP_HEADER, 'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
        
        self.MAIN_CAT_TAB = [{'category':'list_filters',   'title': 'Series',        'url':self.getFullUrl('/series')},
                             {'category':'list_filters',   'title': 'Pelis',         'url':self.getFullUrl('/pelis') },
                             {'category':'list_lists',     'title': 'Listas',        'url':self.getFullUrl('/listas')},

                             
                             {'category':'search',         'title': _('Search'),          'search_item':True}, 
                             {'category':'search_history', 'title': _('Search history')},
                            ]
        self.loggedIn = None
        self.LOGIN_MARKER_FILE = self.COOKIE_FILE + '.mark'
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'planet-streaming.com',
                'cookie': 'planet-streaming.com.cookie',
                'cookie_type': 'MozillaCookieJar'
            })

        self.DEFAULT_ICON_URL = 'http://cdn-thumbshot.pearltrees.com/4d/72/4d725324089e9adab59eee4aa32f548f-pearlsquare.jpg'
        self.HEADER = {
            'User-Agent':
            'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0',
            'DNT': '1',
            'Accept': 'text/html'
        }
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})
        self.MAIN_URL = None
        self.MAIN_MOVIES_URL = None
        self.MAIN_SERIES_URL = None
        self.cacheFilters = {}
        self.cacheLinks = {}
        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE,
            'with_metadata': True
        }
Exemple #29
0
    def __init__(self):
        CBaseHostClass.__init__(
            self, {
                'history': 'new-hd-streams.org',
                'cookie': 'hd-streams.org.cookie',
                'cookie_type': 'MozillaCookieJar',
                'min_py_ver': (2, 7, 9)
            })
        self.USER_AGENT = 'Mozilla/5.0'
        self.HEADER = {'User-Agent': self.USER_AGENT, 'Accept': 'text/html'}
        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.defaultParams = {
            'header': self.HEADER,
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }

        self.DEFAULT_ICON_URL = 'http://s-media-cache-ak0.pinimg.com/originals/82/63/59/826359efee44e19824912cdf45b3bd59.jpg'
        self.MAIN_URL = None
        self.cacheLinks = {}
        self.cacheFilters = {}
        self.cacheFiltersKeys = []
    def __init__(self):
        CBaseHostClass.__init__(self, {
            'history': '9cartoon.me',
            'cookie': 'CartoonME.cookie'
        })
        self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'
        self.defaultParams = {
            'use_cookie': True,
            'load_cookie': True,
            'save_cookie': True,
            'cookiefile': self.COOKIE_FILE
        }
        self.COOKIE_FILE_2 = GetCookieDir('CartoonME_links.cookie')
        self.MAIN_URL = 'http://9cartoon.me/'
        self.SEARCH_URL = self.MAIN_URL + 'Search?s='

        self.DEFAULT_ICON_URL = "http://logos.textgiraffe.com/logos/logo-name/Cartoon-designstyle-cartoon-m.png"

        self.MAIN_CAT_TAB = [{
            'category': 'list_types',
            'title': _('Cartoon list'),
            'url': self.getFullUrl('CartoonList')
        }, {
            'category': 'categories',
            'title': _('Genres'),
            'url': self.getMainUrl()
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True
        }, {
            'category': 'search_history',
            'title': _('Search history')
        }]