Fix Flask app context error in run_download thread

This commit is contained in:
2026-03-21 01:26:52 +01:00
parent 5387e3abba
commit 5860e4634b

1
app.py
View File

@@ -108,6 +108,7 @@ def validate_spotify_url(url):
def run_download(download_id, urls, format_type, delete_old, copy_choice):
with app.app_context():
download = Download.query.get(download_id)
if not download:
return