MCPcopy Create free account
hub / github.com/dbr/tvdb_api / search

Method search

tvdb_api.py:430–446  ·  view source on GitHub ↗

Search all episodes in season, returns a list of matching Episode instances. >>> t = Tvdb() >>> t['scrubs'][1].search('first day') [ ] >>> See Show.search documentation for further information on search

(self, term=None, key=None)

Source from the content-addressed store, hash-verified

428 return dict.__getitem__(self, episode_number)
429
430 def search(self, term=None, key=None):
431 """Search all episodes in season, returns a list of matching Episode
432 instances.
433
434 >>> t = Tvdb()
435 >>> t['scrubs'][1].search('first day')
436 [<Episode 01x01 - u'My First Day'>]
437 >>>
438
439 See Show.search documentation for further information on search
440 """
441 results = []
442 for ep in self.values():
443 searchresult = ep.search(term=term, key=key)
444 if searchresult is not None:
445 results.append(searchresult)
446 return results
447
448
449class Episode(dict):

Callers

nothing calls this directly

Calls 1

searchMethod · 0.45

Tested by

no test coverage detected