flexget.components.archive.db module#
- class flexget.components.archive.db.ArchiveEntry[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>}#
- added#
- description#
- id#
- sources#
- tags#
- task#
- title#
- url#
- class flexget.components.archive.db.ArchiveSource(name)[source]#
Bases:
VersionedBase- _sa_class_manager = {'id': <sqlalchemy.orm.attributes.InstrumentedAttribute object>, 'name': <sqlalchemy.orm.attributes.InstrumentedAttribute object>}#
- id#
- name#
- 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>}#
- id#
- name#
- 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