mirror of
https://github.com/heavycaffeiner/ayaya.git
synced 2025-10-28 04:44:56 +09:00
Chore: some cleanup
This commit is contained in:
@@ -31,7 +31,6 @@ public class AyayaBot {
|
|||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
System.err.println("[ERR > AyayaBot.main()] Failed to Init\n" + e.getMessage());
|
System.err.println("[ERR > AyayaBot.main()] Failed to Init\n" + e.getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ public class AyayaUtils {
|
|||||||
conn.setRequestMethod("GET");
|
conn.setRequestMethod("GET");
|
||||||
|
|
||||||
conn.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36");
|
conn.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36");
|
||||||
conn.setRequestProperty("Accept", "image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8");
|
|
||||||
conn.setRequestProperty("Referer", "https://hitomi.la/");
|
conn.setRequestProperty("Referer", "https://hitomi.la/");
|
||||||
|
|
||||||
if (conn.getResponseCode() != HttpURLConnection.HTTP_OK) {
|
if (conn.getResponseCode() != HttpURLConnection.HTTP_OK) {
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ public class Hitomi {
|
|||||||
|
|
||||||
for (JsonNode node : files) {
|
for (JsonNode node : files) {
|
||||||
String fileHash = node.get("hash").asText();
|
String fileHash = node.get("hash").asText();
|
||||||
// Boolean hasAvif = node.get("hasavif").asBoolean();
|
|
||||||
|
|
||||||
galleryData.add(fileHash);
|
galleryData.add(fileHash);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user