[zh-dmzj]use muwai.com instead of dmzj.com (#7830)

* [zh-dmzj]use muwai.com instead of dmzj.com

use muwai.com for v4apiUrl & v3ChapterApiUrl & imageCDNUrl

* bump version
This commit is contained in:
zhongfly 2021-06-24 21:00:33 +08:00 committed by GitHub
parent ce5dcfb042
commit dcdc43b984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Dmzj' extName = 'Dmzj'
pkgNameSuffix = 'zh.dmzj' pkgNameSuffix = 'zh.dmzj'
extClass = '.Dmzj' extClass = '.Dmzj'
extVersionCode = 21 extVersionCode = 22
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -46,13 +46,13 @@ class Dmzj : ConfigurableSource, HttpSource() {
override val name = "动漫之家" override val name = "动漫之家"
override val baseUrl = "https://m.dmzj.com" override val baseUrl = "https://m.dmzj.com"
private val v3apiUrl = "https://v3api.dmzj.com" private val v3apiUrl = "https://v3api.dmzj.com"
private val v3ChapterApiUrl = "https://nnv3api.dmzj.com" private val v3ChapterApiUrl = "https://nnv3api.muwai.com"
// v3api now shutdown the functionality to fetch manga detail and chapter list, so move these logic to v4api // v3api now shutdown the functionality to fetch manga detail and chapter list, so move these logic to v4api
private val v4apiUrl = "https://nnv4api.dmzj1.com" // https://v4api.dmzj1.com private val v4apiUrl = "https://nnv4api.muwai.com" // https://v4api.dmzj1.com
private val apiUrl = "https://api.dmzj.com" private val apiUrl = "https://api.dmzj.com"
private val oldPageListApiUrl = "https://api.m.dmzj.com" private val oldPageListApiUrl = "https://api.m.dmzj.com"
private val webviewPageListApiUrl = "https://m.dmzj.com/chapinfo" private val webviewPageListApiUrl = "https://m.dmzj.com/chapinfo"
private val imageCDNUrl = "https://images.dmzj.com" private val imageCDNUrl = "https://images.muwai.com"
private fun cleanUrl(url: String) = if (url.startsWith("//")) private fun cleanUrl(url: String) = if (url.startsWith("//"))
"https:$url" "https:$url"