Herramientas de usuario

Herramientas del sitio


informatica:software:kavita

Kavita

Aplicación web para la gestión de una biblioteca digital.

Características

  • Buscador integrado
  • Metadata
  • Gestión de usuarios
  • Lector de ebook integrado
  • Visor de imágenes integrado
  • Estadísticas de uso
  • Soporte de archivos:
    • Manga/Comics: ZIP, RAR, RAR5, CBR, CBZ, CB7, CBT, TAR.GZ, 7ZIP/7Z
    • Libros: EPUB2, EPUB3, PDF
    • Imágenes: JPG/JPEG, PNG, WebP, GIF, AVIF
  • Soporte OPDS para conectar desde tu lector favorito
  • Organiza tus ficheros en colecciones, listas de lectura, relación entre series, etc.
  • Centrado en accesibilidad
  • Traducida a más de 10 idiomas

Instalación

Docker

Ejemplo de fichero docker-compose.yml para usar con Docker Compose:

---
version: "2.1"
services:
  kavita:
    image: lscr.io/linuxserver/kavita:latest
    container_name: kavita
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Europe/Madrid
    volumes:
      - ./config:/config
      - ./biblioteca/:/data:ro
    ports:
      - 5000:5000
    restart: unless-stopped

Organización de biblioteca

Posibilidades de estructura de ficheros:

  • The Comic Book Title - V###N### - Issue Title/Cover Title.cbr
  • {Publisher}/{Series}{Year}/{Title}{Vol}{Issue Number}{Month}{Year} ( DC Comics/Wonder Woman (1942 Series)/Wonder Woman Vol.1942 #001. (September. 1942).cbz )

Serie - volume - chapter

Ok, so you've obtained your horde of comics though whatever vector, what's next?

Well, comics come in mostly two formats. CBR and CBZ. CBR is a rar file containing pics or a directory with pics. CBZ is the same, only zip instead of rar.

The first step of my process is to make sure that the files stating they are CBRs are really rar files and the files that are CBZ are really zips. This doesn't matter so much for the windows users but for *nix users, it's crucial that they match, otherwise your comic viewer will try to use unrar to open a zip file and thats just not going to work.

There is a user named Malor89 who wrote a series of perl scripts that are pretty useful but we are only concerned with 'checktype.pl'.

You can find Malor's scripts here.

http://comicrack.cyolito.com/forum/13-scripts/10940-malor89-s-perl-scripts

So, looking at my scripts, first I convert any rar/zips to cbr/cbz

find . -type f -name '.rar' -exec rename .rar .cbr {} ; find . -type f -name '.zip' -exec rename .zip .cbz {} ;

Then I verify the file extension matches the file type.

perl ~/malor89's\ perl\ scripts/checktype.pl $PWD

This will change any misnamed cbr/cbz to the appropriate extension.

Next I convert cases t

o lowercase.

find . -name “.CBR” -exec rename .CBR .cbr {} ; find . -name “.CBZ” -exec rename .CBZ .cbz {} ; find . -name “.Cbr” -exec rename .Cbr .cbr {} ; find . -name “.Cbz” -exec rename .Cbz .cbz {} ; find . -name “.CBr” -exec rename .CBr .cbr {} ; find . -name “.CBz” -exec rename .CBz .cbz {} ;

After that, I verify that the cbr/cbz can be opened without any errors.

echo “Testing cbz for errors…” for file in $(find ${PWD} -type f -name '*.cbz') do unzip -q -t $file > /dev/null 2>&1 || rm -v $file done

echo “Testing cbr for errors…” for file in $(find ${PWD} -type f -name '*.cbr') do unrar t $file > /dev/null 2>&1 || rm -v $file done

The above step often removes bad comic files and I'm glad for it because those will be the corrupted zip/rars that will mess up your collection.

Ok. So we have a bunch of properly named, non-corrupted rar/zip files that contain pictures. Now what?

We have fun tagging them! But how!?!?

comictagger!!!

https://github.com/davide-romanini/comictagger

I'm currently not using this version, I'm using the original 1.1.15 beta but the above should work fine.

One of the nice things about this approach is that it writes the metadata.xml file to CBR/CBZ regardless. It also using pillow for image cover matching.

find . -type f -name “*.cb?” | parallel –eta –bar -j1 proxychains -q python2 ~/scripts/comictagger/comictagger.py -R -s -o -f -t cr -v -i -w –nooverwrite –noabort {}

So, once that's done, you'll have a bunch of comics that should be nicely tagged. But wait. We aren't finished yet.

Personally what I do next is convert my formats from one to the other. I do this so I don't have two copies of Wonder Woman Vol.1942 #036. (July. 1949).cbz and Wonder Woman Vol.1942 #036. (July. 1949).cbr.

Personally I like rar for the data recovery.

The script I have for that is a bit long so I'll see about putting it up somewhere if anyone cares.

I sort by {Publisher}/{Series}{Year}/{Title}{Vol}{Issue Number}{Month}{Year}

So my files look like this.

DC Comics/Wonder Woman (1942 Series)/Wonder Woman Vol.1942 #001. (September. 1942).cbz

Once the metadata tagging is done, I load up Comicrack and use the ComicDB metadata lookup plugin for any comics that may have been overlooked and to verify the initial tagging. Renaming and moving is handled by Comicrack. Comictagger should be able to do it also but since my process isn't broken I have no reason to try.

Configuración

Temas

Se puede modificar el aspecto a través de CSS.

Existe un repositorio donde podremos descargar algunos creados por la comunidad.

Se descarga el fichero .css en el directorio config/themes/ de nuestra instalación de Kavita y luego en el menú de administración → preferencias → Tema, pulsamos Escanear y lo tendremos disponible para aplicarlo.

informatica/software/kavita.txt · Última modificación: por tempwin