petrovvlad / freeLib

freeLib - каталогизатор для библиотек LibRusEc и Flibusta
GNU General Public License v3.0
101 stars 28 forks source link

Support zip in zip #135

Closed gaydenko closed 4 months ago

gaydenko commented 10 months ago

Some libs contain a set of zip files, adn each of them contains another zip files, and the last ones are just zipped fb2. It would be great to support this case.

gaydenko commented 5 months ago

On attempt to (re)scan each fb2 inside zip inside zip result in this error:

QuaZip::setCurrentFile(): ZIP is not open in mdUnzip mode
QuaZip::setCurrentFile(): ZIP is not open in mdUnzip mode
QuaZipFile::open(): file open mode 1 incompatible with ZIP open mode 0
Error open file:  "765053.fb2"
QIODevice::read (QuaZipFile): device not open

So, as I see, it isn't enhancement issue, I guess. It's just some zip-related coding problem, as far as the error shows there is an attempt to extract the file.

gaydenko commented 5 months ago

Sorry, I must add that console error message are for current git master.

ukcuk commented 4 months ago

So, adding support zip"n"zip is still in development?

petrovvlad commented 4 months ago

Yes.

petrovvlad commented 4 months ago

Added support for zip in zip d374c66. Test it please.

ukcuk commented 4 months ago

wow, I'll test it tomorrow, thanks for your advice!

gaydenko commented 4 months ago

Added support for zip in zip d374c66. Test it please.

You did it, sincerely thanks. Have tried true scan without index file using.

ukcuk commented 4 months ago

and, it's working! big thanks. rebuilding without inpx, not using this)