mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
fix: addConverterFactory to retrofit client
This commit is contained in:
parent
17e64f3dd0
commit
204f9ff4c7
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ class RetrofitClient(subsonic: Subsonic) {
|
||||||
init {
|
init {
|
||||||
retrofit = Retrofit.Builder()
|
retrofit = Retrofit.Builder()
|
||||||
.baseUrl(subsonic.url)
|
.baseUrl(subsonic.url)
|
||||||
|
.addConverterFactory(GsonConverterFactory.create(GsonBuilder().setDateFormat("yyyy-MM-dd'T'HH:mm:ss").create()))
|
||||||
.addConverterFactory(GsonConverterFactory.create(GsonBuilder().setLenient().create()))
|
.addConverterFactory(GsonConverterFactory.create(GsonBuilder().setLenient().create()))
|
||||||
.client(getOkHttpClient())
|
.client(getOkHttpClient())
|
||||||
.build()
|
.build()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue