Code Monkey home page Code Monkey logo

Comments (8)

majora2007 avatar majora2007 commented on August 10, 2024

Hmm, I'm not sure how to handle this. Code isn't going to know that Joe, Joe, A, JoeB is 3 strings of "Joe", "Joe, A", and "JoeB". I'll reach out to see what the spec says about handling this.

from kavita.

bpepple avatar bpepple commented on August 10, 2024

The Anansi Project doesn't cover it as far as I'm aware (and really using a comma as a delimiter on list of names isn't a great idea), but here's how I handled it for my python projects that write the comicinfo.xml, which might provide a bit of help: https://github.com/Metron-Project/darkseid/blob/222c434e279dcd0ea5460eb4c301a5463490e98a/darkseid/utils.py#L33

Using a regex that looks for items in quotes and items between commas like this should work:

(?:^|,)(\"(?:[^\"])*\"|[^,]*)

from kavita.

majora2007 avatar majora2007 commented on August 10, 2024

I agree that it's not a good idea, but the spec is the most supported, so my hands are a bit tied. Quoting the string could work and Kavita could identify that pattern and de-quote.

I'll take a look in the next stable window as the upcoming stable is days away.

from kavita.

bpepple avatar bpepple commented on August 10, 2024

Doesn't Comicrack just ignore the the quotes, so it would parse it as "Infinity & Inc." instead of Infinity & Inc., which are both incorrect.

I don't quite understand handcuffing yourself to project that's been dead for years and caring over their bugs. Anyway, just my 2ยข.

from kavita.

majora2007 avatar majora2007 commented on August 10, 2024

I'm not sure, I've never used Comicrack before. When I started Kavita I didn't know anything about the metadata scene. As of now, I just want users that have already tagged their collection to have their metadata usable.

If I just change to support some new standard, it will be useless unless the major taggers and players in the scene support it. Kavita currently supports ComicInfo and some non-breaking enhancements (since I couldn't get Anansai project to approve new tags).

from kavita.

bpepple avatar bpepple commented on August 10, 2024

I guess my thinking this isn't a breaking change, since the clients can still parse them, which is how I identified this bug in the first place. Regardless, this is obviously your decision on how you want to handle it.

from kavita.

majora2007 avatar majora2007 commented on August 10, 2024

Right, I'm not implying it is. All I'm saying is that my next stable release (v0.8.2) is right around the corner, so I will look into this after that. I think you might have misunderstood that I was talking about a spec breaking change.

from kavita.

bpepple avatar bpepple commented on August 10, 2024

Right, I'm not implying it is. All I'm saying is that my next stable release (v0.8.2) is right around the corner, so I will look into this after that. I think you might have misunderstood that I was talking about a spec breaking change.

Yeah, looks like I misunderstood what you were saying. Sorry.

from kavita.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.