GTD2020-05-31 icon indicating copy to clipboard operation
GTD2020-05-31 copied to clipboard

用于浏览、阅读和下载存储在 Calibre 数据库中的电子书的 Web 应用程序janeczku/calibre-web: Web app for browsing, reading and downloading eBooks stored in a Calibre database

Open kunpeng9 opened this issue 4 years ago • 0 comments

Calibre-Web is a web app providing a clean interface for browsing, reading and downloading eBooks using an existing Calibre database.

Calibre-Web 是一个 web 应用程序,它为使用现有的 Calibre 数据库浏览、阅读和下载电子书提供了一个干净的界面。

This software is a fork of library and licensed under the GPL v3 License.

这个软件是库的一个分支,并根据 GPL v3 许可协议进行许可。

Features 功能

  • Bootstrap 3 HTML5 interface 3 HTML5 界面
  • full graphical setup 完全图形化设置
  • User management with fine-grained per-user permissions 具有细粒度的每个用户权限的用户管理
  • Admin interface 管理界面
  • User Interface in czech, dutch, english, finnish, french, german, greek, hungarian, italian, japanese, khmer, polish, russian, simplified chinese, spanish, swedish, turkish, ukrainian 用户界面有捷克,荷兰,英国,芬兰,法国,德国,希腊,匈牙利,意大利,日本,高棉,波兰,俄罗斯,简体中文,西班牙,瑞典,土耳其,乌克兰
  • OPDS feed for eBook reader apps 电子书阅读器应用程序的 OPDS feed
  • Filter and search by titles, authors, tags, series and language 按标题、作者、标签、系列和语言过滤和搜索
  • Create a custom book collection (shelves) 创建一个定制的图书收藏 (书架)
  • Support for editing eBook metadata and deleting eBooks from Calibre library 支持编辑电子书元数据和从 Calibre 库中删除电子书
  • Support for converting eBooks through Calibre binaries 支持通过 Calibre 二进制文件转换电子书
  • Restrict eBook download to logged-in users 限制登录用户下载电子书
  • Support for public user registration 支援公众用户登记
  • Send eBooks to Kindle devices with the click of a button 点击一个按钮就可以把电子书发送到 Kindle 设备上
  • Sync your Kobo devices through Calibre-Web with your Calibre library 通过 Calibre-Web 与 Calibre 库同步您的 Kobo 设备
  • Support for reading eBooks directly in the browser (.txt, .epub, .pdf, .cbr, .cbt, .cbz) 支持在浏览器中直接阅读电子书 (. txt,. epub,. pdf,. cbr,. cbt,. cbz)
  • Upload new books in many formats, including audio formats (.mp3, .m4a, .m4b) 上传多种格式的新书,包括音频格式 (. mp3,. m4a,. m4b)
  • Support for Calibre Custom Columns 支持 Calibre 自定义列
  • Ability to hide content based on categories and Custom Column content per user 根据每个用户的类别和自定义列内容隐藏内容的能力
  • Self-update capability 自我更新能力
  • "Magic Link" login to make it easy to log on eReaders “魔法链接” 登录,方便登录电子书阅读器
  • Login via LDAP, google/github oauth and via proxy authentication 通过 LDAP、 google/github oauth 和代理认证登录

Quick start 快速启动

  1. Install dependencies by running 通过运行安装依赖项pip3 install --target vendor -r requirements.txt (python3.x) or (python3.x) 或者pip install --target vendor -r requirements.txt (python2.7).
  2. Execute the command: 执行命令:python cps.py (or (或nohup python cps.py - recommended if you want to exit the terminal window) - 如果你要退出终端机视窗,建议使用)
  3. Point your browser to 把你的浏览器指向http://localhost:8083 or 或http://localhost:8083/opds for the OPDS catalog 用于 OPDS 目录
  4. Set 预备Location of Calibre database to the path of the folder where your Calibre library (metadata.db) lives, push "submit" button
    Optionally a Google Drive can be used to host the calibre library 还可以使用 googledrive 来托管 calibre 库-> Using Google Drive integration - > 使用 Google Drive
  5. Go to Login page 登录页面

Default admin login:
Username: admin
Password: admin123

默认的 admin login: Username: admin Password: admin123

Issues with Ubuntu: Please note that running the above install command can fail on some versions of Ubuntu, saying "can't combine user with prefix". This is a known bug and can be remedied by using the command pip install --system --target vendor -r requirements.txt instead.

Ubuntu 的问题: 请注意,在某些版本的 Ubuntu 上运行上面的安装命令可能会失败,说 “不能将用户和前缀结合起来”。这是一个已知的 bug,可以通过使用命令 pip install -- system -- target vendor-r requirements.txt 来弥补。

Requirements 要求

python 3.x+, (Python 2.7+)

Python 3. x + ,(Python 2.7 +)

Optionally, to enable on-the-fly conversion from one ebook format to another when using the send-to-kindle feature, or during editing of ebooks metadata:

此外,在使用发送到 kindle 功能或编辑电子书元数据时,还可以实现从一种电子书格式到另一种格式的动态转换:

Download and install the Calibre desktop program for your platform and enter the folder including program name (normally /opt/calibre/ebook-convert, or C:\Program Files\calibre\ebook-convert.exe) in the field "calibre's converter tool" on the setup page.

下载并安装 Calibre 桌面程序,然后在设置页面的 “Calibre 的转换工具” 字段中输入包含程序名 (通常 / opt/Calibre/ebook-convert,或 c: Program Files Calibre-convert.exe) 的文件夹。

Download Kepubify tool for your platform and place the binary starting with kepubify in Linux: \opt\kepubify Windows: C:\Program Files\kepubify.

下载您平台上的 Kepubify 工具,并将二进制文件以 Kepubify 开头放在 Linux 中: opt Kepubify Windows: c: Program Files Kepubify。

Docker Images 图片来源: Docker Images

Pre-built Docker images are available in these Docker Hub repositories:

在这些 Docker Hub 存储库中可以找到预先构建的 Docker 映像:

Technosoft2000 - x64 Technosoft2000-x64

LinuxServer - x64, armhf, aarch64 LinuxServer-x64,arhf,aarch64

  • Docker Hub - https://hub.docker.com/r/linuxserver/calibre-web

    Https://Hub.Docker.com/r/linuxserver/calibre-web 集线器

  • Github - https://github.com/linuxserver/docker-calibre-web

    Github- https://Github.com/linuxserver/docker-calibre-web

  • Github - (Optional Calibre layer) - https://github.com/linuxserver/docker-calibre-web/tree/calibre

    Github-(可选的 Calibre 层)- https://Github.com/linuxserver/docker-Calibre-web/tree/Calibre

    This image has the option to pull in an extra docker manifest layer to include the Calibre ebook-convert binary. Just include the environmental variable DOCKER_MODS=linuxserver/calibre-web:calibre in your docker run/docker compose file. (x64 only)

    这个图片有一个选项,拉在一个额外的 docker 清单层,包括 Calibre 电子书转换二进制文件。只需在 DOCKER run/DOCKER 撰写文件中包含环境变量 DOCKER _ mods = linuxserver/calibre-web: calibre。(只限 x64)

    If you do not need this functionality then this can be omitted, keeping the image as lightweight as possible.

    如果您不需要这个功能,那么可以省略它,保持图像尽可能的轻量级。

    Both the Calibre-Web and Calibre-Mod images are rebuilt automatically on new releases of Calibre-Web and Calibre respectively, and on updates to any included base image packages on a weekly basis if required.

    Calibre-Web 和 Calibre-Mod 图像都会分别在 Calibre-Web 和 Calibre 的新版本上自动重建,如果需要的话,还会每周更新包含的基本图像包。

    • The "path to convertertool" should be set to “path to convertertool” 应该设置为/usr/bin/ebook-convert
    • The "path to unrar" should be set to “解开之路” 应该设置为/usr/bin/unrar

For further information, How To's and FAQ please check the Wiki

如需进一步的信息,如何和常见问题请检查维基

Please have a look at our Contributing Guidelines

请参阅我们的贡献指南 https://github.com/janeczku/calibre-web/

kunpeng9 avatar Nov 24 '20 06:11 kunpeng9