Girbons / comics-downloader

tool to download comics and manga in pdf/epub/cbr/cbz from a website
MIT License
457 stars 49 forks source link

specifying -format cbr creates a zip instead #40

Closed styygeli closed 4 years ago

styygeli commented 4 years ago

When executing with -format cbr flag, it should create a .cbr file, rar compressed. Instead the utility creates a zip compressed file with a .cbr extension.



$ file one-piece-891.cbr

one-piece-891.cbr: Zip archive data, at least v2.0 to extract

$ unzip -q -t one-piece-891.cbr
No errors detected in compressed data of one-piece-891.cbr.

$ rar t one-piece-891.cbr

RAR 5.30 beta 2   Copyright (c) 1993-2015 Alexander Roshal   4 Aug 2015
Trial version             Type RAR -? for help

one-piece-891.cbr is not RAR archive```
Girbons commented 4 years ago

Hi @styygeli,

Thanks for reporting. In the morning I'll try to address this issue. As I remember .CBZ and .CBR files are just .ZIP and .RAR files with their extensions modified, so it is correct to use .zip.