Skip to content

Commit

Permalink
fix crash when trying to use komga with anime
Browse files Browse the repository at this point in the history
  • Loading branch information
jmir1 committed May 25, 2021
1 parent 4c2a81b commit 19c93cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class Komga(private val context: Context, id: Int) : TrackService(id), Unattende
}

override fun accept(source: Source): Boolean = source::class.qualifiedName == ACCEPTED_SOURCE
override fun accept(source: AnimeSource): Boolean = throw Exception("Not used")
override fun accept(source: AnimeSource): Boolean = source::class.qualifiedName == ACCEPTED_SOURCE

override suspend fun match(manga: Manga): TrackSearch? =
try {
Expand Down

0 comments on commit 19c93cc

Please sign in to comment.