janeczku / calibre-web

:books: Web app for browsing, reading and downloading eBooks stored in a Calibre database
GNU General Public License v3.0
12.69k stars 1.33k forks source link

Auto convert on upload #3019

Closed subtlepseudonym closed 6 months ago

subtlepseudonym commented 6 months ago

Add configurable auto-conversion on upload

This change adds a step to the upload process that kicks off a conversion task if config_auto_convert_to_format is set to a valid format. To make configuring this relatively easy, a dropdown has been added to Basic Configuration>Feature Configuration, populated by Allowed Upload Fileformats.

It's been noted in an issue comment that this functionality may be slated for eventual inclusion as a plugin rather than the implementation given in this patch. If that's the case, I'm happy to close this PR.

(I didn't fork the Develop branch, so there are a few unrelated commits listed here)

Relevant Issues

subtlepseudonym commented 6 months ago

Closing this in favor of #3020 to avoid merging changes from master into Develop as a side-effect of this change.