Fix downloads when intro skipper is enabled and server is not reachable (#248)

This commit is contained in:
Jcuhfehl 2023-01-27 21:43:02 +01:00 committed by GitHub
parent e6e5cf05ca
commit 4b17e42d2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -227,7 +227,6 @@ class JellyfinRepositoryImpl(private val jellyfinApi: JellyfinApi) : JellyfinRep
try {
return@withContext jellyfinApi.api.get<Intro>("/Episode/{itemId}/IntroTimestamps/v1", pathParameters).content
} catch (e: InvalidStatusException) {
if (e.status != 404) throw e
return@withContext null
}
}