mirror of
https://github.com/FluxaMedia/fluxa.git
synced 2026-07-26 20:02:14 +00:00
Update IMDb parents-guide API base URL to tiffara.com
imdbapi.dev moved its base URL; also drops the now-dead ImdbApiService.create() factory since HomeViewModel already gets its instance through Hilt DI in NetworkModule.
This commit is contained in:
parent
944484323a
commit
ca0f8e28b2
2 changed files with 1 additions and 12 deletions
|
|
@ -185,7 +185,7 @@ object NetworkModule {
|
|||
@Singleton
|
||||
fun provideImdbApiService(@Named("StremioClient") client: OkHttpClient): ImdbApiService {
|
||||
return Retrofit.Builder()
|
||||
.baseUrl("https://api.imdbapi.dev/")
|
||||
.baseUrl("https://tiffara.com/")
|
||||
.client(client)
|
||||
.addConverterFactory(GsonConverterFactory.create())
|
||||
.build()
|
||||
|
|
|
|||
|
|
@ -259,17 +259,6 @@ data class TmdbCollectionResponse(
|
|||
interface ImdbApiService {
|
||||
@GET("titles/{titleId}/parentsGuide")
|
||||
suspend fun getParentsGuide(@Path("titleId") titleId: String): ParentsGuideResponse
|
||||
|
||||
companion object {
|
||||
fun create(): ImdbApiService {
|
||||
return Retrofit.Builder()
|
||||
.baseUrl("https://api.imdbapi.dev/")
|
||||
.callFactory { request -> StremioService.sharedClient.newCall(request) }
|
||||
.addConverterFactory(GsonConverterFactory.create())
|
||||
.build()
|
||||
.create(ImdbApiService::class.java)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data class ParentsGuideResponse(val parentsGuide: List<ParentsGuideCategory> = emptyList())
|
||||
|
|
|
|||
Loading…
Reference in a new issue