akhenakh / gozim

A Go native implementation for ZIM files
MIT License
204 stars 35 forks source link

Support for version > 5 ? #44

Open SR-G opened 2 years ago

SR-G commented 2 years ago

Hello, I tried to launch the latest code available (from november 2021) and sadly i encounter the error message :

2021/12/23 05:19:46 main.go:129: unsupported version, 5 only

(as expected, i would say, per checks in zim.go)

Is there any easy possibility to have support for newer ZIM versions ? And/or to convert one ZIM version to an older one, maybe ?

edit : it seems version 6 is the latest one and can read files in version 5 in the same way, but this is probably not going to work in the other way (version 6 being about "extended clusters" having been added) : "The current major version is 6. You may found old zim archives with major version 5. They are the same than 6 less extended cluster, so you can read a 5 major version as if it was a 6."

Thanks in advance.