oae / kaizoku

Self-hosted manga downloader
https://kaizoku.app
MIT License
530 stars 32 forks source link

Manga not updating #125

Open IsXGeo opened 1 year ago

IsXGeo commented 1 year ago

Describe the bug

None of the manga I have set to update manage to actually do so. The logs look as such: {"level":30,"time":1692977882069,"pid":296,"hostname":"d4681fb29c34","msg":"Get chapters with following command: mangal inline --source Manganato --query \"Magic Emperor\" --manga exact --chapters all -j"} {"level":30,"time":1692977882127,"pid":296,"hostname":"d4681fb29c34","msg":"There are no missing chapter files for Magic Emperor"}

If I run the mangal query on my local machine it returns this: {"query":"\\Magic Emperor\\","result":[]}

However if I remove the slashes from the query: mangal inline --source Manganato --query "Magic Emperor" --manga exact --chapters all -j"

It successfully returns a lot of data. {"query":"Magic Emperor","result":[{"source":"Manganato","mangal":{"name":"Magic Emperor","url":"https://chapmanganato.com/manga-gr983826", blah blah lots of data

This also seems to extend to removing and re-adding titles. Doing so makes no difference, however I haven't tested deleting all the data and attempting another redownload but that's pretty extreme to do so every time a new chapter is released.

Thanks,

Reproduction steps

No response

Expected behavior

No response

Additional context

No response

Captainpax commented 1 year ago

Had same issue, I needed up dropping this project, using fmd2 now. Really wanted this to work out but no updates and so many bugs. I get it its a newer thing. Ill prob come back to this program probably in a year or so when the project has matured.

On Fri, Aug 25, 2023, 5:55 AM Josh @.***> wrote:

Describe the bug

None of the manga I have set to update manage to actually do so. The logs look as such: {"level":30,"time":1692977882069,"pid":296,"hostname":"d4681fb29c34","msg":"Get chapters with following command: mangal inline --source Manganato --query \"Magic Emperor\" --manga exact --chapters all -j"} {"level":30,"time":1692977882127,"pid":296,"hostname":"d4681fb29c34","msg":"There are no missing chapter files for Magic Emperor"}

If I run the mangal query on my local machine it returns this: {"query":"\Magic Emperor\","result":[]}

However if I remove the slashes from the query: mangal inline --source Manganato --query "Magic Emperor" --manga exact --chapters all -j"

It successfully returns a lot of data. {"query":"Magic Emperor","result":[{"source":"Manganato","mangal":{"name":"Magic Emperor","url":"https://chapmanganato.com/manga-gr983826", blah blah lots of data

This also seems to extend to removing and re-adding titles. Doing so makes no difference, however I haven't tested deleting all the data and attempting another redownload but that's pretty extreme to do so every time a new chapter is released.

Thanks, Reproduction steps

No response Expected behavior

No response Additional context

No response

— Reply to this email directly, view it on GitHub https://github.com/oae/kaizoku/issues/125, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYEYFO2UZQROEVND64LLLCLXXDDI5ANCNFSM6AAAAAA36WJP6Y . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ghost commented 1 year ago

Yeah im having a similar issue, i think i will drop this project and use FMD2, but there seems to be no linux version.

Captainpax commented 1 year ago

I used this for a while https://hub.docker.com/r/banhcanh/docker-fmd2

But it works best on windows. I'm using a VM on my server.

On Tue, Sep 5, 2023, 10:13 PM ElryWeeb @.***> wrote:

Yeah im having a similar issue, i think i will drop this project and use FMD2, but there seems to be no linux version.

— Reply to this email directly, view it on GitHub https://github.com/oae/kaizoku/issues/125#issuecomment-1707876810, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYEYFO7IXZVT2QNWYQ76BSTXZAWA5ANCNFSM6AAAAAA36WJP6Y . You are receiving this because you commented.Message ID: @.***>

ghost commented 1 year ago

I used this for a while https://hub.docker.com/r/banhcanh/docker-fmd2

But it works best on windows. I'm using a VM on my server.

On Tue, Sep 5, 2023, 10:13 PM ElryWeeb @.***> wrote:

Yeah im having a similar issue, i think i will drop this project and use FMD2, but there seems to be no linux version.

— Reply to this email directly, view it on GitHub https://github.com/oae/kaizoku/issues/125#issuecomment-1707876810, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYEYFO7IXZVT2QNWYQ76BSTXZAWA5ANCNFSM6AAAAAA36WJP6Y . You are receiving this because you commented.Message ID: @.***>

Does this also have automated updating / checking for new episodes ?

Also how to set it up seems to be a bit sparse.

Do you have discord ?

Captainpax commented 1 year ago

Yes

On Tue, Sep 5, 2023, 10:34 PM ElryWeeb @.***> wrote:

I used this for a while https://hub.docker.com/r/banhcanh/docker-fmd2

But it works best on windows. I'm using a VM on my server.

On Tue, Sep 5, 2023, 10:13 PM ElryWeeb @.***> wrote:

Yeah im having a similar issue, i think i will drop this project and use FMD2, but there seems to be no linux version.

— Reply to this email directly, view it on GitHub

125 (comment)

https://github.com/oae/kaizoku/issues/125#issuecomment-1707876810, or unsubscribe

https://github.com/notifications/unsubscribe-auth/AYEYFO7IXZVT2QNWYQ76BSTXZAWA5ANCNFSM6AAAAAA36WJP6Y . You are receiving this because you commented.Message ID: @.***>

Does this also have automated updating / checking for new episodes ?

— Reply to this email directly, view it on GitHub https://github.com/oae/kaizoku/issues/125#issuecomment-1707909102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYEYFO6LZJPFLNCSPHRTJR3XZAYRZANCNFSM6AAAAAA36WJP6Y . You are receiving this because you commented.Message ID: @.***>

ghost commented 1 year ago

I found out a way to manually remove the cache and others to make kaizoku work.

IsXGeo commented 12 months ago

I found out a way to manually remove the cache and others to make kaizoku work.

Mind explaining how? Would love this temp measure also

ghost commented 12 months ago

I found out a way to manually remove the cache and others to make kaizoku work.

Mind explaining how? Would love this temp measure also

docker stop kaizoku kaizoku-db-1 kaizoku-redis-1

rm -rf "$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' kaizoku)~/.cache/mangal/" && rm -rf "$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' kaizoku)/tmp/rod/user-data/"

docker start kaizoku kaizoku-db-1 kaizoku-redis-1
ghost commented 12 months ago

I run this as a crontab with each a 10 minute delay every day at 4am

notHiks commented 11 months ago

is this fix source dependant ? i found two sources that work and thje rest don't

edit: seems to fix evey source that wasn't updating 👍

zbejas commented 9 months ago

As @ElryWeeb and @notHiks mentioned, clearing the cache seems to work. I took a similar approach with a bash script, so I could customize it on the fly. Credits for the rm part @ElryWeeb .

#!/bin/bash

# Editable variables
SLEEP_TIMER=60
DOCKER_LIST=("kaizoku_gluetun" "kaizoku" "kaizoku_redis" "kaizoku_postgres") # kaizoku_gluetun for them IP changes

# Non-editable variables
IFS=' ' 
DOCKER_LIST_STRING="${DOCKER_LIST[*]}"

# Stopping containers
docker stop $DOCKER_LIST_STRING
sleep $SLEEP_TIMER

# Removing specific directories for kaizoku (mangal cache)
rm -rf "$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' kaizoku)/.cache/mangal/" && rm -rf "$(docker inspect -f '{{ .GraphDriver.Data.UpperDir }}' kaizoku)/tmp/rod/user-data/"
sleep $SLEEP_TIMER

# Starting containers
docker start $DOCKER_LIST_STRING

I have tried tinkering with Mangal, specifically with this fork. I managed to build with the modified Dockerfile, but not everything worked.

While new sources did seem to register, nothing seemed to download after adding the manga. I haven't taken the time to go through the entire source to check where it could go wrong.

I have replaced the mangal download if/else in Dockerfile with:

RUN curl -L "https://github.com/Belphemur/mangal/releases/download/v4.6.2/mangal_Linux_x86_64.tar.gz" -o mangal.tar.gz

I wonder if anyone tried something similar and possibly worked it out.