diff --git a/backend/app/services/gallery_dl.py b/backend/app/services/gallery_dl.py index b0d38c9..cb4dce0 100644 --- a/backend/app/services/gallery_dl.py +++ b/backend/app/services/gallery_dl.py @@ -169,8 +169,8 @@ class GalleryDLService: "artist not found", "content no longer available", "has been deleted", - "account.*deleted", - "profile.*not.*exist", + "account deleted", + "profile does not exist", ] GENERIC_NOT_FOUND_PATTERNS = ["does not exist", "no longer available"] NETWORK_ERROR_PATTERNS = [ diff --git a/backend/app/tasks/downloads.py b/backend/app/tasks/downloads.py index 08d4957..8390e98 100644 --- a/backend/app/tasks/downloads.py +++ b/backend/app/tasks/downloads.py @@ -6,6 +6,7 @@ from datetime import datetime, timedelta from typing import Optional from sqlalchemy import select, and_, or_, update +from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy.orm import selectinload from app.tasks.db import get_async_session, cleanup_engine as _cleanup_engine