|
@@ -10,7 +10,6 @@ import eu.kanade.tachiyomi.source.model.MangasPage
|
|
|
import eu.kanade.tachiyomi.source.model.Page
|
|
|
import eu.kanade.tachiyomi.source.model.SChapter
|
|
|
import eu.kanade.tachiyomi.source.model.SManga
|
|
|
-import eu.kanade.tachiyomi.util.system.WebViewUtil
|
|
|
import okhttp3.Headers
|
|
|
import okhttp3.OkHttpClient
|
|
|
import okhttp3.Request
|
|
@@ -75,7 +74,7 @@ abstract class HttpSource : CatalogueSource {
|
|
|
* Headers builder for requests. Implementations can override this method for custom headers.
|
|
|
*/
|
|
|
protected open fun headersBuilder() = Headers.Builder().apply {
|
|
|
- add("User-Agent", WebViewUtil.DEFAULT_USER_AGENT)
|
|
|
+ add("User-Agent", DEFAULT_USER_AGENT)
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -370,4 +369,8 @@ abstract class HttpSource : CatalogueSource {
|
|
|
* Returns the list of filters for the source.
|
|
|
*/
|
|
|
override fun getFilterList() = FilterList()
|
|
|
+
|
|
|
+ companion object {
|
|
|
+ const val DEFAULT_USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.63"
|
|
|
+ }
|
|
|
}
|