Ejemplo n.º 1
0
    def getResult(self, episodes):
        """
        Returns a result of the correct type for this provider
        """
        try:
            result = {'nzb': NZBSearchResult, 'torrent': TorrentSearchResult}[getattr(self, 'type')](episodes)
        except:
            result = SearchResult(episodes)

        result.provider = self
        return result
Ejemplo n.º 2
0
    def getResult(self, episodes):
        """
        Returns a result of the correct type for this provider
        """
        try:
            result = {'nzb': NZBSearchResult, 'torrent': TorrentSearchResult}[getattr(self, 'type')](episodes)
        except:
            result = SearchResult(episodes)

        result.provider = self
        return result
Ejemplo n.º 3
0
 def getResult(self, season=None, episodes=None):
     """
     Returns a result of the correct type for this provider
     """
     return SearchResult(season, episodes)
Ejemplo n.º 4
0
 def getResult(self, episodes):
     """
     Returns a result of the correct type for this provider
     """
     return SearchResult(episodes)