Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

![Java](https://img.shields.io/badge/Java-17+-blue.svg)
![License](https://img.shields.io/badge/License-MIT-yellow.svg)
![Version](https://img.shields.io/badge/Version-1.1.6-brightgreen.svg)
![Version](https://img.shields.io/badge/Version-1.1.7-brightgreen.svg)

**一个用于获取JMComic(禁漫天堂)数据的Java API库**

Expand Down Expand Up @@ -148,23 +148,23 @@
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```
* 安装 jmcomic-core
```xml
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-core</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```
* Android平台额外安装 jmcomic-android-support
```xml
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-android-support</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```

Expand Down
8 changes: 4 additions & 4 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

![Java](https://img.shields.io/badge/Java-17+-blue.svg)
![License](https://img.shields.io/badge/License-MIT-yellow.svg)
![Version](https://img.shields.io/badge/Version-1.1.6-brightgreen.svg)
![Version](https://img.shields.io/badge/Version-1.1.7-brightgreen.svg)

**A Java API library for fetching data from JMComic**

Expand Down Expand Up @@ -147,23 +147,23 @@ The core of this project is a **data acquisition and management tool**, not a ri
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```
* Install jmcomic-core
```xml
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-core</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```
* (Android platform) Install jmcomic-android-support
```xml
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-android-support</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```

Expand Down
6 changes: 3 additions & 3 deletions docs/sources/advanced/modular-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jmcomic-sample jmcomic-android-support
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```

Expand All @@ -35,7 +35,7 @@ jmcomic-sample jmcomic-android-support
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-core</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```

Expand All @@ -49,7 +49,7 @@ jmcomic-sample jmcomic-android-support
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-core</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
<exclusions>
<exclusion>
<groupId>org.jsoup</groupId>
Expand Down
4 changes: 2 additions & 2 deletions docs/sources/android.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
```groovy
// build.gradle (app)
dependencies {
implementation 'io.github.jukomu:jmcomic-core:1.1.6'
implementation 'io.github.jukomu:jmcomic-android-support:1.1.6'
implementation 'io.github.jukomu:jmcomic-core:1.1.7'
implementation 'io.github.jukomu:jmcomic-android-support:1.1.7'
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/sources/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![Java](https://img.shields.io/badge/Java-17+-blue.svg)](https://openjdk.org/)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Version](https://img.shields.io/badge/Version-1.1.6-brightgreen.svg)](https://github.com/JUKOMU/JMComic-Api-Java)
[![Version](https://img.shields.io/badge/Version-1.1.7-brightgreen.svg)](https://github.com/JUKOMU/JMComic-Api-Java)

---

Expand Down Expand Up @@ -43,7 +43,7 @@ jmcomic-android-support → Android 平台适配
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-core</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```

Expand Down
6 changes: 3 additions & 3 deletions docs/sources/quickstart/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-core</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```

Expand All @@ -27,7 +27,7 @@
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```

Expand All @@ -39,7 +39,7 @@
<dependency>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-android-support</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion jmcomic-android-support/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api-java</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</parent>

<artifactId>jmcomic-android-support</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jmcomic-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api-java</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</parent>

<artifactId>jmcomic-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion jmcomic-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api-java</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</parent>

<artifactId>jmcomic-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,16 @@ private static List<JmImage> buildImageList(String photoId, String scrambleId, S
List<JmImage> images = new ArrayList<>();
int sortOrder = 1;
for (JsonElement item : imagesArray) {
String filename = ((JsonObject) item).get("image").getAsString();
String filename;
if (item.isJsonPrimitive()) {
filename = item.getAsString();
} else if (item.isJsonObject()
&& item.getAsJsonObject().has("image")
&& !item.getAsJsonObject().get("image").isJsonNull()) {
filename = item.getAsJsonObject().get("image").getAsString();
} else {
throw new ParseResponseException("Unsupported image element format in images array: " + item);
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.
String url = String.format("%s%s/media/photos/%s/%s", JmConstants.PROTOCOL_HTTPS, imageDomain, photoId, filename);
images.add(new JmImage(
photoId,
Expand Down
2 changes: 1 addition & 1 deletion jmcomic-sample/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api-java</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
</parent>

<artifactId>jmcomic-sample</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.jukomu</groupId>
<artifactId>jmcomic-api-java</artifactId>
<version>1.1.6</version>
<version>1.1.7</version>
<packaging>pom</packaging>
<modules>
<module>jmcomic-api</module>
Expand Down
Loading