Fixed bug fetching old galleries from hiyobi

This commit is contained in:
tom5079
2019-11-15 19:47:09 +09:00
parent 69fc3ad4e8
commit c004c7f71a
2 changed files with 9 additions and 1 deletions

View File

@@ -26,7 +26,7 @@ fun webpUrlFromUrl(url: String) = url.replace("/galleries/", "/webp/") + ".webp"
data class GalleryInfo( data class GalleryInfo(
val width: Int, val width: Int,
val hash: String? = null, val hash: String? = null,
val haswebp: Int, val haswebp: Int = 0,
val name: String, val name: String,
val height: Int val height: Int
) )

View File

@@ -20,6 +20,7 @@ package xyz.quaver.hitomi
import org.junit.Assert.assertEquals import org.junit.Assert.assertEquals
import org.junit.Test import org.junit.Test
import xyz.quaver.availableInHiyobi
class UnitTest { class UnitTest {
@Test @Test
@@ -92,4 +93,11 @@ class UnitTest {
print(url) print(url)
} }
@Test
fun test_availableInHiyobi() {
val result = availableInHiyobi(1272781)
print(result)
}
} }