Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicated chapters after v0.8 update #2885

Open
Roshri opened this issue Apr 18, 2024 · 5 comments
Open

Duplicated chapters after v0.8 update #2885

Roshri opened this issue Apr 18, 2024 · 5 comments
Labels
can't reproduce Can't reproduce, need additional information from user needs-triage Needs to be triaged by a developer and assigned a release

Comments

@Roshri
Copy link

Roshri commented Apr 18, 2024

What happened?

After updating to latest stable (v0.8) I noticed that chapters would get duplicated in my manga libraries.
image

Neither scanning the series nor force scanning the library again seem to help.
Deleting and readding the series fixed it to some extent but the numbering seems odd
image

Following this I checked the actual metadata on the files and found that when zero padding is present in the Number field, it creates that effect.

image
image

So to get this result:

  1. Have a series in a manga library in previous stable
  2. The series should have comicinfo
  3. Number field should use zero padding
  4. Update to 0.8
  5. Scan/Force scan library after updating to v0.8

What did you expect?

Chapters appearing only once.
Don't know about zero padding. I wouldn't strip it.
Ideally show only the actual numbering on the comicinfo

Kavita Version Number - If you don not see your version number listed, please update Kavita and see if your issue still persists.

0.8.0 - Stable

What operating system is Kavita being hosted from?

Windows

If the issue is being seen on Desktop, what OS are you running where you see the issue?

Windows

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Firefox, Chrome

If the issue is being seen on Mobile, what OS are you running where you see the issue?

Android

If the issue is being seen on the Mobile UI, what browsers are you seeing the problem on?

Firefox, Chrome

Relevant log output

No response

Additional Notes

No response

@Roshri Roshri added the needs-triage Needs to be triaged by a developer and assigned a release label Apr 18, 2024
@majora2007 majora2007 added this to To do in v0.8 - PDF & Comic Love via automation Apr 18, 2024
@chilliwow
Copy link

Having the same exact issue after updating to v0.8 and force scanning. Happens when there's one or multiple zeroes in front of the chapter number. Chapter reverted back to normal after removing the zeroes from the filename.
image

@chilliwow
Copy link

If anyone has issues in the future, a quick fix is to move all files except for one out of the series folder and do a scan. Then add the files back and scan again.

@majora2007 majora2007 moved this from To do to In progress in v0.8 - PDF & Comic Love Apr 18, 2024
@majora2007
Copy link
Member

I think this is due to the migration from v0.8 and there are likely some leftover chapters in the DB or something. Removing the chapters then readding should work.

I tried to reproduce myself by taking an existing chapter 1.cbr (already scanned in) then adding chapter 001 for the issue number in ComicInfo and no duplicate chapter did appear.

@majora2007 majora2007 added the can't reproduce Can't reproduce, need additional information from user label Apr 21, 2024
@majora2007 majora2007 moved this from In progress to Can't Reproduce in v0.8 - PDF & Comic Love Apr 21, 2024
@Roshri
Copy link
Author

Roshri commented Apr 21, 2024

Yeah definitely something broke during migration.
Doing the plex dance for hundreds of series will probably take weeks but there's probably no other way.
I should notify my users, this would reset the series progress I think

@majora2007
Copy link
Member

Yeah, it might be beneficial to write a script that marks as read for each of your users from that csv. You can also write some SQL likely to remove the chapters in the db.

It's really unfortunate you got hit so hard. Please wait till after the v0.8.1 release as I fixed more bugs with non-english locales creating duplicates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can't reproduce Can't reproduce, need additional information from user needs-triage Needs to be triaged by a developer and assigned a release
Projects
v0.8 - PDF & Comic Love
  
Can't Reproduce
Development

No branches or pull requests

3 participants