rollback: Disable PDF Downloads

This commit is contained in:
TheOnlyWayUp
2024-12-26 15:10:20 +00:00
parent 222e07085f
commit 8f35703265
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -77,7 +77,7 @@ app.add_middleware(RequestCancelledMiddleware)
class DownloadFormat(Enum):
pdf = "pdf"
# pdf = "pdf"
epub = "epub"
@@ -175,9 +175,9 @@ async def handle_download(
case DownloadFormat.epub:
book = EPUBGenerator(metadata, cover_data)
media_type = "application/epub+zip"
case DownloadFormat.pdf:
book = PDFGenerator(metadata, cover_data)
media_type = "application/pdf"
# case DownloadFormat.pdf:
# book = PDFGenerator(metadata, cover_data)
# media_type = "application/pdf"
logger.info(f"Retrieved story metadata and cover ({story_id=})")