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

Scan does not work when the ComicInfo.xml tag <LocalizedSeries> is the same value as the .cbz name #3400

Open
Two-Pato opened this issue Nov 23, 2024 · 5 comments
Labels
needs-triage Needs to be triaged by a developer and assigned a release Scanner Anything involving main Scan Loop

Comments

@Two-Pato
Copy link

What happened?

If the <LocalizedSeries> tag in the ComicInfo.xml file (e.g., <LocalizedSeries>Test</LocalizedSeries>) matches the name of the .cbz file (e.g., Test v01.cbz), Kavita will ignore the file during scanning. Changing either the file name or the tag value will allow it to scan correctly.

What did you expect?

The scan should add all files.

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

0.8.4 - Stable

What operating system is Kavita being hosted from?

None

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

None

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

No response

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

None

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

No response

Relevant log output

No response

Additional Notes

No response

@Two-Pato Two-Pato added the needs-triage Needs to be triaged by a developer and assigned a release label Nov 23, 2024
@majora2007
Copy link
Member

When a file has the series as Test and another file has the LocalizedSeries as Test, they will merge together into one series. This is intentional behavior.

I'm not understanding what you are reporting as an issue.

@Two-Pato
Copy link
Author

Yes you are actually right. If you have more than one .cbz file like Test v01.cbz and Test v02.cbz and so on, than it scans normally. But with only one .cbz file it does not. If you cant replicate this, its maybe something on my end.

@majora2007
Copy link
Member

I'm not understanding what you mean then. If only one file, the file doesn't ingest when localized series is set? What do your logs say?

@Two-Pato
Copy link
Author

Let's say I have a Japanese one-shot manga. I'll call it One Piece. In my library folder (where Kavita scans), I have now a folder named "One Piece," and within this folder is only one file "One Piece v01.cbz." In my ComicInfo.xml file, I have the tags:

<Title>One Piece</Title> <'LocalizedSeries>One Piece<'/LocalizedSeries>

Since the title is the same in both Japan and the USA. When I press "Scan Library," the file does not show up in my library.

If I add the file "One Piece v02.cbz," it scans normally. The one-shot is now displayed with 2 volumes.

If I rename the file from "One Piece v01.cbz" to "Two Piece v01.cbz," it scans normally. The one-shot will show up. Its name is Two Piece the localized name One Piece.

If I delete or change the <'LocalizedSeries>One Piece<'/LocalizedSeries> tag, it scans normally. The one-shot will show up.

But if both the name of the .cbz file and the <'LocalizedSeries> tag are the same, and only one file exists, it does not appear in my library. If this is bad tagging from me I will just change this. But in previous versions, kavita did not care and just added everything.

@majora2007
Copy link
Member

Okay this sounds like an edge case. This would be considered an edge case where the Series and LocalizedSeries are the same for a single file. But this is not an invalid use case, so I will look into it.

@majora2007 majora2007 added the Scanner Anything involving main Scan Loop label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Needs to be triaged by a developer and assigned a release Scanner Anything involving main Scan Loop
Projects
None yet
Development

No branches or pull requests

2 participants