seriesmarker.persistence.factory.season_factory module¶
-
class
SeasonFactory
[source]¶ Bases:
seriesmarker.persistence.factory.base_factory.BaseFactory
Factory to create season objects from TheTVDB data.
-
new_season
(series, pytvdb_season, update=None)[source]¶ Creates a persistable season object from TheTVDB data.
This method will create a new
Season
instance from pytvdbapi episode objects. If a season object is given, the existing one will be updated with the data instead. In both cases, it also traverses the episodes of a season, usingEpisodeFactory
, to populate it with data.Parameters: Returns: The newly created or updated
Season
instance.
-