Developer PSA: labs.j-novel.club is your new friend!
-
@Bruhtek said in Developer PSA: labs.j-novel.club is your new friend!:
Still looking for a way to sort the results
sorting is easy to do client side.
-
@pcj Then I would have to get all the series before sorting them, it is technically viable, but a way to get them already sorted to keep requests small (using pagination) would be even better
-
@Bruhtek True that. I didn't think about pagination, but if that's involved you definitely want a server side sort.
-
@Bruhtek Added jnovel.bruhtek.com to the CORS exceptions, definitely nicer than proxying user data through your CORS proxy (please don't). It also includes localhost, 127.0.0.1 and dev.j-novel.club (nonexistent host you can map yourself) if you want to develop locally.
I thought I had documented sorting before, but here's the whole proto message for series querying:
/** * Search query for series */ message SeriesQuery { string query = 1; // Search query Series.Type type = 2; // The type of series to include Sorting sort = 3; // How to sort the series enum Sorting { NEWEST = 0; // Sort by created, descending OLDEST = 1; // Sort by created, ascending AZ = 2; // Sort by title, ascending ZA = 3; // Sort by title, descending } bool only_follows = 4; bool only_catchups = 5; }
-
Hello, I'd like https://xellon.github.io to be included in CORS list. I'm making a pre-pub reader at https://xellon.github.io/pages/j-novel for my kindle paperwhite which has a very basic browser.
-
Hello,
Just in case it is needed. I wrote a script that snags all of my purchases very quick (epub). It's just a low-quality quickie, just in case it comes in handy, I've posted it here. No guarantees and such.https://github.com/redmasq/jnc_swagger/tree/main/examples
I'm probably going to schedule it as a weekly job myself, so as to capture any errata and such. I'll suggest not to use the -forceAll unless necessary since it does cause it to download everything again, which could be hard on J-Novel Club's servers (I'm sure my testing was annoying).
I was having problems with an earlier version of FBReader. I found that repackaging the epub file fixes the issue. The script does this, but it is off by default since the files downloaded works perfectly fine in Calibre and such, and in the latest FBReader (probably was a zip handling issue).
I done it in Powershell since I run Windows for my main desktop, but if bash (Linux), zsh (OSX), or python (whatever) is needed, it's a simple exercise to convert it. For the shell script versions, I need web request and JSON support, so I would probably use something like jq and curl, but they are installed easily through pacman, yum, apt, or brew.
Happy Reading.
-