mirror of
https://github.com/hyugogirubato/cbz.git
synced 2026-09-26 13:31:00 +00:00
Added pdf support
This commit is contained in:
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user