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:
NerdNumber9
2017-08-24 18:31:08 -04:00
parent dcb6ae44dd
commit 239b36c31a
5 changed files with 85 additions and 17 deletions

View File

@@ -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()
}
}