seriesmarker.persistence.factory.role_factory module¶
-
class
RoleFactory
[source]¶ Bases:
seriesmarker.persistence.factory.base_factory.BaseFactory
Factory to create role objects from TheTVDB data.
-
static
new_role
(pytvdb_actor, update=None)[source]¶ Creates a persistable role object from TheTVDB data.
This method will create a new
Role
instance from a pytvdbapi actor object. If a role object is given, the existing one will be updated with the data instead.Parameters: - pytvdb_actor (
pytvdbapi.actor.Actor
) – The data to create the role from. - update (
Role
) – A role to update with new data.
Returns: The newly created or updated
Role
instance.- pytvdb_actor (
-
static