gen2brain / cbconvert

CBconvert is a Comic Book converter
GNU General Public License v3.0
215 stars 13 forks source link

Case-insensitive sort #13

Closed chowbok closed 1 year ago

chowbok commented 1 year ago

I have a CBR file that has files with the following names:

cbconvert is showing "XXX_Shadow_final.jpg" as the thumb, but "showcase020_p_001.jpg" is the correct one. I assume this is because the "X" is capitalized. Can it be changed to do case-insensitive sorting for the purposes of picking a thumbnail?

gen2brain commented 1 year ago

coverName is using the "natural" sort, I guess I can lowercase all images before sorting and picking the cover but needs to test on a large sample first. Just checked in "mc" which sorts similarly, XXX is the first/top file.

gen2brain commented 1 year ago

This should be fixed in https://github.com/gen2brain/cbconvert/commit/d6e7248112f679842d255e0908fdb4a1014e4dec.