def __match_episode(self, show_url, video): episodes = [] show_url = self.base_url + show_url for item in scraper_utils.get_files(self, show_url, cache_limit=1): if re.search('[._ -]S%02d[._ -]?E%02d[._ -]' % (int(video.season), int(video.episode)), item['title'], re.I): episodes.append(item) return episodes
def __match_episode(self, show_url, video): episodes = [] show_url = self.base_url + show_url for item in scraper_utils.get_files(self, show_url, cache_limit=1): if re.search('[._ -]S%02d[._ -]?E%02d[._ -]' % (int(video.season), int(video.episode)), item['title'], re.I): episodes.append(item) return episodes