comicinfo icon indicating copy to clipboard operation
comicinfo copied to clipboard

Question: How to handle comma separated fields where a value contains a comma

Open majora2007 opened this issue 1 year ago • 1 comments

Where does this comes from?

A user has brought up a problem in parsing of StoryArc where there is the following string Infinity, Inc. StoryArc naturally can have multiple values that are comma separated and thus, Kavita parses this as 2 story arcs.

But there is nothing in the spec that has guidance in how comma should be encoded when it's not the separator string.

https://github.com/Kareadita/Kavita/issues/3026

What is the rationale for adding support for this element?

No response

Is the element already handled by any application or tool?

No response

majora2007 avatar Jun 28 '24 14:06 majora2007

Well comicrack keeps it as separate elements no matter what you do (at least I've never been able to get it to) so any encoding that you implement will not be backwards compatible

lordwelch avatar Jun 28 '24 16:06 lordwelch

The "correct" way to deal with this would be to stop using commas as a separator and put each item in an XML list.

blathers16 avatar Mar 12 '25 21:03 blathers16

How about just allowing repeat elements?

<ComicInfo>
  <Author>Foo</Author>
  <Author>Bar</Author>
</ComicInfo>

Alxandr avatar Aug 06 '25 06:08 Alxandr