Update UnionMangas Referer header to the new home url. (#1645)

Update UnionMangas "Referer" header to the new home url
This commit is contained in:
Alessandro Jean 2019-10-14 00:00:48 -03:00 committed by arkon
parent 37d3badddd
commit 657aeed536
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: Union Mangás'
pkgNameSuffix = 'pt.unionmangas'
extClass = '.UnionMangas'
extVersionCode = 8
extVersionCode = 9
libVersion = '1.2'
}

View File

@ -38,7 +38,7 @@ class UnionMangas : ParsedHttpSource() {
override fun headersBuilder(): Headers.Builder = Headers.Builder()
.add("User-Agent", USER_AGENT)
.add("Origin", baseUrl)
.add("Referer", "$baseUrl/ne")
.add("Referer", "$baseUrl/home-nn")
override fun popularMangaRequest(page: Int): Request {
val pageStr = if (page != 1) "/$page" else ""