ani-cli icon indicating copy to clipboard operation
ani-cli copied to clipboard

Potential bug on history in ani-cli

Open SeaSid1 opened this issue 4 months ago • 11 comments

Version: 4.14.1 OS: Windows 11

Hello,

Is anyone experiencing a potentially weird bug on their history? My history amount seems to be stuck on just 6 anime and so when I watch anything else past my sixth option, the seventh anime won't log into my history and I am just stuck with the previous 6 anime I am currently trying to watch.

If it is just me experiencing this issue and no one else is having this issue, could I by any chance be told on how to fix it? because I am currently trying to watch new animes whilst catch up on the anime streaming currently this Summer of 2026 and It is quite the hassle to watch the new animes and remember which anime I am currently trying to catch up on the anime streaming this summer as there are multiple of them I am trying to watch. So if anyone has something that can work to fix this, please do let me know thanks!

Steps To Reproduce

  1. Run ani-cli -c
  2. View your history
  3. Exit
  4. Run 'ani-cli -insert any anime'
  5. Choose any anime in any episode
  6. Exit
  7. Run 'ani-cli -c'
  8. View your history and check whether you can have more than 6 anime in your watch history

SeaSid1 avatar Jul 13 '26 09:07 SeaSid1

v 4.14.1, EndeavourOS

There might be more to this bug, since for me ani-cli -c misbehaves in a different manner. It immediately launches the next episode of the first entry in the history, skipping displaying the history entirely.

OoDeeR avatar Jul 13 '26 21:07 OoDeeR

v 4.14.1, EndeavourOS

There might be more to this bug, since for me ani-cli -c misbehaves in a different manner. It immediately launches the next episode of the first entry in the history, skipping displaying the history entirely.

This is a feature! If your history has only one anime that isn't completed, it will immediately pick that one for continuing

port19x avatar Jul 14 '26 10:07 port19x

This is a feature! If your history has only one anime that isn't completed, it will immediately pick that one for continuing

There should be 5 or 6 shows in my history. This only started happening recently, possibly after I started another show, so there's some faint resemblance to what OP is reporting, but in a different flavor. And it's not even playing that most recent show, but the one that has been on top of the list previously, so there's definitely some buggy behavior going on.

OoDeeR avatar Jul 15 '26 13:07 OoDeeR

would you be willing to share your history file for easier debugging? that would certainly help

port19x avatar Jul 15 '26 14:07 port19x

would you be willing to share your history file for easier debugging? that would certainly help

How would you be able to view your history file? I sent a screenshot using the command 'ani-cli -H' and it has shown me this and I am assuming it is not the history but do let me know how to access and send you the history file please, and sorry for the inconvenience and the time for this, thank you!

Image

SeaSid1 avatar Jul 15 '26 17:07 SeaSid1

would you be willing to share your history file for easier debugging? that would certainly help

ani-hsts.txt (renamed to txt because github won't accept files without extension) As you can see, there are several incomplete entries. When I did ani-cli -c yesterday, it auto-played Maou-jou de Oyasumi episode 6. That was reproducible yesterday. Today, it lists Maou-jou de Oyasumi as well as One Piece, but not the other entries.

OoDeeR avatar Jul 16 '26 01:07 OoDeeR

How would you be able to view your history file? I sent a screenshot using the command 'ani-cli -H' and it has shown me this and I am assuming it is not the history but do let me know how to access and send you the history file please, and sorry for the inconvenience and the time for this, thank you!

You're probably just listing shows with an H there. On my system, the file is called 'ani-hsts'. My file path won't help you, since you're on Windows, so you'll have to try searching for it. I hope port19x can clear it up, if you can't find it.

OoDeeR avatar Jul 16 '26 01:07 OoDeeR

would you be willing to share your history file for easier debugging? that would certainly help

ani-hsts.txt (renamed to txt because github won't accept files without extension) As you can see, there are several incomplete entries. When I did ani-cli -c yesterday, it auto-played Maou-jou de Oyasumi episode 6. That was reproducible yesterday. Today, it lists Maou-jou de Oyasumi as well as One Piece, but not the other entries.

Thank you

port19x avatar Jul 16 '26 06:07 port19x

How would you be able to view your history file? I sent a screenshot using the command 'ani-cli -H' and it has shown me this and I am assuming it is not the history but do let me know how to access and send you the history file please, and sorry for the inconvenience and the time for this, thank you!

You're probably just listing shows with an H there. On my system, the file is called 'ani-hsts'. My file path won't help you, since you're on Windows, so you'll have to try searching for it. I hope port19x can clear it up, if you can't find it.

Yeah, that's all good. I probably am doing shows with the letter 'H' in the title but as far as I'm concerned, I'm just waiting on any of the people that owns/manages/maintains the ani-cli code itself to respond/work on this bug. I don't mind waiting, please take your time fixing on this bug, I've resorted to using sticky notes to keep track on all animes for now but it's annoying and a hassle to do whereas, ani-cli itself can just log into my history of all animes I've ever watched and all I have to do is just type in ani-cli -c and every anime I wasn't done watching and animes currently streaming this season has updated, all show up in the same cli. Man I really miss the times where I didn't need to do all this sticky notes stuff. I hope this (potential) bug gets fixed soon!.

SeaSid1 avatar Jul 16 '26 21:07 SeaSid1

$ ./ani-cli --version
4.15.0

$ cat ~/.local/state/ani-cli/ani-hsts 
52      yLCKvGbhA6buygXad       Fullmetal Alchemist: Brotherhood (64 episodes)
48      yquCdfW4DjcS533oR       Dragon Ball (153 episodes)
3       KvBvdrsppnuMqGRcN       Dorohedoro Season 2 (11 episodes)
1       aBbzyo4QBuRxYZBya       Fukumenkei Noise (12 episodes)

$ ./ani-cli -c -q 480 -v --dub

shows all as (up to date)

js290 avatar Jul 25 '26 00:07 js290

We introduced a breaking change regarding the history file format for v5. So for better or worse, this issue is resolved

port19x avatar Aug 01 '26 19:08 port19x