def __init__(self):
     CBaseHostClass.__init__(self, {'history':'SolarMovie', 'cookie':'SolarMovie.cookie'})
     self.movieGenresCache = []
     self.tvshowGenresCache = []
     self.seriesCache = []
     self.episodesCache = []
     self.linksCache = {}
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listMainMenu()
        elif category == 'cats':
            self.listCategories(self.currItem, 'show_sort')
        elif category == 'show_sort':
            cItem = dict(self.currItem)
            cItem['category'] = 'list_items'
            self.listsTab(self.sortCache, cItem)
        elif category == 'list_items':
            self.listItems(self.currItem, 'list_episodes')
        elif category == 'list_episodes':
            self.listEpisodes(self.currItem)
    #SEARCH
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA SEARCH
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        
        CBaseHostClass.endHandleService(self, index, refresh)
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'Cinemay', 'cookie':'Cinemay.cookie'})
     self.catCache = {'movies':[], 'series':[]}
     self.USER_AGENT = "Mozilla/5.0 (Linux; U; Android 4.1.1; en-us; androVM for VirtualBox ('Tablet' version with phone caps) Build/JRO03S) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30"
     self.HEADER = {'User-Agent': self.USER_AGENT, 'Accept': 'text/html'}
     self.defaultParams = {'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     self.seriesCache = {}
    def handleService(self, index, refresh=0, searchPattern='', searchType=''):
        printDBG('WrestlingNet.handleService start')
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
        name     = self.currItem.get("name", None)
        category = self.currItem.get("category", '')
        printDBG( "WrestlingNet.handleService: ---------> name[%s], category[%s] " % (name, category) )
        searchPattern = self.currItem.get("search_pattern", searchPattern)
        self.currList = [] 

    #MAIN MENU
        if None == name:
            self.listsTab(WrestlingNet.MAIN_CAT_TAB, {'name':'category'})
    #LATEST
        elif 'latest' == category:
            self.listLatestVideos(self.currItem, '')
    #TAG
        elif 'tag' == category:
            self.listVideosByTag(self.currItem, '')
    #CATEGORY
        elif 'category' == category:
            self.listVideosByCategory(self.currItem, '')
    #WYSZUKAJ
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA WYSZUKIWANIA
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        CBaseHostClass.endHandleService(self, index, refresh)
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'Dailymotion', 'cookie':'dailymotion.cookie'})
     self.filterCache = {}
     self.apiData = {'client_type': 'androidapp',
                     'client_version': '4775',
                     'family_filter':'false'
                    }
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        if 0 == refresh: refresh = False
        else: refresh = True

        title      = self.currItem.get("title", '')
        category   = self.currItem.get("category", None)
        catId      = self.currItem.get("catId", '')
        pCatId     = self.currItem.get("pCatId", '')
        icon       = self.currItem.get("icon", '')
        url        = self.currItem.get("url", '')
        plot       = self.currItem.get("plot", '')
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| category[%r] " % (category) )
        self.currList = []
        
    #MAIN MENU
        if category == None:
            self.listsMainMenu(refresh)
    #GET SUB CATEGORY
        elif category == 'category':
            self.getCategories(catId, refresh)
    #WYSZUKAJ
        elif category == 'Wyszukaj':
            pattern = urllib.quote_plus(searchPattern)
            self.getVideosList(Ipla.SEARCH_URL + pattern)
    #HISTORIA WYSZUKIWANIA
        elif category == "search_history":
            self.listsHistory()
 def handleService(self, index, refresh=0, searchPattern='', searchType=''):
     printDBG('LiveLeak.handleService start')
     CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
     name     = self.currItem.get("name", None)
     category = self.currItem.get("category", '')
     printDBG( "LiveLeak.handleService: ---------> name[%s], category[%s] " % (name, category) )
     searchPattern = self.currItem.get("search_pattern", searchPattern)
     self.currList = []
     
     if None == name:
         self.listsTab(LiveLeak.MAIN_CAT_TAB, {'name':'category'})
 #ITEMS TAB
     elif 'tab_items' == category:
         self.listsTab(LiveLeak.ITEMS_CAT_TAB, self.currItem)
 #CHANNELS TAB
     elif 'tab_channels' == category:
         self.listsTab(LiveLeak.CHANNEL_CAT_TAB, self.currItem)
 #LIST ITEMS
     elif 'recent_items' == category:
         self.listRecentItems(self.currItem)
 #BROWSE CHANNELS
     elif 'channels' == category:
         self.listChannels(self.currItem)
 #LIST CHANNEL ITEMS
     elif 'channel' == category:
         self.listChannelItems(self.currItem)
 #WYSZUKAJ
     elif category in ["Wyszukaj", "search_next_page"]:
         self.listSearchResult(self.currItem, searchPattern, searchType)
 #HISTORIA WYSZUKIWANIA
     elif category == "Historia wyszukiwania":
         self.listsHistory()
     else:
         printExc()
Beispiel #8
0
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name       = self.currItem.get("name", '')
        title      = self.currItem.get("title", '')
        category   = self.currItem.get("category", '')
        parent_cat = self.currItem.get("parent_cat", '')
        page     = self.currItem.get("page", '')
        icon     = self.currItem.get("icon", '')
        url      = self.currItem.get("url", '')
        plot     = self.currItem.get("plot", '')
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listsMainMenu()
    #VIDEO_PLAYLIST
        elif category == 'playlist':
            self.listPlaylists(url)
        elif category == 'end_playlist':
            self.listPlaylistVideos(self.currItem.get("videos", []))
    #LIST VIDEOS
        elif category == "end_cat":
            self.listEndItems(parent_cat, url, page)
    #LIST MAGAZINES
        elif category == "magazines":
            self.listCategories(category, url, page)
    #LIST CATEGORIES
        elif category == "categories":
              self.listCategories(category, url, page)
    #LIST SUB CATEGORIES
        elif category == "sub_categiories":
              self.listSubCategories(category, self.currItem.get("sub_categiories", []))
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listMainMenu({'name':'category'})
            self.listsTab(self.MAIN_CAT_TAB, {'name':'category'}, 'dir')
        elif category == 'list_cache_cat':
            self.listFromCache(self.currItem)
        elif category == 'explore_page':
            self.explorePage(self.currItem)
        elif category == 'videos_list':
            self.listVideos(self.currItem)
        elif category == 'calendar':    
            self.listCalendary(self.currItem)
    #SEARCH
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA SEARCH
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        
        CBaseHostClass.endHandleService(self, index, refresh)
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        title    = self.currItem.get("title", '')
        category = self.currItem.get("category", '')
        page     = self.currItem.get("page", '')
        icon     = self.currItem.get("icon", '')

        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| [%s] " % name )
        self.currList = []

    #MAIN MENU
        if name == None:
            self.listsMainMenu(self.MENU_TAB)
    #KRESKÓWKI ALFABETYCZNIE
        elif category == self.setTable()[1]:
            self.listsABCMenu(self.cm.makeABCList())
        elif name == 'abc-menu':
            self.showTitles(category)
        elif name == 'episode' or name == 'nextpage':
            self.showParts(page)
    #OSTATNIO UZUPEŁNIONE
        elif category == self.setTable()[2]:
            self.showParts(self.MAINURL)
    #WYSZUKAJ
        elif category == self.setTable()[3]:
            text = searchPattern
            self.showParts(self.MAINURL+"/search/?keywords="+urllib.quote_plus(text))
    #HISTORIA WYSZUKIWANIA
        elif category == self.setTable()[4]:
            self.listsHistory()
        
        CBaseHostClass.endHandleService(self, index, refresh)
 def handleService(self, index, refresh=0, searchPattern='', searchType=''):
     printDBG('cda.handleService start')
     CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
     name     = self.currItem.get("name", None)
     category = self.currItem.get("category", '')
     printDBG( "cda.handleService: ---------> name[%s], category[%s] " % (name, category) )
     searchPattern = self.currItem.get("search_pattern", searchPattern)
     self.currList = []
     
     if None == name:
         self.listsMainMenu()
 #KATEGORIE
     if 'categories' == category:
         self.listCategories(self.currItem)
 #KATEGORIA
     if 'category' == category:
         self.listCategory(self.currItem)
 #WYSZUKAJ
     elif category in ["Wyszukaj", "search_next_page"]:
         self.listSearchResult(self.currItem, searchPattern)
 #HISTORIA WYSZUKIWANIA
     elif category == "Historia wyszukiwania":
         self.listsHistory()
     
     CBaseHostClass.endHandleService(self, index, refresh)
Beispiel #12
0
    def handleService(self, index, refresh=0, searchPattern="", searchType=""):
        printDBG("FuufPL.handleService start")
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
        name = self.currItem.get("name", None)
        category = self.currItem.get("category", "")
        printDBG("FuufPL.handleService: ---------> name[%s], category[%s] " % (name, category))
        searchPattern = self.currItem.get("search_pattern", searchPattern)
        self.currList = []

        # MAIN MENU
        if None == name:
            self.listsTab(FuufPL.MAIN_CAT_TAB, {"name": "category"})
        # CATEGORIES
        elif "categories" == category:
            self.listCategories(self.currItem, "list_videos")
        # LIST_VIDEOS
        elif "list_videos" == category:
            self.listVideosFromCategory(self.currItem)
        # WYSZUKAJ
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({"search_item": False, "name": "category"})
            self.listSearchResult(cItem, searchPattern, searchType)
        # HISTORIA WYSZUKIWANIA
        elif category == "search_history":
            self.listsHistory({"name": "history", "category": "search"}, "desc", _("Type: "))
        else:
            printExc()
        CBaseHostClass.endHandleService(self, index, refresh)
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listsTab(self.MAIN_CAT_TAB, {'name':'category'})
    #MOVIES
        elif category == 'dr_live_channels':
            self.listLiveChannels(self.currItem)
    #SEARCH
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA SEARCH
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        
        CBaseHostClass.endHandleService(self, index, refresh)
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('TvnVod..handleService start')
        
        if None == self.loggedIn and self.ACCOUNT:
            self.loggedIn = self.tryTologin()
            if not self.loggedIn:
                self.sessionEx.open(MessageBox, 'Problem z zalogowaniem użytkownika "%s".' % self.LOGIN, type = MessageBox.TYPE_INFO, timeout = 10 )
            else:
                self.sessionEx.open(MessageBox, 'Zostałeś poprawnie \nzalogowany.', type = MessageBox.TYPE_INFO, timeout = 10 )
        
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
        
        # clear hosting tab cache
        self.linksCacheCache = {}

        name     = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        printDBG( "TvnVod.handleService: ---------> name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listsMainMenu()           
    #WYSZUKAJ
        elif category == "Wyszukaj":
            pattern = urllib.quote_plus(searchPattern)
            printDBG("Wyszukaj: " + pattern)
            self.listSearchResults(pattern, searchType)
    #HISTORIA WYSZUKIWANIA
        elif category == "Historia wyszukiwania":
            self.listsHistory()
    #KATEGORIE
        else:
            self.listsCategories(self.currItem)
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'StreamComplet', 'cookie':'StreamComplet.cookie'})
     self.cacheFilters = {}
     self.USER_AGENT = "Mozilla/5.0 (Linux; U; Android 4.1.1; en-us; androVM for VirtualBox ('Tablet' version with phone caps) Build/JRO03S) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Safari/534.30"
     self.USER_AGENT2 = "Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/44.0 (Chrome)"
     self.HEADER = {'User-Agent': self.USER_AGENT, 'Accept': 'text/html'}
     self.defaultParams = {'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        mode     = self.currItem.get("mode", '')
        
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listCategories({'name':'category'})
        elif category == 'ondemand':
            self.listMedia(self.currItem)
        elif category == 'pseudostreaming':
            self.listPseudoStreaming(self.currItem)
        elif category == 'container':
            self.listCategories(self.currItem, 'subcategories')
        else:
            printExc()
        
        CBaseHostClass.endHandleService(self, index, refresh)
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listsTab(self.MAIN_CAT_TAB, {'name':'category'})
    #MOVIES
        elif category == 'genres_movies':
            self.listFilters(self.currItem, 'category', 'list_version_filter')
        elif category == 'list_version_filter':
            self.listFilters(self.currItem, 'version', 'list_yer_filter')
        elif category == 'list_yer_filter':
            self.listFilters(self.currItem, 'year', 'list_movies')
        elif category == 'list_movies':
            self.listMovies(self.currItem)
        elif category == 'list_rank':
            self.listsTab(self.RANK_TAB, {'name':'category'})
        elif category == 'list_rank_movie_view':
            self.listRankViewMovies(self.currItem)
        elif category == 'list_rank_movie':
            self.listRankMovie(self.currItem)
        elif category == 'list_rank_series_view':
            self.listRankViewSeries(self.currItem, 'list_seasons')
    #SERIES
        elif category == 'cat_series':
            self.listsTab(self.SERIES_CAT_TAB, {'name':'category'})
        elif category == 'list_series_abc':
            self.listSeriesABC(self.currItem, 'list_series')
        elif category == 'list_series':
            self.listSeries(self.currItem, 'list_seasons')
        elif category == 'list_seasons':
            self.listSeasons(self.currItem, 'list_episodes')
        elif category == 'list_episodes':
            self.listEpisodes(self.currItem)
    #LATEST ADDED
        elif category == 'latest_added':
            self.listsTab(self.LAST_ADDED_TAB, {'name':'category'})
        elif category == 'latest_added_movies':
            self.listLatestAddedMovies(self.currItem)
        elif category == 'latest_added_series':
            self.listLatestAddedSeries(self.currItem, 'list_seasons')
    #SEARCH
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA SEARCH
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        
        CBaseHostClass.endHandleService(self, index, refresh)
    def __init__(self):
        CBaseHostClass.__init__(self, {'history':'Filmy3dEU', 'cookie':'playtube.cookie'})

        #Login data
        self.loggedIn = None
        
        self.catCache = {'cat_az':[], 'cat_movies':[], 'filled':False}
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        mode     = self.currItem.get("mode", '')
        
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listsTab(self.MAIN_CAT_TAB_S, {'name':'category'})
            self.getMainMenu({'name':'category', 'url':self.MAIN_URL, 'icon':self.DEFAULT_ICON}, 'category')
            self.listsTab(self.MAIN_CAT_TAB_E, {'name':'category'})
        elif category == 'category':
            self.listCategory(self.currItem, 'list_items')
        elif category == 'recommended':
            self.listRecommended(self.currItem)
        elif category == 'list_items':
            self.listItems(self.currItem)
    #SEARCH
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA SEARCH
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        
        CBaseHostClass.endHandleService(self, index, refresh)
 def __init__(self):
     printDBG("GrooveShark.__init__")
     CBaseHostClass.__init__(self, {'history':'GrooveShark.com'})     
     self.api = GroovesharkApi()
     self.initiated = False
     self.loggedIn  = None
     self.url_cache = {'id':0, 'urlTab':[]}
    def handleService(self, index, refresh=0, searchPattern='', searchType=''):
        printDBG('TvGryPL.handleService start')
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
        name     = self.currItem.get("name", None)
        category = self.currItem.get("category", '')
        printDBG( "TvGryPL.handleService: ---------> name[%s], category[%s] " % (name, category) )
        searchPattern = self.currItem.get("search_pattern", searchPattern)
        self.currList = [] 

        if None == name:
            self.listsTab(TvGryPL.MAIN_CAT_TAB, {'name':'category'})
    #FILMS
        elif 'films' == category:
            self.listFilms(self.currItem)
        elif 'newest' == category:
            self.listNewest(self.currItem)
    #WYSZUKAJ
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA WYSZUKIWANIA
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        CBaseHostClass.endHandleService(self, index, refresh)
    def handleService(self, index, refresh=0, searchPattern='', searchType=''):
        printDBG('Hitbox.handleService start')
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
        name     = self.currItem.get("name", None)
        category = self.currItem.get("category", '')
        printDBG( "Hitbox.handleService: ---------> name[%s], category[%s] " % (name, category) )
        searchPattern = self.currItem.get("search_pattern", searchPattern)
        self.currList = [] 

        if None == name:
            self.listsTab(Hitbox.MAIN_CAT_TAB, {'name':'category'})
    #GAMES
        elif 'games_list' == category:
            self.listGames(self.currItem, 'games_tab')
        elif 'games_tab' == category:
            self.listGamesTab(self.currItem)
    #MEDIA
        elif 'media' == category:
            self.listMedia(self.currItem)
    #WYSZUKAJ
        elif category in ["search"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA WYSZUKIWANIA
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        CBaseHostClass.endHandleService(self, index, refresh)
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        title    = self.currItem.get("title", '')
        category = self.currItem.get("category", '')
        page     = self.currItem.get("page", '0')
        icon     = self.currItem.get("icon", '')
        url      = self.currItem.get("url", '')
        plot     = self.currItem.get("plot", '')
        id       = self.currItem.get("id", '')
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listsMainMenu()           
    #FILMY
        elif category == "episodes": 
            self.listItems(self.EPISODES_URL, category, 'episodes', id, page)
        elif category == "series":
            self.listItems(self.SERIES_URL, category, 'episodes', id, page)
    #WYSZUKAJ
        elif category == "Wyszukaj":
            pattern = urllib.quote_plus(searchPattern)
            printDBG("Wyszukaj: pattern[%s]" % pattern)
            self.listItems(self.SEARCH_URL, category, 'episodes', pattern, page)
            
    #HISTORIA WYSZUKIWANIA
        elif category == "Historia wyszukiwania":
            self.listsHistory()
    def handleService(self, index, refresh = 0, searchPattern = '', searchType = ''):
        printDBG('handleService start')
        
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)

        name     = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        printDBG( "handleService: |||||||||||||||||||||||||||||||||||| name[%s], category[%s] " % (name, category) )
        self.currList = []
        
    #MAIN MENU
        if name == None:
            self.listMainMenu()
        elif category == 'movie_cats':
            self.listCategories(self.currItem, 'list_items1')
        elif category == 'list_items1':
            self.listItems1(self.currItem)
        elif category == 'list_items2':
            self.listItems2(self.currItem)
        elif category == 'list_items3':
            self.listItems3(self.currItem)
        else:
            printExc()
        
        CBaseHostClass.endHandleService(self, index, refresh)
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'  HDFilmeTV.tv', 'cookie':'hdfilmetv.cookie'})
     self.defaultParams = {'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     self.filtersCache = {'genre':[], 'country':[], 'sort':[]}
     self.seasonCache = {}
     self.cacheLinks = {}
     self.needProxy = None
Beispiel #26
0
    def handleService(self, index, refresh=0, searchPattern="", searchType=""):
        printDBG("TvGryPL.handleService start")
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
        name = self.currItem.get("name", None)
        category = self.currItem.get("category", "")
        printDBG("TvGryPL.handleService: ---------> name[%s], category[%s] " % (name, category))
        searchPattern = self.currItem.get("search_pattern", searchPattern)
        self.currList = []

        if None == name:
            self.listsTab(TvGryPL.MAIN_CAT_TAB, {"name": "category"})
        # FILMS
        elif "films" == category:
            self.listFilms(self.currItem)
        elif "newest" == category:
            self.listNewest(self.currItem)
        # WYSZUKAJ
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({"search_item": False, "name": "category"})
            self.listSearchResult(cItem, searchPattern, searchType)
        # HISTORIA WYSZUKIWANIA
        elif category == "search_history":
            self.listsHistory({"name": "history", "category": "search"}, "desc", _("Type: "))
        else:
            printExc()
        CBaseHostClass.endHandleService(self, index, refresh)
Beispiel #27
0
    def handleService(self, index, refresh=0, searchPattern='', searchType=''):
        printDBG('Vevo.handleService start')
        CBaseHostClass.handleService(self, index, refresh, searchPattern, searchType)
        if self.vevoIE == None:
            self.vevoIE = VevoIE()
        self.fillBrowse()
        name     = self.currItem.get("name", None)
        category = self.currItem.get("category", '')
        printDBG( "Vevo.handleService: ---------> name[%s], category[%s] " % (name, category) )
        searchPattern = self.currItem.get("search_pattern", searchPattern)
        self.currList = [] 

    #MAIN MENU
        if None == name:
            self.listsTab(Vevo.MAIN_CAT_TAB, {'name':'category'})
    #APIV2
        elif 'apiv2' == category:
            self.listApiv2(self.currItem)
        elif category in ['playlist', 'artist']:
            self.listVideosFromPage(self.currItem)
    #BROWSE VIDEOS
        elif 'browse_videos' == category:
            self.listBrowseCategory(self.currItem, 'groups')
    #BROWSE ARTISTS
        elif 'browse_artists' == category:
            self.listBrowseCategory(self.currItem, 'list_artists')
        elif 'list_artists' == category:
            self.listBrowseArtists(self.currItem)
    #BROWSE SHOWS
        elif 'browse_shows' == category:
            self.listBrowseShows(self.currItem, 'list_show_seasons')
        elif 'list_show_seasons' == category:
            self.listShowSeasons(self.currItem, 'list_show_videos')
        elif 'list_show_videos' == category:
            self.listShowVideos(self.currItem)
    #GROUPS
        elif 'groups' == category:
            cItem = dict(self.currItem)
            cItem['category'] = 'sort'
            self.listsTab(Vevo.GROUP_TAB, cItem)
    #SORT
        elif 'sort' == category:
            cItem = dict(self.currItem)
            cItem['category'] = 'list_browse_videos'
            self.listsTab(Vevo.VIDEO_SORT_TAB, cItem)
    #LIST BROWSE VIDEOS
        elif 'list_browse_videos' == category:
            self.listBrowseVideos(self.currItem)
    #WYSZUKAJ
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item':False, 'name':'category'}) 
            self.listSearchResult(cItem, searchPattern, searchType)
    #HISTORIA WYSZUKIWANIA
        elif category == "search_history":
            self.listsHistory({'name':'history', 'category': 'search'}, 'desc', _("Type: "))
        else:
            printExc()
        CBaseHostClass.endHandleService(self, index, refresh)
Beispiel #28
0
 def __init__(self):
     printDBG("Vevo.__init__")
     CBaseHostClass.__init__(self, {'history':'vevo.com', 'cookie':'vevocom.cookie'})
     self.vevoIE = None
     self.translations = {}
     self.browseCategoryList = []
     self.cacheShows = []
     self.language = []
 def __init__(self):
     printDBG("Urllist.__init__")
     
     self.MAIN_GROUPED_TAB = [{'category': self.RAFALCOOL1_FILE,    'title': ("Propozycje Rafalcool1"),        'desc': ("Lista filmów wybranych przez kolegę Rafalcool1")}]
     if config.plugins.iptvplayer.showXXXlinks.value == True:
         self.MAIN_GROUPED_TAB.append( {'category': self.URRLIST_ADULT,    'title': ("Propozycje dla dorosłych..."),        'desc': ("Musisz podać prawidłowy PIN w konfiguracji hosta")})
     CBaseHostClass.__init__(self)               
     self.currFileHost = None 
Beispiel #30
0
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'Kinoman', 'cookie':'kinoman.cookie'})  
     
     #Login data
     self.PREMIUM = config.plugins.iptvplayer.kinoman_premium.value
     self.LOGIN = config.plugins.iptvplayer.kinoman_login.value
     self.PASSWORD = config.plugins.iptvplayer.kinoman_password.value
     self.loggedIn = None
Beispiel #31
0
 def cleanHtmlStr(self, str):
     return CBaseHostClass.cleanHtmlStr(str)
Beispiel #32
0
 def getFullIconUrl(self, url):
     return CBaseHostClass.getFullIconUrl(self, url.replace('&', '&'))
    def handleService(self, index, refresh=0, searchPattern='', searchType=''):
        printDBG('ZalukajTv.handleService start')
        if None == self.loggedIn and config.plugins.iptvplayer.zalukajtvPREMIUM.value:
            self.loggedIn, msg = self.tryTologin()
            if not self.loggedIn:
                self.sessionEx.open(MessageBox,
                                    msg,
                                    type=MessageBox.TYPE_INFO,
                                    timeout=10)
            else:
                self.sessionEx.open(MessageBox,
                                    msg,
                                    type=MessageBox.TYPE_INFO,
                                    timeout=10)
        CBaseHostClass.handleService(self, index, refresh, searchPattern,
                                     searchType)
        name = self.currItem.get("name", None)
        category = self.currItem.get("category", '')
        printDBG(
            "ZalukajTv.handleService: ---------> name[%s], category[%s] " %
            (name, category))
        searchPattern = self.currItem.get("search_pattern", searchPattern)
        self.currList = []

        if None == name:
            self.listsTab(ZalukajTv.MAIN_CAT_TAB, {'name': 'category'})
    #FILMS
        elif 'films_sub_menu' == category:
            self.listsTab(ZalukajTv.FILMS_SUB_MENU, self.currItem)
        elif 'films_popular' == category:
            self.listsTab(ZalukajTv.FILMS_POPULAR, self.currItem)
        elif 'films_category' == category:
            self.listFilmsCategories(self.currItem, 'add_lang')
    #LANGS
        elif 'add_lang' == category:
            newItem = dict(self.currItem)
            newItem.update({'category': 'films_list'})
            self.listsTab(ZalukajTv.LANGS_TAB, newItem)
    #LIST FILMS
        elif 'films_list' == category:
            self.listFilms(self.currItem)
    #SERIES
        elif 'series_sub_menu' == category:
            self.listsTab(ZalukajTv.SERIES_SUB_MENU, self.currItem)
        elif 'series_list' == category:
            self.listSeries(self.currItem, 'series_seasons')
        elif 'series_updated' == category:
            self.listUpdatedSeries(self.currItem, 'series_episodes')
        elif 'series_seasons' == category:
            self.listSeriesSeasons(self.currItem, 'series_episodes')
        elif 'series_episodes' == category:
            self.listSeriesEpisodes(self.currItem)
    #WYSZUKAJ
        elif category in ["search", "search_next_page"]:
            cItem = dict(self.currItem)
            cItem.update({'search_item': False, 'name': 'category'})
            self.listSearchResult(cItem, searchPattern, searchType)

    #HISTORIA WYSZUKIWANIA
        elif category == "search_history":
            self.listsHistory({
                'name': 'history',
                'category': 'search'
            }, 'desc', _("Type: "))
        else:
            printExc()
        CBaseHostClass.endHandleService(self, index, refresh)
Beispiel #34
0
 def getFullUrl(self, url, baseUrl=None):
     return CBaseHostClass.getFullUrl(self, url,
                                      baseUrl).replace('&', '&')
Beispiel #35
0
 def __init__(self):
     CBaseHostClass.__init__(self)
     self.MAIN_URL = 'http://live-stream.tv/'
Beispiel #36
0
 def getFullUrl(self, url):
     if self.up.getDomain(self.proxyUrl) in url:
         url = urllib.unquote(
             self.cm.ph.getSearchGroups(url + '&',
                                        '''\?u=(http[^&]+?)&''')[0])
     return CBaseHostClass.getFullUrl(self, url)
 def __init__(self):
     CBaseHostClass.__init__(self, {'history': '  MovizlandCom.tv', 'cookie': 'movizlandcom.cookie'})
     self.USER_AGENT = 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.120 Chrome/37.0.2062.120 Safari/537.36'
     self.HEADER = {'User-Agent': self.USER_AGENT, 'Accept': 'text/html'}
     self.defaultParams = {'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     self.cacheLinks = {}
Beispiel #38
0
 def getFullIconUrl(self, icon, baseUrl=None):
     return CBaseHostClass.getFullIconUrl(self, icon.replace('.webp', '.jpg'), baseUrl)
 def getFullUrl(self, url):
     url = url.replace('&', '&')
     return CBaseHostClass.getFullUrl(self, url)
Beispiel #40
0
 def __init__(self):
     CBaseHostClass.__init__(self, {'history':'  GreekDocumentaries3.tv', 'cookie':'GreekDocumentaries3tv.cookie'})
     self.defaultParams = {'use_cookie': True, 'load_cookie': True, 'save_cookie': True, 'cookiefile': self.COOKIE_FILE}
     self.cacheFilters = {}
     self.cacheLinks = {}
Beispiel #41
0
 def getFullUrl(self, url, urlType=''):
     self.urlType = urlType
     return CBaseHostClass.getFullUrl(self, url)
Beispiel #42
0
 def cleanHtmlStr(self, data):
     data = data.replace(' ', ' ')
     data = data.replace('&nbsp', ' ')
     return CBaseHostClass.cleanHtmlStr(data)
Beispiel #43
0
 def replacewhitespace(self, data):
     data = data.replace(' ', '%20')
     return CBaseHostClass.cleanHtmlStr(data)
Beispiel #44
0
 def getFullIconUrl(self, icon, baseUrl=None):
     return CBaseHostClass.getFullIconUrl(self, icon.replace('.webp', '.jpg').replace('/pictures/posters/t', '/posters/'), baseUrl)
Beispiel #45
0
 def getFullUrl(self, url, curUrl=None):
     return CBaseHostClass.getFullUrl(self, url.replace(' ', '%20'), curUrl)
Beispiel #46
0
    def __init__(self):
        printDBG("EkinoTv.__init__")
        CBaseHostClass.__init__(self, {
            'history': 'EkinoTv.tv',
            'cookie': 'ekinotv.cookie'
        })
        self.MAIN_URL = 'https://ekino-tv.pl/'
        self.DEFAULT_ICON_URL = 'https://img.cda.pl/obr/oryginalne/c53be9b25636d46fabbb0ec78abe75c8.png'
        self.FILMS_CAT_URL = self.getFullUrl('/movie/cat/')

        self.USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0'
        self.HTTP_HEADER = {
            'User-Agent': self.USER_AGENT,
            'DNT': '1',
            'Accept': 'text/html',
            'Accept-Encoding': 'gzip, deflate',
            'Referer': self.getMainUrl(),
            'Origin': self.getMainUrl()
        }

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

        self.MAIN_CAT_TAB = [{
            'category': 'list_cats',
            'title': 'Filmy',
            'url': self.FILMS_CAT_URL
        }, {
            'category': 'series_abc',
            'title': 'Seriale',
            'url': self.getFullUrl('/serie/')
        }, {
            'category': 'list_movies',
            'title': 'Dla dzieci',
            'url': self.FILMS_CAT_URL,
            'cat': '2,3,5,6'
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True
        }, {
            'category': 'search_history',
            'title': _('Search history')
        }]

        self.SORT_MAP = {
            'data-dodania': 'add',
            'data-aktualizacji': 'update',
            'data-premiery': 'premiera',
            'data-premiery': 'premiera',
            'odslony': 'views',
            'ocena': 'rate',
            'alfabetycznie': 'alfa',
        }

        self.cacheMovieFilters = {'cats': [], 'vers': [], 'years': []}
        self.loggedIn = None
        self.login = ''
        self.password = ''
        self.loginMessage = ''
Beispiel #47
0
    def handleService(self, index, refresh=0, searchPattern='', searchType=''):
        printDBG('handleService start')

        CBaseHostClass.handleService(self, index, refresh, searchPattern,
                                     searchType)

        name = self.currItem.get("name", '')
        category = self.currItem.get("category", '')
        printDBG("handleService: ||| name[%s], category[%s] " %
                 (name, category))
        self.currList = []

        #MAIN MENU
        if name == None:
            self.listMain({
                'name': 'category',
                'type': 'category'
            }, 'list_items')

        elif category == 'programs':
            self.listProgramsMenu(self.currItem, 'list_items', 'list_abc')

        elif category == 'list_abc':
            self.listABC(self.currItem, 'list_abc_items')

        elif category == 'list_abc_items':
            self.listABCItems(self.currItem, 'explore_item')

        elif category == 'sub_items':
            self.listSubItems(self.currItem)

        elif category == 'list_items':
            self.listItems(self.currItem, 'explore_item')

        elif category == 'explore_item':
            self.exploreItem(self.currItem, 'list_items')

        elif category == 'channels':
            self.listChannels(self.currItem, 'list_items')

        elif category == 'missed':
            self.listMissed(self.currItem, 'list_missed_items')

        elif category == 'list_missed_items':
            self.listMissedItems(self.currItem, 'explore_item')
    #SEARCH
        elif category == 'search':
            self.listSearchResult(
                MergeDicts(self.currItem, {
                    'search_item': False,
                    'name': 'category'
                }), searchPattern, searchType)
        elif category == 'search_next':
            self.listSearchResultNext(self.currItem, 'explore_item')

    #HISTORIA SEARCH
        elif category == "search_history":
            self.listsHistory({
                'name': 'history',
                'category': 'search'
            }, 'desc', _("Type: "))
        else:
            printExc()

        CBaseHostClass.endHandleService(self, index, refresh)
Beispiel #48
0
 def __init__(self):
     CBaseHostClass.__init__(self, {
         'history': 'BBCiPlayer.tv',
         'cookie': 'bbciplayer.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
     self.defaultParams = {
         'header': self.HEADER,
         'use_cookie': True,
         'load_cookie': True,
         'save_cookie': True,
         'cookiefile': self.COOKIE_FILE
     }
     self.MAIN_URL = 'https://www.bbc.co.uk/'
     self.DEFAULT_ICON_URL = 'http://iplayer-web.files.bbci.co.uk/tviplayer-static-assets/10.75.0-1/img/navigation/iplayer_pink.png'
     self.HOST_VER = '2.0 (23/08/2019)'
     self.MAIN_CAT_TAB = [{
         'category':
         'list_channels',
         'title':
         _('Channels'),
         'url':
         self.getFullUrl('iplayer'),
         'desc':
         '\c00????00 Info: \c00??????BBC iPlayer\\n \c00????00Version: \c00??????'
         + self.HOST_VER + '\\n \c00????00Developer: \c00??????Codermik\\n'
     }, {
         'category':
         'list_categories',
         'title':
         _('Categories'),
         'url':
         self.getFullUrl('iplayer'),
         'desc':
         '\c00????00 Info: \c00??????BBC iPlayer\\n \c00????00Version: \c00??????'
         + self.HOST_VER + '\\n \c00????00Developer: \c00??????Codermik\\n'
     }, {
         'category':
         'list_az_menu',
         'title':
         _('A-Z'),
         'url':
         self.getFullUrl('iplayer/a-z/'),
         'desc':
         '\c00????00 Info: \c00??????BBC iPlayer\\n \c00????00Version: \c00??????'
         + self.HOST_VER + '\\n \c00????00Developer: \c00??????Codermik\\n'
     }, {
         'category':
         'list_items',
         'title':
         _('Most Popular'),
         'url':
         self.getFullUrl('iplayer/group/most-popular'),
         'desc':
         '\c00????00 Info: \c00??????BBC iPlayer\\n \c00????00Version: \c00??????'
         + self.HOST_VER + '\\n \c00????00Developer: \c00??????Codermik\\n'
     }, {
         'category':
         'search',
         'title':
         _('Search'),
         'search_item':
         True,
         'desc':
         '\c00????00 Info: \c00??????BBC iPlayer\\n \c00????00Version: \c00??????'
         + self.HOST_VER + '\\n \c00????00Developer: \c00??????Codermik\\n'
     }, {
         'category':
         'search_history',
         'title':
         _('Search history'),
         'desc':
         '\c00????00 Info: \c00??????BBC iPlayer\\n \c00????00Version: \c00??????'
         + self.HOST_VER + '\\n \c00????00Developer: \c00??????Codermik\\n'
     }]
     self.otherIconsTemplate = 'https://raw.githubusercontent.com/vonH/plugin.video.iplayerwww/master/media/%s.png'
     self.reSrcset = re.compile('<source[^>]+?srcset=[\'"]([^\'^"]+?)[\'"]',
                                re.I)
Beispiel #49
0
 def getLinksForFavourite(self, fav_data):
     if fav_data.startswith('{'):
         return CBaseHostClass.getLinksForFavourite(self, fav_data)
     return self.getLinksForVideo({'url': fav_data})
Beispiel #50
0
 def __init__(self):
     printDBG("MyVideo.__init__")
     CBaseHostClass.__init__(self, {'history': 'MyVideo.de'})
     self.menuTree = []
Beispiel #51
0
 def __init__(self):
     CBaseHostClass.__init__(self, {'history': 'SeansikTV'})
Beispiel #52
0
    def __init__(self):
        CBaseHostClass.__init__(self, {
            'history': 'YifyTV',
            'cookie': 'yifybz.cookie'
        })
        self.filterCache = {}
        self.cacheLinks = {}
        self.VIDEO_HOSTINGS_MAP = {
            "rpd": "https://www.rapidvideo.com/embed/{0}",
            "vza": "https://vidoza.net/embed-{0}.html",
            "akv": "https://akvideo.stream/embed-{0}.html",
            "rpt": "https://www.raptu.com/e/{0}",
            "lox": "https://vidlox.tv/embed-{0}.html",
            "vsh": "http://vshare.eu/embed-{0}.html"
        }

        self.DEFAULT_ICON_URL = 'https://superrepo.org/static/images/icons/original/xplugin.video.yifymovies.hd.png.pagespeed.ic.ZC96NZE8Y2.jpg'
        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,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
            'Accept-Language': 'pl,en-US;q=0.7,en;q=0.3',
            'Accept-Encoding': 'gzip, deflate'
        }

        self.AJAX_HEADER = dict(self.HEADER)
        self.AJAX_HEADER.update({'X-Requested-With': 'XMLHttpRequest'})

        self.MAIN_URL = 'https://ymovies.to/'
        self.SRCH_URL = self.getFullUrl('?s=')

        self.MAIN_CAT_TAB = [{
            'category': 'list_items',
            'title': _('Releases'),
            'url': self.getFullUrl('files/releases/')
        }, {
            'category':
            'list_popular',
            'title':
            _('Popular'),
            'url':
            self.getFullUrl(
                'wp-admin/admin-ajax.php?action=noprivate_movies_loop&asec=get_pop&needcap=1'
            )
        }, {
            'category':
            'list_items',
            'title':
            _('Top +250'),
            'url':
            self.getFullUrl(
                'files/movies/?meta_key=imdbRating&orderby=meta_value&order=desc'
            )
        }, {
            'category': 'list_genres_filter',
            'title': _('Genres'),
            'url': self.getFullUrl('files/movies/')
        }, {
            'category': 'list_languages_filter',
            'title': _('Languages'),
            'url': self.getFullUrl('languages/')
        }, {
            'category': 'list_countries_filter',
            'title': _('Countries'),
            'url': self.getFullUrl('countries/')
        }, {
            'category': 'search',
            'title': _('Search'),
            'search_item': True,
        }, {
            'category': 'search_history',
            'title': _('Search history'),
        }]

        self.POPULAR_TAB = [{
            'category':
            'list_items2',
            'title':
            _('All'),
            'url':
            self.getFullUrl(
                'wp-admin/admin-ajax.php?action=noprivate_movies_loop&asec=get_pop&needcap=1'
            )
        }, {
            'category':
            'list_items2',
            'title':
            _('Comedies'),
            'url':
            self.getFullUrl(
                'wp-admin/admin-ajax.php?action=noprivate_movies_loop&asec=get_pop&genre=comedy'
            )
        }, {
            'category':
            'list_items2',
            'title':
            _('Animations'),
            'url':
            self.getFullUrl(
                'wp-admin/admin-ajax.php?action=noprivate_movies_loop&asec=get_pop&genre=animation'
            )
        }, {
            'category':
            'list_items2',
            'title':
            _('Dramas'),
            'url':
            self.getFullUrl(
                'wp-admin/admin-ajax.php?action=noprivate_movies_loop&asec=get_pop&genre=drama'
            )
        }]

        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':'OfficialFilmIllimite', 'cookie':'OfficialFilmIllimite.cookie'})
     self.MAIN_URL    = 'https://official-film-illimite.ws/'
     self.DEFAULT_ICON_URL = self.getFullIconUrl('/wp-content/uploads/2016/10/official-film-illimite.png')
     self.cacheLinks = {}
Beispiel #54
0
    def __init__(self):
        CBaseHostClass.__init__(self, {
            'history': 'filmoviplex.com',
            'cookie': 'filmoviplex.cookie'
        })

        self.USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36'
        self.HEADER = {
            'User-Agent': self.USER_AGENT,
            'Accept-Encoding': 'gzip, deflate',
            '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 = 'https://filmoviplex.com/'

        self.DEFAULT_ICON_URL = 'https://www.filmoviplex.com/wp-content/uploads/2020/02/fpstyle.png'

        self.MAIN_CAT_TAB = [
            {
                'category': 'list_items',
                'title': _('Movies'),
                'url': self.getFullUrl('/browse-all-videos-1.html')
            },
            {
                'category': 'list_items',
                'title': _('Popular Movies'),
                'url': self.getFullUrl('/browse-popular-videos-1.html')
            },
            {
                'category': 'list_items',
                'title': _('Most Viewed Movies'),
                'url': self.getFullUrl('/browse-views-videos-1.html')
            },
            {
                'category': 'list_items',
                'title': _('Top Movies'),
                'url': self.getFullUrl('/browse-top-videos-1.html')
            },
            #{'category':'categories',      'title': _('Categories'),           'url': self.MAIN_URL },
            {
                'category': 'list_items',
                'title': _('Random Movies'),
                'url': self.getFullUrl('/browse-random-videos-1.html')
            },
            {
                'category': 'list_items',
                'title': _('Series'),
                'url': self.getFullUrl('/browse-series-videos-1.html')
            },
            {
                'category': 'list_items',
                'title': _('Popular Series'),
                'url': self.getFullUrl('/browse-series-popular-1.html')
            },
            {
                'category': 'list_items',
                'title': _('Most Viewed Series'),
                'url': self.getFullUrl('/browse-series-views-1.html')
            },
            {
                'category': 'list_items',
                'title': _('Top Series'),
                'url': self.getFullUrl('/browse-series-top-1.html')
            },
            #{'category':'year',            'title': _('Year'),                 'url': self.MAIN_URL },
            {
                'category': 'search',
                'title': _('Search'),
                'search_item': True
            },
            {
                'category': 'search_history',
                'title': _('Search history')
            }
        ]

        self.cacheSeasons = []
        self.cacheLinks = {}
        self.cacheFilters = {
            'movies': [],
            'top_movies': [],
            'series': [],
            'new_movies': [],
            'new_episodes': []
        }