flexget.components.archive.db module#
- class flexget.components.archive.db.ArchiveEntry(**kwargs)[source]#
Bases:
VersionedBase- _sa_class_manager = {'added': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'description': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'sources': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'tags': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'task': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'title': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'url': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
- sources: Mapped[list[ArchiveSource]]#
- tags: Mapped[list[ArchiveTag]]#
- class flexget.components.archive.db.ArchiveSource(name)[source]#
Bases:
VersionedBase- _sa_class_manager = {'archive_entries': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
- archive_entries: Mapped[list[ArchiveEntry]]#
- class flexget.components.archive.db.ArchiveTag(name)[source]#
Bases:
VersionedBase- _sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
- flexget.components.archive.db.db_cleanup(manager, session)[source]#
Remove ArchiveEntry records older than 2 years.
- flexget.components.archive.db.get_source(name, session)[source]#
Return ArchiveSource from db or new one.
- Parameters:
name (string) – Source name
session – SQLAlchemy session
- flexget.components.archive.db.get_tag(name, session)[source]#
Return ArchiveTag from db or new one.
- Parameters:
name (string) – Tag name
session – SQLAlchemy session