Browse Source

fix tmdb search for movies

movies don't have name but titles
pull/44/head
Jannik 12 months ago
parent
commit
664959641f
Signed by: Seil0
GPG Key ID: E8459F3723C52C24
  1. 2
      app/build.gradle
  2. 2
      app/src/main/java/org/mosad/teapod/ui/activity/main/MainActivity.kt
  3. 2
      app/src/main/java/org/mosad/teapod/util/TMDBApiController.kt

2
app/build.gradle

@ -11,7 +11,7 @@ android {
minSdkVersion 23
targetSdkVersion 30
versionCode 4190 //00.04.190
versionName "0.4.2-beta1"
versionName "0.4.2-beta2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
resValue "string", "build_time", buildTime()

2
app/src/main/java/org/mosad/teapod/ui/activity/main/MainActivity.kt

@ -145,7 +145,7 @@ class MainActivity : AppCompatActivity(), NavigationBarView.OnItemSelectedListen
EncryptedPreferences.readCredentials(this)
StorageController.load(this)
// show onbaording
// show onboarding
if (EncryptedPreferences.password.isEmpty()) {
showOnboarding()
} else {

2
app/src/main/java/org/mosad/teapod/util/TMDBApiController.kt

@ -69,7 +69,7 @@ class TMDBApiController {
// println(response)
val sortedResults = response.get("results").asJsonArray.toList().sortedBy {
getStringNotNull(it.asJsonObject, "name")
getStringNotNull(it.asJsonObject, "title")
}
return@withContext if (sortedResults.isNotEmpty()) {

Loading…
Cancel
Save

Du besuchst diese Seite mit einem veralteten IPv4-Internetzugang. Möglicherweise treten in Zukunft Probleme mit der Erreichbarkeit und Performance auf. Bitte frage deinen Internetanbieter oder Netzwerkadministrator nach IPv6-Unterstützung.
You are visiting this site with an outdated IPv4 internet access. You may experience problems with accessibility and performance in the future. Please ask your ISP or network administrator for IPv6 support.
Weitere Infos | More Information
Klicke zum schließen | Click to close