Adding toggle to prevent downloads from starting when cookies are locked.

This commit is contained in:
Roland 2026-03-14 12:08:23 -06:00
parent 9b3a03012e
commit ae7ab1981f
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
8 changed files with 36 additions and 3 deletions

View file

@ -76,7 +76,7 @@ class ArchiveDownloader(Downloader, ABC):
need_commit = False
if tag_names := download.tag_names:
for name in tag_names:
archive.add_tag(name, session)
archive.add_tag(session, name)
need_commit = True
if need_commit:

View file

@ -393,8 +393,8 @@ class Archive(Base, ModelHelper):
archive = model_archive(session, file_group)
return archive
def add_tag(self, tag_id_or_name: int | str, session: Session = None) -> TagFile:
return self.file_group.add_tag(tag_id_or_name, session)
def add_tag(self, session: Session, tag_id_or_name: int | str) -> TagFile:
return self.file_group.add_tag(session, tag_id_or_name)
@property
def location(self):