mirror of
https://github.com/heavycaffeiner/ayaya.git
synced 2025-10-27 20:34:55 +09:00
Chore: some cleanup
This commit is contained in:
@@ -31,7 +31,6 @@ public class AyayaBot {
|
||||
} catch (InterruptedException e) {
|
||||
System.err.println("[ERR > AyayaBot.main()] Failed to Init\n" + e.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@ public class AyayaUtils {
|
||||
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("Accept", "image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8");
|
||||
conn.setRequestProperty("Referer", "https://hitomi.la/");
|
||||
|
||||
if (conn.getResponseCode() != HttpURLConnection.HTTP_OK) {
|
||||
|
||||
@@ -30,7 +30,6 @@ public class Hitomi {
|
||||
|
||||
for (JsonNode node : files) {
|
||||
String fileHash = node.get("hash").asText();
|
||||
// Boolean hasAvif = node.get("hasavif").asBoolean();
|
||||
|
||||
galleryData.add(fileHash);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user