mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Simkl fixes
This commit is contained in:
parent
f14698265f
commit
0021718b5b
5 changed files with 5 additions and 8 deletions
|
@ -124,7 +124,7 @@ class SimklApi(index: Int) : AccountManager(index), SyncAPI {
|
|||
}
|
||||
|
||||
fun getPosterUrl(poster: String): String {
|
||||
return "https://wsrv.nl/?url=https://simkl.in/posters/${poster}_m.jpg"
|
||||
return "https://wsrv.nl/?url=https://simkl.in/posters/${poster}_m.webp"
|
||||
}
|
||||
|
||||
private fun getUrlFromId(id: Int): String {
|
||||
|
@ -744,9 +744,6 @@ class SimklApi(index: Int) : AccountManager(index), SyncAPI {
|
|||
activities?.tv_shows?.all,
|
||||
activities?.anime?.all,
|
||||
activities?.movies?.all,
|
||||
activities?.tv_shows?.rated_at,
|
||||
activities?.anime?.rated_at,
|
||||
activities?.movies?.rated_at,
|
||||
).maxOf {
|
||||
getUnixTime(it) ?: -1
|
||||
}
|
||||
|
|
|
@ -258,7 +258,7 @@ class SettingsAccount : PreferenceFragmentCompat() {
|
|||
listOf(
|
||||
R.string.mal_key to malApi,
|
||||
R.string.anilist_key to aniListApi,
|
||||
R.string.trakt_key to simklApi,
|
||||
R.string.simkl_key to simklApi,
|
||||
R.string.opensubtitles_key to openSubtitlesApi,
|
||||
)
|
||||
|
||||
|
|
|
@ -450,7 +450,7 @@
|
|||
<string name="bottom_title_settings_des">Put the title under the poster</string>
|
||||
<!-- account stuff -->
|
||||
<string name="anilist_key" translatable="false">anilist_key</string>
|
||||
<string name="trakt_key" translatable="false">trakt_key</string>
|
||||
<string name="simkl_key" translatable="false">simkl_key</string>
|
||||
<string name="mal_key" translatable="false">mal_key</string>
|
||||
<string name="opensubtitles_key" translatable="false">opensubtitles_key</string>
|
||||
<string name="nginx_key" translatable="false">nginx_key</string>
|
||||
|
|
|
@ -738,7 +738,7 @@
|
|||
</style>
|
||||
|
||||
<style name="SelectableButtonTV" parent="RegularButtonTV">
|
||||
<item name="icon">@drawable/cpv_preset_checked</item>
|
||||
<item name="icon">@drawable/ic_baseline_check_24_listview</item>
|
||||
<item name="iconTint">@color/button_selector_color</item>
|
||||
</style>
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
<Preference
|
||||
android:icon="@drawable/simkl_logo"
|
||||
android:key="@string/trakt_key" />
|
||||
android:key="@string/simkl_key" />
|
||||
|
||||
<Preference
|
||||
android:icon="@drawable/open_subtitles_icon"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue