Пример #1
0
    def play(self, title, year, imdb, tvdb, tmdb, season, episode, tvshowtitle,
             premiered, meta, select):
        try:
            #print ("PLAYING ITEM")
            #print (title, year, imdb, tvdb, tmdb, season, episode, tvshowtitle, premiered, meta, select)
            url = None
            debug('PLAY ITEM:', title)

            title = tvshowtitle if not tvshowtitle == None else title

            if tvshowtitle == None:
                season = None
                episode = None

            url, id = premiumize.scrapecloud(title,
                                             self.matchTitle,
                                             year=year,
                                             season=season,
                                             episode=episode)

            if url == None or url == '' or url == '0':
                return self.errorForSources()

            try:
                meta = json.loads(meta)
            except:
                pass

            from resources.lib.modules.player import player
            player().run(title, year, season, episode, imdb, tvdb, tmdb, url,
                         meta, id)
        except:
            pass
Пример #2
0
    def play(self, title, year, imdb, tvdb, season, episode, tvshowtitle,
             premiered, meta, clearlogo):
        url = None
        debug('PLAY ITEM:', title)

        title = tvshowtitle if not tvshowtitle == None else title

        if tvshowtitle == None:
            season = None
            episode = None

        url, id = debrid.scrapecloud(title,
                                     year=year,
                                     season=season,
                                     episode=episode)

        if url == None or url == '' or url == '0':
            return self.errorForSources()

        try:
            meta = json.loads(meta)
        except:
            pass
        xbmc.executebuiltin('ActivateWindow(busydialognocancel)')
        from resources.lib.modules.player import player
        player().run(title, year, season, episode, imdb, tvdb, url, meta, id,
                     clearlogo)
Пример #3
0
    def directPlay(self, url, title, year, imdb, tvdb, season, episode,
                   tvshowtitle, premiered, meta, id, name, clearlogo):
        try:
            debug('PLAY ITEM:', title, id)

            title = tvshowtitle if not tvshowtitle == None else title

            if url == None or url == '' or url == '0':
                return self.errorForSources()

            elif url == 'resolve':

                torrFile = debrid.torrentItemToDownload(name, id)
                control.infoDialog('Playing Torrent Item',
                                   torrFile['filename'],
                                   time=3)
                url = torrFile['download']
                id = torrFile['id']
                if url == None: return self.errorForSources()

            try:
                meta = json.loads(meta)
            except:
                pass

            from resources.lib.modules.player import player
            player().run(title, year, season, episode, imdb, tvdb, url, meta,
                         id, clearlogo)
        except:
            pass
Пример #4
0
    def directPlay(self, url, title, year, imdb, tvdb, season, episode,
                   tvshowtitle, premiered, meta, id):
        try:
            debug('PLAY ITEM:', title, id)

            title = tvshowtitle if not tvshowtitle == None else title

            if url == None or url == '' or url == '0':
                return self.errorForSources()

            try:
                meta = json.loads(meta)
            except:
                pass

            from resources.lib.modules.player import player
            player().run(title, year, season, episode, imdb, tvdb, url, meta,
                         id)
        except:
            pass