Fix #1361 (covers of archived books not shown)

pull/1409/head
Ozzieisaacs 5 years ago
commit 51f12c51ad

@ -16,7 +16,7 @@ We can offer only very limited support regarding configuration of **Reverse-Prox
### **Translation** ### **Translation**
Some of the user languages in Calibre-Web having missing translations. We are happy to add the missing texts if you are translate them. Create a Pull Request, create an issue with the .po file attached, or write an email to "ozzie.fernandez.isaacs@googlemail.com" with attached translation file. To display all book languages in your native language an additional file is used (iso_language_names.py). The content of this file is autogenerated with the corresponding translations of Calibre, please do not edit this file on your own. Some of the user languages in Calibre-Web having missing translations. We are happy to add the missing texts if you translate them. Create a Pull Request, create an issue with the .po file attached, or write an email to "ozzie.fernandez.isaacs@googlemail.com" with attached translation file. To display all book languages in your native language an additional file is used (iso_language_names.py). The content of this file is autogenerated with the corresponding translations of Calibre, please do not edit this file on your own.
### **Documentation** ### **Documentation**

@ -492,7 +492,7 @@ def get_cover_on_failure(use_generic_cover):
def get_book_cover(book_id): def get_book_cover(book_id):
book = db.session.query(db.Books).filter(db.Books.id == book_id).filter(common_filters()).first() book = db.session.query(db.Books).filter(db.Books.id == book_id).filter(common_filters(allow_show_archived=True)).first()
return get_book_cover_internal(book, use_generic_cover_on_failure=True) return get_book_cover_internal(book, use_generic_cover_on_failure=True)

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Calibre-Web\n" "Project-Id-Version: Calibre-Web\n"
"Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n" "Report-Msgid-Bugs-To: https://github.com/janeczku/Calibre-Web\n"
"POT-Creation-Date: 2020-05-01 17:15+0200\n" "POT-Creation-Date: 2020-05-09 16:09+0200\n"
"PO-Revision-Date: 2019-07-26 11:44+0100\n" "PO-Revision-Date: 2019-07-26 11:44+0100\n"
"Last-Translator: minakmostoles <xxx@xxx.com>\n" "Last-Translator: minakmostoles <xxx@xxx.com>\n"
"Language: es\n" "Language: es\n"
@ -48,8 +48,8 @@ msgstr ""
msgid "Unknown command" msgid "Unknown command"
msgstr "" msgstr ""
#: cps/admin.py:115 cps/editbooks.py:504 cps/editbooks.py:514 #: cps/admin.py:115 cps/editbooks.py:505 cps/editbooks.py:515
#: cps/editbooks.py:620 cps/editbooks.py:622 cps/editbooks.py:688 #: cps/editbooks.py:621 cps/editbooks.py:623 cps/editbooks.py:689
#: cps/updater.py:509 cps/uploader.py:99 cps/uploader.py:110 #: cps/updater.py:509 cps/uploader.py:99 cps/uploader.py:110
msgid "Unknown" msgid "Unknown"
msgstr "Desconocido" msgstr "Desconocido"
@ -294,7 +294,7 @@ msgstr ""
msgid "Book Successfully Deleted" msgid "Book Successfully Deleted"
msgstr "" msgstr ""
#: cps/editbooks.py:253 cps/editbooks.py:489 #: cps/editbooks.py:253 cps/editbooks.py:490
msgid "Error opening eBook. File does not exist or file is not accessible" msgid "Error opening eBook. File does not exist or file is not accessible"
msgstr "Error abriendo un eBook. El archivo no existe o no es accesible" msgstr "Error abriendo un eBook. El archivo no existe o no es accesible"
@ -307,16 +307,16 @@ msgstr "editar metadatos"
msgid "%(langname)s is not a valid language" msgid "%(langname)s is not a valid language"
msgstr "%(langname)s no es un idioma válido" msgstr "%(langname)s no es un idioma válido"
#: cps/editbooks.py:413 cps/editbooks.py:663 #: cps/editbooks.py:413 cps/editbooks.py:664
#, python-format #, python-format
msgid "File extension '%(ext)s' is not allowed to be uploaded to this server" msgid "File extension '%(ext)s' is not allowed to be uploaded to this server"
msgstr "No se permite subir archivos con la extensión '%(ext)s' a este servidor" msgstr "No se permite subir archivos con la extensión '%(ext)s' a este servidor"
#: cps/editbooks.py:417 cps/editbooks.py:667 #: cps/editbooks.py:417 cps/editbooks.py:668
msgid "File to be uploaded must have an extension" msgid "File to be uploaded must have an extension"
msgstr "El archivo a subir debe tener una extensión" msgstr "El archivo a subir debe tener una extensión"
#: cps/editbooks.py:429 cps/editbooks.py:701 #: cps/editbooks.py:429 cps/editbooks.py:702
#, python-format #, python-format
msgid "Failed to create path %(path)s (Permission denied)." msgid "Failed to create path %(path)s (Permission denied)."
msgstr "Fallo al crear la ruta %(path)s (permiso denegado)" msgstr "Fallo al crear la ruta %(path)s (permiso denegado)"
@ -331,48 +331,48 @@ msgstr "Falla al guardar el archivo %(file)s."
msgid "File format %(ext)s added to %(book)s" msgid "File format %(ext)s added to %(book)s"
msgstr "Fichero con formato %(ext)s añadido a %(book)s" msgstr "Fichero con formato %(ext)s añadido a %(book)s"
#: cps/editbooks.py:606 #: cps/editbooks.py:607
msgid "Metadata successfully updated" msgid "Metadata successfully updated"
msgstr "Metadatos actualizados correctamente" msgstr "Metadatos actualizados correctamente"
#: cps/editbooks.py:615 #: cps/editbooks.py:616
msgid "Error editing book, please check logfile for details" msgid "Error editing book, please check logfile for details"
msgstr "Error al editar el libro, por favor compruebe el fichero de registro (logfile) para tener más detalles" msgstr "Error al editar el libro, por favor compruebe el fichero de registro (logfile) para tener más detalles"
#: cps/editbooks.py:675 #: cps/editbooks.py:676
#, python-format #, python-format
msgid "File %(filename)s could not saved to temp dir" msgid "File %(filename)s could not saved to temp dir"
msgstr "" msgstr ""
#: cps/editbooks.py:692 #: cps/editbooks.py:693
msgid "Uploaded book probably exists in the library, consider to change before upload new: " msgid "Uploaded book probably exists in the library, consider to change before upload new: "
msgstr "" msgstr ""
#: cps/editbooks.py:707 #: cps/editbooks.py:709
#, python-format #, python-format
msgid "Failed to store file %(file)s (Permission denied)." msgid "Failed to Move File %(file)s: %(error)s"
msgstr "Fallo al guardar el archivo %(file)s (permiso denegado)" msgstr ""
#: cps/editbooks.py:713 #: cps/editbooks.py:723
#, python-format #, python-format
msgid "Failed to delete file %(file)s (Permission denied)." msgid "Failed to Move Cover File %(file)s: %(error)s"
msgstr "Fallo al borrar el archivo %(file)s (permiso denegado)" msgstr ""
#: cps/editbooks.py:804 #: cps/editbooks.py:808
#, python-format #, python-format
msgid "File %(file)s uploaded" msgid "File %(file)s uploaded"
msgstr "El fichero %(file)s a sido subido" msgstr "El fichero %(file)s a sido subido"
#: cps/editbooks.py:833 #: cps/editbooks.py:837
msgid "Source or destination format for conversion missing" msgid "Source or destination format for conversion missing"
msgstr "Falta la fuente o el formato de destino para la conversión" msgstr "Falta la fuente o el formato de destino para la conversión"
#: cps/editbooks.py:841 #: cps/editbooks.py:845
#, python-format #, python-format
msgid "Book successfully queued for converting to %(book_format)s" msgid "Book successfully queued for converting to %(book_format)s"
msgstr "Libro puesto a la cola con éxito para convertirlo a %(book_format)s" msgstr "Libro puesto a la cola con éxito para convertirlo a %(book_format)s"
#: cps/editbooks.py:845 #: cps/editbooks.py:849
#, python-format #, python-format
msgid "There was an error converting this book: %(res)s" msgid "There was an error converting this book: %(res)s"
msgstr "Ocurrió un error al convertir este libro: %(res)s" msgstr "Ocurrió un error al convertir este libro: %(res)s"
@ -446,103 +446,103 @@ msgstr "Correo electrónico: %(book)s"
msgid "The requested file could not be read. Maybe wrong permissions?" msgid "The requested file could not be read. Maybe wrong permissions?"
msgstr "El fichero solicitado no puede ser leído. ¿Quizás existen problemas con los permisos?" msgstr "El fichero solicitado no puede ser leído. ¿Quizás existen problemas con los permisos?"
#: cps/helper.py:299 #: cps/helper.py:300
#, python-format #, python-format
msgid "Deleting book %(id)s failed, path has subfolders: %(path)s" msgid "Deleting book %(id)s failed, path has subfolders: %(path)s"
msgstr "" msgstr ""
#: cps/helper.py:309 #: cps/helper.py:310
#, python-format #, python-format
msgid "Deleting book %(id)s failed: %(message)s" msgid "Deleting book %(id)s failed: %(message)s"
msgstr "" msgstr ""
#: cps/helper.py:319 #: cps/helper.py:320
#, python-format #, python-format
msgid "Deleting book %(id)s failed, book path not valid: %(path)s" msgid "Deleting book %(id)s failed, book path not valid: %(path)s"
msgstr "" msgstr ""
#: cps/helper.py:354 #: cps/helper.py:355
#, python-format #, python-format
msgid "Rename title from: '%(src)s' to '%(dest)s' failed with error: %(error)s" msgid "Rename title from: '%(src)s' to '%(dest)s' failed with error: %(error)s"
msgstr "El renombrado del título de: '%(src)s' a '%(dest)s' falló con errores: %(error)s" msgstr "El renombrado del título de: '%(src)s' a '%(dest)s' falló con errores: %(error)s"
#: cps/helper.py:364 #: cps/helper.py:365
#, python-format #, python-format
msgid "Rename author from: '%(src)s' to '%(dest)s' failed with error: %(error)s" msgid "Rename author from: '%(src)s' to '%(dest)s' failed with error: %(error)s"
msgstr "El renombrado del autor de: '%(src)s' a '%(dest)s' falló con errores: %(error)s" msgstr "El renombrado del autor de: '%(src)s' a '%(dest)s' falló con errores: %(error)s"
#: cps/helper.py:378 #: cps/helper.py:379
#, python-format #, python-format
msgid "Rename file in path '%(src)s' to '%(dest)s' failed with error: %(error)s" msgid "Rename file in path '%(src)s' to '%(dest)s' failed with error: %(error)s"
msgstr "Ha fallado el cambio de nombre del archivo '%(src)s' a '%(dest)s' con el error: %(error)s" msgstr "Ha fallado el cambio de nombre del archivo '%(src)s' a '%(dest)s' con el error: %(error)s"
#: cps/helper.py:404 cps/helper.py:414 cps/helper.py:422 #: cps/helper.py:405 cps/helper.py:415 cps/helper.py:423
#, python-format #, python-format
msgid "File %(file)s not found on Google Drive" msgid "File %(file)s not found on Google Drive"
msgstr "Fichero %(file)s no encontrado en Google Drive" msgstr "Fichero %(file)s no encontrado en Google Drive"
#: cps/helper.py:443 #: cps/helper.py:444
#, python-format #, python-format
msgid "Book path %(path)s not found on Google Drive" msgid "Book path %(path)s not found on Google Drive"
msgstr "La ruta %(path)s del libro no fue encontrada en Google Drive" msgstr "La ruta %(path)s del libro no fue encontrada en Google Drive"
#: cps/helper.py:550 #: cps/helper.py:551
msgid "Failed to create path for cover" msgid "Failed to create path for cover"
msgstr "" msgstr ""
#: cps/helper.py:555 #: cps/helper.py:556
msgid "Cover-file is not a valid image file, or could not be stored" msgid "Cover-file is not a valid image file, or could not be stored"
msgstr "" msgstr ""
#: cps/helper.py:566 #: cps/helper.py:567
msgid "Only jpg/jpeg/png/webp files are supported as coverfile" msgid "Only jpg/jpeg/png/webp files are supported as coverfile"
msgstr "" msgstr ""
#: cps/helper.py:580 #: cps/helper.py:581
msgid "Only jpg/jpeg files are supported as coverfile" msgid "Only jpg/jpeg files are supported as coverfile"
msgstr "" msgstr ""
#: cps/helper.py:622 #: cps/helper.py:623
msgid "Unrar binary file not found" msgid "Unrar binary file not found"
msgstr "" msgstr ""
#: cps/helper.py:635 #: cps/helper.py:636
msgid "Error excecuting UnRar" msgid "Error excecuting UnRar"
msgstr "" msgstr ""
#: cps/helper.py:691 #: cps/helper.py:692
msgid "Waiting" msgid "Waiting"
msgstr "Esperando" msgstr "Esperando"
#: cps/helper.py:693 #: cps/helper.py:694
msgid "Failed" msgid "Failed"
msgstr "Fallido" msgstr "Fallido"
#: cps/helper.py:695 #: cps/helper.py:696
msgid "Started" msgid "Started"
msgstr "Comenzado" msgstr "Comenzado"
#: cps/helper.py:697 #: cps/helper.py:698
msgid "Finished" msgid "Finished"
msgstr "Finalizado" msgstr "Finalizado"
#: cps/helper.py:699 #: cps/helper.py:700
msgid "Unknown Status" msgid "Unknown Status"
msgstr "Estado desconocido" msgstr "Estado desconocido"
#: cps/helper.py:704 #: cps/helper.py:705
msgid "E-mail: " msgid "E-mail: "
msgstr "E-mail " msgstr "E-mail "
#: cps/helper.py:706 cps/helper.py:710 #: cps/helper.py:707 cps/helper.py:711
msgid "Convert: " msgid "Convert: "
msgstr "Convertir: " msgstr "Convertir: "
#: cps/helper.py:708 #: cps/helper.py:709
msgid "Upload: " msgid "Upload: "
msgstr "Subir: " msgstr "Subir: "
#: cps/helper.py:712 #: cps/helper.py:713
msgid "Unknown Task: " msgid "Unknown Task: "
msgstr "Tarea desconocida" msgstr "Tarea desconocida"
@ -1740,7 +1740,7 @@ msgstr ""
#: cps/templates/config_edit.html:300 #: cps/templates/config_edit.html:300
#, python-format #, python-format
msgid "Obtain %(provider)s OAuth Credential" msgid "Obtain %(provider)s OAuth Credential"
msgstr "Obtener la Credencial OAuth de %(proveedor)" msgstr "Obtener la Credencial OAuth de %(provider)"
#: cps/templates/config_edit.html:303 #: cps/templates/config_edit.html:303
#, python-format #, python-format

File diff suppressed because it is too large Load Diff

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2020-05-08 14:54+0200\n" "POT-Creation-Date: 2020-05-09 16:09+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

Loading…
Cancel
Save