J-Novel Club
    • Categories
    • Recent
    • Tags
    • Users
    • Login

    Yet Another PWA JNC Client

    Scheduled Pinned Locked Moved Other Discussion
    146 Posts 25 Posters 65.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sorvaniS
      sorvani Premium Member
      last edited by

      Could you change part 1 to show part 1 of X for currently streaming series that have not released all parts? Or simply put it on part 1 of all series?

      I can never recall without going to the series page how many parts a series is going to have, but I noticed that the part count is in the json data you show under the "info button"

          },
          "owned": true,
          "noEbook": false,
          "totalParts": 12
      

      f5a941e4-9a39-4bf4-8141-062d56a72e6a-image.png

      Crimson WiseC 1 Reply Last reply Reply Quote 0
      • Crimson WiseC
        Crimson Wise Premium Member @sorvani
        last edited by

        @sorvani tried at some point but I wasn't satisfied with how it fitted, so I ended up with the below.

        I can never recall without going to the series page how many parts a series is going to have

        I assume you're referring to the series page in the JNC's official website.

        In my app you can find it in the Volume info panel: click in the three dots below the volume cover -> Information -> Parts.

        Quof got a break.
        WHAT'S THE STORY WITH THAT FREAKING BLACK DRAGON?!

        sorvaniS 1 Reply Last reply Reply Quote 2
        • sorvaniS
          sorvani Premium Member @Crimson Wise
          last edited by

          @Crimson-Wise said in Yet Another PWA JNC Client:

          @sorvani tried at some point but I wasn't satisfied with how it fitted, so I ended up with the below.

          I can never recall without going to the series page how many parts a series is going to have

          I assume you're referring to the series page in the JNC's official website.

          In my app you can find it in the Volume info panel: click in the three dots below the volume cover -> Information -> Parts.

          Honestly I meant either. Your app does have easy ways to get there, no complaints about that. But seeing it once in the primary view would be great.

          1 Reply Last reply Reply Quote 0
          • Crimson WiseC
            Crimson Wise Premium Member
            last edited by

            But seeing it once in the primary view would be great.

            Yeah, I get the point. I do think the interface is a bit noisy though so I've been trying to avoid adding too much... that said,


            Speaking of clutter, although unrelated and pretty much the reason for most of my updates this year, feature announcement: I have added offline support to the app. Anywhere you can read parts there is a fab button in the corner to enter what I call "download mode" - any parts selected will be then downloaded, and can be read from the new Offline tab even if there is no internet access.

            Offline example

            There are some restrictions though, up to 20 parts can be downloaded, and are removed after 2 weeks.

            Finally, I'm calling the whole thing "experimental" since there are glitches here and there, in particular when it comes to keeping track of progress, that I'll be sorting out as I'm able.

            Quof got a break.
            WHAT'S THE STORY WITH THAT FREAKING BLACK DRAGON?!

            1 Reply Last reply Reply Quote 4
            • Crimson WiseC
              Crimson Wise Premium Member
              last edited by

              Preemptively, in case the app is dead after the maintenance, I’ll look at it on the weekend.

              Quof got a break.
              WHAT'S THE STORY WITH THAT FREAKING BLACK DRAGON?!

              pcjP NitrousoxideN 2 Replies Last reply Reply Quote 5
              • pcjP
                pcj Premium Member @Crimson Wise
                last edited by

                @Crimson-Wise said in Yet Another PWA JNC Client:

                Preemptively, in case the app is dead after the maintenance, I’ll look at it on the weekend.

                And indeed it will be. I'm told on Discord that /app/v1 went away and you need to use /app/v2 now

                1 Reply Last reply Reply Quote 4
                • NitrousoxideN
                  Nitrousoxide Premium Member @Crimson Wise
                  last edited by Nitrousoxide

                  @Crimson-Wise said in Yet Another PWA JNC Client:

                  Preemptively, in case the app is dead after the maintenance, I’ll look at it on the weekend.

                  Now that the site's back up, I can confirm that it's, indeed, broken.

                  Looking forward to when you get a chance to update it!

                  1 Reply Last reply Reply Quote 2
                  • Crimson WiseC
                    Crimson Wise Premium Member
                    last edited by Crimson Wise

                    First attempt:

                    • APIs changed from an v1 endpoint to v2, but seem largely the same.
                    • All resources have an id now, plus the old legacyId. 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.

                    Quof got a break.
                    WHAT'S THE STORY WITH THAT FREAKING BLACK DRAGON?!

                    sorvaniS chocolatkeyC 2 Replies Last reply Reply Quote 2
                    • sorvaniS
                      sorvani Premium Member @Crimson Wise
                      last edited by

                      @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

                      Crimson WiseC 1 Reply Last reply Reply Quote 0
                      • Crimson WiseC
                        Crimson Wise Premium Member @sorvani
                        last edited by

                        @sorvani no content is returned for them to read, they are just listed which the old API didn't do.

                        Quof got a break.
                        WHAT'S THE STORY WITH THAT FREAKING BLACK DRAGON?!

                        sorvaniS 1 Reply Last reply Reply Quote 0
                        • sorvaniS
                          sorvani Premium Member @Crimson Wise
                          last edited by

                          @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.

                          1 Reply Last reply Reply Quote 0
                          • chocolatkeyC
                            chocolatkey Staff @Crimson Wise
                            last edited by chocolatkey

                            @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?

                            Crimson WiseC 1 Reply Last reply Reply Quote 4
                            • Crimson WiseC
                              Crimson Wise Premium Member @chocolatkey
                              last edited by Crimson Wise

                              @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.

                              Quof got a break.
                              WHAT'S THE STORY WITH THAT FREAKING BLACK DRAGON?!

                              sorvaniS chocolatkeyC 2 Replies Last reply Reply Quote 1
                              • sorvaniS
                                sorvani Premium Member @Crimson Wise
                                last edited by

                                @Crimson-Wise Had any time to devote to this? I miss using your reader.

                                1 Reply Last reply Reply Quote 1
                                • chocolatkeyC
                                  chocolatkey Staff @Crimson Wise
                                  last edited by

                                  @Crimson-Wise I've added them. The cloudfront images will slowly be disappearing, but are definitely still around at the mometn

                                  1 Reply Last reply Reply Quote 2
                                  • KyouriK
                                    Kyouri Member
                                    last edited by

                                    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. ^^;

                                    1 Reply Last reply Reply Quote 1
                                    • Crimson WiseC
                                      Crimson Wise Premium Member
                                      last edited by

                                      @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.

                                      Quof got a break.
                                      WHAT'S THE STORY WITH THAT FREAKING BLACK DRAGON?!

                                      S sorvaniS 2 Replies Last reply Reply Quote 2
                                      • S
                                        sniper_samurai Premium Member @Crimson Wise
                                        last edited by

                                        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 2

                                        All of these are accessible in the Jnovel app and on the website.

                                        Crimson WiseC 1 Reply Last reply Reply Quote 0
                                        • Crimson WiseC
                                          Crimson Wise Premium Member @sniper_samurai
                                          last edited by

                                          @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.

                                          Quof got a break.
                                          WHAT'S THE STORY WITH THAT FREAKING BLACK DRAGON?!

                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            atorbites Member @Crimson Wise
                                            last edited by

                                            @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.

                                            S sorvaniS 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 7 / 8
                                            • First post
                                              Last post