Calibre-web支持多格式发送
原版的calibre-web需要转换为mobi才能发送,由于搭建的服务器arm版的系统不支持在线转换,同时手头的设备大多直接支持epub格式,所以可以尝试不经转换,直接发送epub的格式。
找到配置文件,一般是在系统的 /app/calibre-web/cps/helper.py,
简单修改一下配置文件,即可支持多格式发送,而不用经过转换。
大约是在 169行开始,是支持不转换发送的格式。
if 'MOBI' in formats:
book_formats.append({'format': 'Mobi',
'convert': 0,
'text': _('Send %(format)s to Kindle', format='Mobi')})
if 'PDF' in formats:
book_formats.append({'format': 'Pdf',
'convert': 0,
'text': _('Send %(format)s to Kindle', format='Pdf')})
if 'AZW' in formats:
book_formats.append({'format': 'Azw',
'convert': 0,
'text': _('Send %(format)s to Kindle', format='Azw')})
if config.config_converterpath:
book_formats.extend(check_send_to_kindle_with_converter(formats))
添加epub支持
if 'EPUB' in formats:
book_formats.append({'format': 'EPUB',
'convert': 0,
'text': _('Send %(format)s to Kindle', format='EPUB')})
复制完成之后,重启服务器。
这样在界面上就有了发送选项。