GenjiApp / EPUB-Plugins

OS X Spotlight / Quick Look plugins for EPUBs
100 stars 5 forks source link

about 1MB HTML preview limit in Quick Look generator #5

Closed HaveF closed 2 years ago

HaveF commented 2 years ago

Hi, Genji,

Great thanks for this plugins,

This plugins works great with foxtrot search (https://help.foxtrot-search.com/650-third-party-file-formats).

The foxtrot heavily relay on the Quick Look plugins to display epub's content.

So, the only problem I faced now is, when the epub is great than 1MB, I cannot easily view the content by your Quick Look plugins.

Could it possible to release a bigger preview size limit version of quick look plugins?

Thanks again.

GenjiApp commented 2 years ago

If you are familiar with Objective-C, edit line 21 in Quick Look Generator/GeneratePreviewForURL.m.

from: static const NSUInteger kMaxLenghOfContents = 1024 * 1024;

to: static const NSUInteger kMaxLenghOfContents = 1024 * 1024 * 10; // about 10MB

And, build Quick Look plugin yourself.

HaveF commented 2 years ago

That's all?

I'm not familiar with OC, but I will try to build. Thanks!

GenjiApp commented 2 years ago

EPUB.qlgenerator v1.2 is out. Please check it.

GenjiApp commented 2 years ago

Oops, the feature of changing the loading limit may not work properly. I will investigate.

GenjiApp commented 2 years ago

I changed QLGenerator's loading limit from 1MB to 50MB. Please check it.

HaveF commented 2 years ago

Works like charm ❤️ ❤️ ❤️ Thanks