MangaDex@Home... in Golang!
Another unofficial client-rewrite by @lflare!
Disclaimer
No support will be given with this unofficial rewrite. Feature recommendations are not welcomed, but pull requests with new features are. This fork was created entirely out of goodwill and boredom, and if the creator so decides, will not receive future support at any point in time.
Installation
In order to get this client working, you will need the basic client requirements stipulated by the official MDClient and additionally, Python 3.8 and PIP. With requirements fulfilled, you will need to install the libraries that this rewrite uses
root@af04d92d0b1e:/go# go get github.com/lflare/mdathome-golang
root@af04d92d0b1e:/go# go run github.com/lflare/mdathome-golang
Configuration
As with the official client, this client reads a configuration JSON file.
{
"cache_directory": "./cache",
"client_secret": "",
"client_port": 44300,
"max_cache_size_in_mebibytes": 10000,
"max_reported_size_in_mebibytes": 10000,
"max_kilobits_per_second": 50000,
"graceful_shutdown_in_seconds": 180,
"cache_scan_interval_in_seconds": 300,
}
cache_directory
Self-explanatory
client_secret
Self-explanatory, this should be obtained from the MangaDex@Home page.
client_port
- Recommended 44300
Self-explanatory, runs the client on the port you specify
max_cache_size_in_mebibytes
This is the max cache size in mebibytes stored on your disk, do not exceed what is actually possibly storable on your drive.
max_reported_size_in_mebibytes
This is the cache size reported to the backend server. This may cause your server to get more shards, but due to the nature of how this will work, setting this variable too high will cause too much file "swapping". It is highly recommended that you set this variable the same as max_cache_size_in_mebibytes
.
max_kilobits_per_second
This setting currently only reports to the backend, and does not actually limit the speed client side.
graceful_shutdown_in_seconds
This setting controls how long to wait before giving up while shutting down gracefully
cache_scan_interval_in_seconds
This setting controls the interval in which the cache is scanned and automatically trimmed/evicted when size exceeds max_cache_size_in_mebibytes
License
AGPLv3