package me.devsaki.hentoid.json.sources;

import com.annimon.stream.Stream;

import java.util.List;

public class NexusGallery {
    private String b;
    private String r;
    private String i;
    private List<NexusPage> f;

    public List<String> toUrls() {
        return Stream.of(f).map(page -> b + r + page.h + "/" + i + "/" + page.p).toList();
    }

    static class NexusPage {
        private String h;
        private String p;
    }
}

@@ -50,29 +50,27 @@
 com.
-annimon.stream.Stream
+squareup.moshi.Json
 ;%0A%0Ai
@@ -194,33 +194,60 @@
     
-private List%3CNexusPage%3E f
+@Json(name = %22pages%22)%0A    private List%3CString%3E pages
 ;%0A%0A 
@@ -299,170 +299,13 @@
 urn 
-Stream.of(f).map(page -%3E b + r + page.h + %22/%22 + i + %22/%22 + page.p).toList();%0A    %7D%0A%0A    static class NexusPage %7B%0A        private String h;%0A        private String p
+pages
 ;%0A  

Fix test for new nexus gallery structure