mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-08 18:18:56 +01:00
Add nhentai URL importing
Allow fast importing of single URLs by inputting the URL into the source's search bar
This commit is contained in:
@@ -11,7 +11,7 @@ class NHentaiMetadata : SearchableGalleryMetadata() {
|
||||
var url get() = id?.let { "$BASE_URL/g/$it" }
|
||||
set(a) {
|
||||
a?.let {
|
||||
id = a.split("/").last().toLong()
|
||||
id = a.split("/").last { it.isNotBlank() }.toLong()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user