Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
fix BASE_URL .
Browse files Browse the repository at this point in the history
  • Loading branch information
WhichWho committed Feb 22, 2023
1 parent 5e2f539 commit 8e943c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/loli/ball/kemono/factory/PostFactory.kt
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ object PostFactory {
for (fi in fs?.children().orEmpty()) {
if (fi.hasClass("post__attachment")) {
val a = fi.child(0)
val fileUrl = BASE_URL + a.attr("href")
val fileUrl = a.attr("href")
val fileName = a.text().replaceFirst("Download ", "")
files.add(RemoteFile(fileName, fileUrl))
}
Expand All @@ -132,7 +132,7 @@ object PostFactory {
for (pic in pics?.children().orEmpty()) {
if (pic.hasClass("post__thumbnail")) {
val a = pic.child(0)
val fullImage = BASE_URL + a.attr("href")
val fullImage = a.attr("href")
val thumbnail = BASE_URL + a.child(0).attr("data-src")
pictures.add(Picture(thumbnail, fullImage))
}
Expand Down

0 comments on commit 8e943c3

Please sign in to comment.