mirror of
https://github.com/venera-app/venera-configs.git
synced 2025-09-27 08:27:24 +00:00
[nhentai] fix cover
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
"name": "nhentai",
|
"name": "nhentai",
|
||||||
"fileName": "nhentai.js",
|
"fileName": "nhentai.js",
|
||||||
"key": "nhentai",
|
"key": "nhentai",
|
||||||
"version": "1.0.4"
|
"version": "1.0.5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "紳士漫畫",
|
"name": "紳士漫畫",
|
||||||
|
21
nhentai.js
21
nhentai.js
@@ -7,7 +7,7 @@ class Nhentai extends ComicSource {
|
|||||||
// unique id of the source
|
// unique id of the source
|
||||||
key = "nhentai"
|
key = "nhentai"
|
||||||
|
|
||||||
version = "1.0.4"
|
version = "1.0.5"
|
||||||
|
|
||||||
minAppVersion = "1.0.0"
|
minAppVersion = "1.0.0"
|
||||||
|
|
||||||
@@ -328,6 +328,25 @@ class Nhentai extends ComicSource {
|
|||||||
|
|
||||||
/// single comic related
|
/// single comic related
|
||||||
comic = {
|
comic = {
|
||||||
|
/**
|
||||||
|
* [Optional] provide configs for a thumbnail loading
|
||||||
|
* @param url {string}
|
||||||
|
* @returns {ImageLoadingConfig | Promise<ImageLoadingConfig>}
|
||||||
|
*
|
||||||
|
* `ImageLoadingConfig.modifyImage` and `ImageLoadingConfig.onLoadFailed` will be ignored.
|
||||||
|
* They are not supported for thumbnails.
|
||||||
|
*/
|
||||||
|
onThumbnailLoad: (url) => {
|
||||||
|
if(url.startsWith("//")) {
|
||||||
|
url = "https:" + url
|
||||||
|
} else if(!url.startsWith("http")) {
|
||||||
|
url = "https://" + url
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
url: url,
|
||||||
|
}
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* load comic info
|
* load comic info
|
||||||
* @param id {string}
|
* @param id {string}
|
||||||
|
Reference in New Issue
Block a user