Added pdf support

This commit is contained in:
hyugogirubato
2024-07-18 00:11:23 +02:00
parent 15d7aaa094
commit 6847e7f281
+1 -1
View File
@@ -19,7 +19,7 @@ def main() -> None:
# Create ComicInfo object from CBZ file # Create ComicInfo object from CBZ file
try: try:
comic_info = ComicInfo.from_cbz(path=comic_path) comic_info = ComicInfo.from_pdf(comic_path) if comic_path.suffix == '.pdf' else ComicInfo.from_cbz(comic_path)
# Launch the CBZ player # Launch the CBZ player
comic_info.show() comic_info.show()
except Exception as e: except Exception as e: