Delegate hitomi, it is now the first fully delegated factory source. To continue using hitomi please download the extension. This comes with a lot of fixes for future delegated factory sources

This commit is contained in:
Jobobby04
2020-08-10 23:29:10 -04:00
parent f8efe5d189
commit 9a3fdc23e6
11 changed files with 91 additions and 386 deletions
@@ -239,9 +239,7 @@ abstract class DelegatedHttpSource(val delegate: HttpSource) : HttpSource() {
override fun getFilterList() = delegate.getFilterList()
private fun ensureDelegateCompatible() {
if (versionId != delegate.versionId ||
lang != delegate.lang
) {
if ((versionId != delegate.versionId || lang != delegate.lang) && id != delegate.id) {
throw IncompatibleDelegateException("Delegate source is not compatible (versionId: $versionId <=> ${delegate.versionId}, lang: $lang <=> ${delegate.lang})!")
}
}