Minor cleanup

This commit is contained in:
arkon
2020-03-08 22:38:38 -04:00
parent fb5da15746
commit fb00929ee9
2 changed files with 9 additions and 7 deletions

View File

@@ -74,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", "Mozilla/5.0 (Windows NT 6.3; WOW64)")
add("User-Agent", DEFAULT_USERAGENT)
}
/**
@@ -367,4 +367,8 @@ abstract class HttpSource : CatalogueSource {
* Returns the list of filters for the source.
*/
override fun getFilterList() = FilterList()
companion object {
const val DEFAULT_USERAGENT = "Mozilla/5.0 (Windows NT 6.3; WOW64)"
}
}