Fix local download (#282)

This commit is contained in:
CaliBrain
2025-09-16 11:19:09 -04:00
committed by GitHub
parent 527c5d495d
commit cd16f09f2e
2 changed files with 11 additions and 1 deletions
+6
View File
@@ -81,6 +81,12 @@ def queue_status() -> Dict[str, Dict[str, Any]]:
Dict: Queue status organized by status type
"""
status = book_queue.get_status()
for _, books in status.items():
for _, book_info in books.items():
if book_info.download_path:
if not os.path.exists(book_info.download_path):
book_info.download_path = None
# Convert Enum keys to strings and properly format the response
return {
status_type.value: books