snd-r / komf-userscript Goto Github PK
View Code? Open in Web Editor NEWKomf user script for Komga and Kavita
License: MIT License
Komf user script for Komga and Kavita
License: MIT License
Hello,
I managed to get the Komf docker working with Komga and Kavita support. I am able to use the userscript in Chrome, but it is not working or appearing for me in Safari.
Here's what I see in the developer console:
I'm not particularly knowledgeable in userscripts/coding, if there's anything else you need please let me know.
I apologize, but I may need some help.
I installed Komga and Komf on my NAS using the following docker-compose configuration and have set them up. I can see from the logs that Komf is already running. However, when I try to install the komf-userscript
script on my computer using the Edge browser to configure the Komf server, accessing http://192.168.3.19:8085/
results in a Network Error
. I would like to ask how I should set this up.
version: "3.3"
services:
komga:
image: gotson/komga:latest
container_name: komga
volumes:
- /share/CACHEDEV1_DATA/Container/komga/config:/config
- /share/CACHEDEV1_DATA/Container/komga/tmp:/tmp
- /share/CACHEDEV1_DATA/Container/komga/data:/data
- /share/CACHEDEV4_DATA/OneLibrary:/ol
- /share/CACHEDEV4_DATA/Fan:/fan
ports:
- 25600:25600
environment:
- PUID=1000
- PGID=100
- TZ=Asia/Shanghai
- JAVA_TOOL_OPTIONS=-Xmx4g
#- KOMGA_CORS_ALLOWED_ORIGINS
restart: unless-stopped
komf:
image: sndxr/komf:latest
container_name: komf
ports:
- 8085:8085
environment:
- PUID=1000
- PGID=100
- TZ=Asia/Shanghai
volumes:
- /share/CACHEDEV1_DATA/Container/komf/config:/config
- /share/CACHEDEV1_DATA/Container/komga/tmp:/tmp
- /share/CACHEDEV1_DATA/Container/komga/data:/data
- /share/CACHEDEV4_DATA/OneLibrary:/ol
- /share/CACHEDEV4_DATA/Fan:/fan
restart: unless-stopped
log
19:50:08.508 [main] INFO io.javalin.Javalin -- Starting Javalin ...
19:50:08.633 [main] INFO io.javalin.Javalin -- Javalin started in 282ms \o/
19:50:08.641 [main] INFO io.javalin.Javalin -- Listening on http://localhost:8085/
19:50:08.662 [main] INFO io.javalin.Javalin -- You are running Javalin 6.1.2 (released February 25, 2024).
19:50:09.315 [OkHttp http://172.29.12.1:25600/...] INFO org.snd.mediaserver.komga.KomgaEventListener -- connected to komga on http://172.29.12.1:25600/
If you select a few titles by bulk select, then deselect them, the komf icons are gone until you refresh the webpage.
Not a big issue since you can refresh the webpage to get them back, but figured I would report it nonetheless.
Affects Komga UI
Copied from Snd-R/komf#61
currently the identify button in series view brings a field up to type in series name for identification, but to submit this, you must click search to begin.
Allowing the enter key to be used to submit the search would be ideal.
Hello,
Thank you for your Work! I really like the use of Komf and the Userscript.
I've run into a Problem as i can't see the Title Names and Source Name in manual search. The Text is there but the Backgroud is too dark to see it directly (Picture below). Do you have an Idea what could be the cause?
Thank you for your Help!
Kind Regards,
Eico
Software Versions:
Userscript: 0.11.1
Komga: 1.9.2-master
Firefox: 121.0 (64-Bit)
Tampermonkey: 5.0.0
Hi,
I've noticed that when you try and edit the Komga/Kavita tab in Komf settings it will not show what is currently stored in the config file on the server, instead showing the default settings (ex. http://komga:25600). Saving without updating the information will overwrite the server information in the config file with blank login credentials & the default server address example.
This seems to only happen with the Komga/Kavita tab, every other tab saves and displays properly.
Trying to reset the metadata using two different browsers and I get similar errors:
It can still connect to komf/komga though and using the "identify" option works on this series if I use the terminal to reset the series.
but a manual identify works.
It looks like it might be missing some cross-origin headers?
I'm pretty sure I'm solid up until the "Enter Komf URL" section. I know I'm an idiot and I'm sorry if I'm failing at something so simple, but I have no Docker background and I'm failing at getting the non-JSScript section of this up and running. This is the only thing I'm like 70% capable of completing, but I have no idea how to accomplish this last step. Where the hell do I find the Komf URL?
Connection to komf localhost url fails.
I installed Komga and the userscript correctly, but when configuring Komf to the server the connection failed, I tried in every way and searched the various sites/reddits to see if there was a solution but nothing. I'm using Opera GX and I tried with Chrome thinking it was a browser compatibility problem but nothing,
so it makes me think I'm doing something wrong or whatever.
(I also tried with Kavita, same problem)
Currently it is only possible to identify a single series or a library.
If there is a subset of series that need to be scanned, but not the whole library, it would be nice to create a collection of those series needing to be scanned so komf could identify them
When using the userscript (to fix bad matches mostly) in komga, I am unable to search for the series as it gives an endpoint not found error
everything seems to work fine otherwise, but only the userscript causes this issue... I also dont have the Puzzle Piece icon to change settings for komf via komga ui, but the identify button does show.
I'm using komf in combination with watchtower for zero-maintainance approach. But the script is not automatically updated in my browser, causing confusions as to why komf stopped working on browsers despite it running happily in docker.
My other scripts that was installed from greasyfork are receiving updates regularly.
Possible solution is to host this script to greasyfork in addition to this repo.
I have begun seeing the below errors
Failed to retrieve search results: Request failed with status code 404
Failed to match series: Request failed with status code 404
My script should be setup properly with the @include set as the following:
// @include http://192.168.108.208:8080/*
and the kofl-url set as following:
const komfUrl = useStorage("komf-url", "http://192.168.108.195:8085");
I am unsure on what the issue is now though. It was working and seemingly stopped communicating. I am just unsure on what this communication is that is failing.
Hi, I'd like for this companion userscript to have the series title auto-filled in the manual identification search box. Thanks
As the title says - I don't want to deal with library-wide clean-up in case something goes wrong so I would prefer to fix things somewhat manually here.
Ideal behaviour expectation here would be: Order Books as a checkbox, once ticked, orders books after manual identification and writes a flag in Komf's database to auto-order books in the future for that title with Automatic Identification. This would be similar to how Komf can re-use the metadata provider IDs in auto-identification once set with Manual Identification.
Under provider options > series information
title is misspelled as tittle
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.