Kylart / KawAnime

Desktop app for anime fans
MIT License
671 stars 50 forks source link

the best program of its genre so far #88

Open ghost opened 1 year ago

ghost commented 1 year ago

finally a program that lets you create your local list, independently from any sites. why is it so hard for people to implement this? I'm not aware of any other program that lets you do it and believe me I've tested a lot of them. I could use it for that function alone. not only that but this one works very well in other areas too. sad to see it unmaintained, hope you resume development - that said, it doesn't seem to be broken anywhere, except the local storage which at least for me fails to detect my anime.

Kylart commented 1 year ago

Well, first thank you for the kind words!

sad to see it unmaintained, hope you resume development

I am actually working on new project very similar and evew though it uses Anilist as its main source, local lists could easily get implemented.

except the local storage which at least for me fails to detect my anime

This is unexpected and should not happen. Can you give more details ?

ghost commented 1 year ago

Well, first thank you for the kind words!

I am actually working on new project very similar and evew though it uses Anilist as its main source, local lists could easily get implemented.

Oh please let us create a local list. I tried all tags you could imagine here on github. nothing. all programs require connection to a specific site to work (or are CLI, at which point I'd rather use a txt file). I could only find 10 years old projects on sourceforge with this kind of function. pretty much none of them worked properly, the only functional one being a rather clunky program but I guess it's better than using excel. that said, those programs on sourceforge are exactly what I was thinking about. perhaps they could give you some inspiration, here are some of them:

https://sourceforge.net/projects/animan/ - This is one of the few of them that actually works quite nicely. Unfortunately, it is still pretty much unfinished, and serves more or less as a "frontend" for the files on your HDD, rather than a full fledged list. It also has a primitive tagging function that god knows how to use. Kinda useful nonetheless.

https://sourceforge.net/projects/stormychansanime/ - A bit rough over the edges but it has everything I need. If it wasn't so clunky and had an unlimited number of entries, I'd definitely use it. Unfortunately, much like in Animan's case, there is no source code, otherwise even I would try working on it.

https://sourceforge.net/projects/anibase/ - Dead-simple list. If visual basic didn't crash every 2 clicks, I'd use it.

https://sourceforge.net/projects/movieprogresstr/ - This one also has some interesting concepts and useful features. And it doesn't crash all the time so it's still usable.

This is unexpected and should not happen. Can you give more details ?

well, basically nothing happens when I set a directory and refresh it. even with recursive search on it doesn't seem to detect anything.

Kylart commented 1 year ago

well, basically nothing happens when I set a directory and refresh it. even with recursive search on it doesn't seem to detect anything.

The app detects only mkv and mp4 videos so maybe the files you have are not in this format? Also, what OS are you on? Though it should not matter I feel like maybe this could be happening becuase of a permission problem.

ghost commented 1 year ago

The app detects only mkv and mp4 videos so maybe the files you have are not in this format? Also, what OS are you on? Though it should not matter I feel like maybe this could be happening becuase of a permission problem.

Some of my files are mkv, some are blu-ray or dvd rips. I'm on Windows

Kylart commented 1 year ago

And what is happening on screen? Is the program crashing? Can you screenshot / record what happens just after you've selected a folder?

ghost commented 1 year ago

And what is happening on screen? Is the program crashing? Can you screenshot / record what happens just after you've selected a folder?

so, I managed to get it to recognize the files after I opened a directory which only had mkv files inside it. when I did that, it didn't go well, though. CPU usage spiked and the program basically froze (but did not crash). I noticed high cpu usage from the antivirus as well - perhaps it is trying to copy the whole ~100GB of episodes somewhere? or load the entirety of the videos? if so, that is an issue. if not, then what exactly is going on when you add files to it, that could be causing such high CPU usage and basically freezing the program?

Just did another test, this time with a directory containing only some small mp4's. same thing happened: extremely high cpu and ram usage, as well as the program freezing.

image

ghost commented 1 year ago

it also seems to ignore larger files. when I opened an anime directory, it ignored the actual episodes, only detecting the specials and OP/ED.

Kylart commented 1 year ago

So, when you setup a folder / directory. The program will try to get all the files that are mp4/mkv in that folder, try to parse filenames and find information on Anilist / Mal / Kitsu (whatever provider you setup in your config) for those names.

My guess is that you have lots of different animes in your folder so KawAnime tries to do 2 things at once:

  1. Render all of those animes in the window. That probably explain most of the memory and CPU usage
  2. In the background, it queries the provider to get information on all those animes. Once the information is recovered, it will update the information "database".

If you have lots of files in the folder, it will most likely freeze for quite some time as this program is made with Electron. Also with two many different animes, there are chances that the information will take a long time to come and therefor you should see a lot a loading animations on animes.

Kylart commented 1 year ago

it also seems to ignore larger files. when I opened an anime directory, it ignored the actual episodes, only detecting the specials and OP/ED.

The actual episodes are probably grouped into one card where you can select the episode you want to play.

ghost commented 1 year ago

So, when you setup a folder / directory. The program will try to get all the files that are mp4/mkv in that folder, try to parse filenames and find information on Anilist / Mal / Kitsu (whatever provider you setup in your config) for those names.

My guess is that you have lots of different animes in your folder so KawAnime tries to do 2 things at once:

1. Render all of those animes in the windows. That probably explain most of the memory and CPU usage

2. In the background, it queries the provider to get information on all those animes. Once the information is recovered, it will update the information "database".

If you have lots of files in the folder, it will most likely freeze for quite some time as this program is made with Electron. Also with two many different animes, there are chances that the information will take a long time to come and therefor you should see a lot a loading animations on animes.

I see, but the same thing happened when I tried opening a folder with 4 small mp4 files. and when I tried opening a folder with only 1 anime inside (13 episodes + 2 specials + NCOP/NCED), it crashed. It did render 1 image, but the others were loading forever. I'll try opening a folder with a single episode, and see what happens.

hm... I think I identified the problem. Kawanime has issues with videos it cannot identify. I tried opening a folder with only the episodes, and it did it almost instantly with no issues. when I tried opening the whole folder, with specials, creditless OP/ED and whatnot, it froze and had cpu usage spike. when I tried opening the folder containing only the non-episode files, the same thing happened. I think this is the issue.

ghost commented 1 year ago

I see, but the same thing happened when I tried opening a folder with 4 small mp4 files. and when I tried opening a folder with only 1 anime inside (13 episodes + 2 specials + NCOP/NCED), it crashed. It did render 1 image, but the others were loading forever. I'll try opening a folder with a single episode, and see what happens.

hm... I think I identified the problem. Kawanime has issues with videos it cannot identify. I tried opening a folder with only the episodes, and it did it almost instantly with no issues. when I tried opening the whole folder, with specials, creditless OP/ED and whatnot, it froze and had cpu usage spike. when I tried opening the folder containing only the non-episode files, the same thing happened. I think this is the issue.

this also explains why it froze while trying to open the folder with small mp4's

ghost commented 1 year ago

btw, 1 issue and 1 suggestion: apparently the built-in player is a little bit confused regarding subtitles and audio. the file had english dub as default, and original japanese audio as an option, as well as no subs as default, and english subs as an option. the subtitle icon showed "en" and "jp" as options, which is correct for audio, and when I clicked on "jp", it enabled english subtitles. that is, the subtitle icon identifies audio, but changes subtitles. you could either fix that, or, even better, make it so that you can change both audio and subtitles.

and a suggestion: make it so that the trash icon only removes the file from the list, instead of actually sending it to the recycle bin. or, at least, make it an option (not) to send it to the recycle bin.