Yet Another PWA JNC Client
-
First attempt:
- APIs changed from an
v1
endpoint tov2
, but seem largely the same. - All resources have an
id
now, plus the oldlegacyId
. Events no longer have an ID though. - Parts don't seem to have an expiration set in them, which I need. The website is showing it, so it has to be somewhere.
- Future parts are also listed in the responses, even if they aren't yet live nor content available to read.
- Thumbnails are now using a different endpoint, and no longer coming from Cloudfront, at least not directly. Images in the parts still do.
- My domains are no longer allowed via CORS, unfortunately. I guess I can pass all requests through my proxy to work around it, as I already do that with Cloudfront images.
- Progress percentages aren't available but we knew that already.
Will continue tomorrow.
- APIs changed from an
-
@Crimson-Wise said in Yet Another PWA JNC Client:
Future parts are also returned in the responses, even if they aren't yet live.
that's gotta be a big oops
-
@sorvani no content is returned for them to read, they are just listed which the old API didn't do.
-
@Crimson-Wise said in Yet Another PWA JNC Client:
@sorvani no content is returned for them to read, they are just listed which the old API didn't do.
Ah, thanks for the clarification.
-
@Crimson-Wise If you'd like, I can re-add the domain(s). Please confirm what they are.
Why do pass the imgs through a proxy though? -
@chocolatkey Thanks! If you don't mind could you please add these two domains?
- jnc-reader.wscr.dev
- jnc-reader-dev.wscr.dev
As for the proxy, it's because I need to work around CORS for the Cloudfront images.
In general it isn't needed as the browser relaxes CORS rules for images and some other stuff, but if the image request goes through a Service Worker (which I need to support part downloads for offline reading) then I don't get that benefit, hence having a a simple Cloudflare Worker to proxy those requests.
-
@Crimson-Wise Had any time to devote to this? I miss using your reader.
-
@Crimson-Wise I've added them. The cloudfront images will slowly be disappearing, but are definitely still around at the mometn
-
Hope it's working again soon. This is the only way I read novels from here since I find the app too inconvenient to use. ^^;
-
@chocolatkey thanks! It works!
@sorvani yup, see below.
So I got most things working again. To update, it's a PWA with updates in the background so the easiest is,
- Open the page.
- Wait 30 seconds or so. The new version will be downloaded in the background.
- Close the page, and open it again. The new version should be live this time, it should also list version
v241017.b14fc0c
in the account button.
AFAICT, the only issue I can find is that some images don't get cached for offline reading. I'm also doing some workaround to identify expired parts that may not be perfect.
-
Good to see this up again. Unfortunately some of the titles are incorrectly showing as expired, I'm not sure if this is an issue with incorrect dates in the back end or how they're handled in the PWA.
This months are shown as expired despite it being extended until the 22nd plus some of next months expiries including
Young Lady Albert volume 8
Invincible Summoner volume 3
Seventh volume 9
Apothecary Diaries volume 12
Lucia and the Loom volume 2
Poison King volume 2All of these are accessible in the Jnovel app and on the website.
-
@sniper_samurai you're right, was calculating the whole thing incorrectly. The new version (see the aforementioned upgrade instructions) should handle it better, except for those to expire on the 22nd.
As for those delayed, and using Blacksmith v9 as an example, it appears as Expired in the JNC website, but it's still live if you click in the parts. Need to see what's happening there, looks like a hack somewhere.
-
@Crimson-Wise The reading history only remembers up to 1 month ago. I don't know if it's because of the update or a separate issue.
PS. I was without the APP for so many days that several series expired. I'm going to cry in a corner.
-
@atorbites This months titles have had their expiry extended until the 22nd, you'll need to read them on the website or the official app though.
-
@atorbites said in Yet Another PWA JNC Client:
@Crimson-Wise The reading history only remembers up to 1 month ago. I don't know if it's because of the update or a separate issue.
I have no reading history prior to a month ago in the JNC app, so I assume that is old history that they have not migrated yet. Not a problem with this reader.
-
@Crimson-Wise said in Yet Another PWA JNC Client:
@sorvani yup, see below.
Awesomeness, thanks for your work on this.
-
Indeed, the lack of progress information is on JNC's side, so hopefully they are able to finish the migration soon.
As for those volumes with delayed expiration on the 22nd, I've now just hard-coded the date on my app.
-
Could you do something to highlight the difference between manga and LN volumes in the list? While the title normally says Manga, it is not viewable on a small screen.
-
@Crimson-Wise said in Yet Another PWA JNC Client:
Indeed, the lack of progress information is on JNC's side, so hopefully they are able to finish the migration soon.
Hopefully they do. Reader engagement has to be a metric they want to keep, right?
There are some series I want to catch up on, but now I don't even know what volumes I've read. Not to mention books I've read but not chosen to subscribe to.
My progress on the official app from the last few days isn't there, either, so they might not be using the new system themselves.
-