mirror of
https://github.com/hyugogirubato/cbz.git
synced 2026-09-26 21:41:03 +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
|
||||
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
|
||||
comic_info.show()
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user