mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-20 16:01:14 +01:00
Transfer commit
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package eu.kanade.tachiyomi.source.online.english
|
||||
|
||||
import android.net.Uri
|
||||
import eu.kanade.tachiyomi.source.model.FilterList
|
||||
import eu.kanade.tachiyomi.source.model.MangasPage
|
||||
import eu.kanade.tachiyomi.source.online.HttpSource
|
||||
@@ -34,4 +35,16 @@ class Pururin(delegate: HttpSource) : DelegatedHttpSource(delegate),
|
||||
super.fetchSearchManga(page, query, filters)
|
||||
}
|
||||
}
|
||||
|
||||
override fun parseIntoMetadata(metadata: PururinSearchMetadata, input: Document) {
|
||||
val selfLink = input.select("[itemprop=name]").last().parent()
|
||||
val parsedSelfLink = Uri.parse(selfLink.attr("href")).pathSegments
|
||||
|
||||
with(metadata) {
|
||||
prId = parsedSelfLink[parsedSelfLink.lastIndex - 1].toIntOrNull()
|
||||
prShortLink = parsedSelfLink.last()
|
||||
|
||||
title =
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user