mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-07-30 16:19:25 +00:00
refactor(details): remove Simkl source action
This commit is contained in:
parent
38e3e89618
commit
bb609bc308
2 changed files with 0 additions and 35 deletions
|
|
@ -1169,7 +1169,6 @@
|
|||
<string name="tracking_library_source_simkl_selected">Simkl watchlist selected</string>
|
||||
<string name="tracking_watch_progress_simkl_selected">Watch progress source set to Simkl</string>
|
||||
<string name="tracking_watch_progress_dialog_subtitle">Choose the service Nuvio reads for resume and Continue Watching. Scrobbling remains active for every connected service.</string>
|
||||
<string name="details_view_on_simkl">View on Simkl</string>
|
||||
<string name="trakt_library_source_title">Library Source</string>
|
||||
<string name="trakt_library_source_subtitle">Choose which source Nuvio reads for your Library</string>
|
||||
<string name="trakt_library_source_dialog_title">Library Source</string>
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ import androidx.compose.foundation.lazy.LazyColumn
|
|||
import androidx.compose.foundation.lazy.LazyListScope
|
||||
import androidx.compose.foundation.lazy.rememberLazyListState
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.filled.OpenInNew
|
||||
import androidx.compose.material.icons.filled.Add
|
||||
import androidx.compose.material.icons.filled.Check
|
||||
import androidx.compose.material.icons.filled.CheckCircle
|
||||
|
|
@ -126,7 +125,6 @@ import com.nuvio.app.features.tracking.TrackingMembershipApplyResult
|
|||
import com.nuvio.app.features.tracking.toggleTrackingLibraryMembership
|
||||
import com.nuvio.app.features.tracking.TrackingSettingsRepository
|
||||
import com.nuvio.app.features.tracking.TrackingProviderId
|
||||
import com.nuvio.app.features.tracking.resolveTrackingAttribution
|
||||
import com.nuvio.app.features.trailer.TrailerPlaybackResolver
|
||||
import com.nuvio.app.features.trailer.TrailerPlaybackSource
|
||||
import com.nuvio.app.features.watched.WatchedRepository
|
||||
|
|
@ -467,24 +465,6 @@ fun MetaDetailsScreen(
|
|||
) {
|
||||
LibraryRepository.isSaved(meta.id, meta.type)
|
||||
}
|
||||
val simklSourceUrl = remember(
|
||||
libraryUiState.items,
|
||||
watchProgressUiState.entries,
|
||||
watchedUiState.items,
|
||||
meta.id,
|
||||
) {
|
||||
resolveTrackingAttribution(
|
||||
contentId = meta.id,
|
||||
providerId = TrackingProviderId.SIMKL,
|
||||
items = sequence {
|
||||
yieldAll(libraryUiState.items)
|
||||
yieldAll(watchProgressUiState.entries)
|
||||
yieldAll(watchedUiState.items)
|
||||
},
|
||||
)
|
||||
?.sourceUrl
|
||||
?.takeIf { url -> url.startsWith("https://simkl.com/") }
|
||||
}
|
||||
val isWatched = remember(watchedUiState.watchedKeys, fullyWatchedSeriesKeys, metaPreview) {
|
||||
WatchingState.isPosterWatched(
|
||||
watchedKeys = watchedUiState.watchedKeys,
|
||||
|
|
@ -1062,7 +1042,6 @@ fun MetaDetailsScreen(
|
|||
playButtonLabel = playButtonLabel,
|
||||
isSaved = isSaved,
|
||||
isWatched = isWatched,
|
||||
simklSourceUrl = simklSourceUrl,
|
||||
onPrimaryPlayClick = onPrimaryPlayClick,
|
||||
onPrimaryPlayLongClick = onPrimaryPlayLongClick,
|
||||
onSaveClick = toggleSaved,
|
||||
|
|
@ -1735,7 +1714,6 @@ private fun LazyListScope.configuredMetaSectionItems(
|
|||
playButtonLabel: String,
|
||||
isSaved: Boolean,
|
||||
isWatched: Boolean,
|
||||
simklSourceUrl: String?,
|
||||
onPrimaryPlayClick: () -> Unit,
|
||||
onPrimaryPlayLongClick: (() -> Unit)?,
|
||||
onSaveClick: () -> Unit,
|
||||
|
|
@ -1812,7 +1790,6 @@ private fun LazyListScope.configuredMetaSectionItems(
|
|||
playButtonLabel = playButtonLabel,
|
||||
isSaved = isSaved,
|
||||
isWatched = isWatched,
|
||||
simklSourceUrl = simklSourceUrl,
|
||||
onPrimaryPlayClick = onPrimaryPlayClick,
|
||||
onPrimaryPlayLongClick = onPrimaryPlayLongClick,
|
||||
onSaveClick = onSaveClick,
|
||||
|
|
@ -1962,7 +1939,6 @@ private fun ConfiguredMetaSections(
|
|||
playButtonLabel: String,
|
||||
isSaved: Boolean,
|
||||
isWatched: Boolean,
|
||||
simklSourceUrl: String?,
|
||||
onPrimaryPlayClick: () -> Unit,
|
||||
onPrimaryPlayLongClick: (() -> Unit)?,
|
||||
onSaveClick: () -> Unit,
|
||||
|
|
@ -2002,7 +1978,6 @@ private fun ConfiguredMetaSections(
|
|||
animatedVisibilityScope: AnimatedVisibilityScope?,
|
||||
) {
|
||||
val enabledItems = settings.items.filter { it.enabled }
|
||||
val uriHandler = LocalUriHandler.current
|
||||
|
||||
// Helper to check if a section actually has content to show
|
||||
val sectionHasContent: (MetaScreenSectionKey) -> Boolean = { key ->
|
||||
|
|
@ -2056,15 +2031,6 @@ private fun ConfiguredMetaSections(
|
|||
onClick = onSaveClick,
|
||||
onLongClick = onSaveLongClick,
|
||||
))
|
||||
simklSourceUrl?.let { sourceUrl ->
|
||||
add(
|
||||
DetailSecondaryAction(
|
||||
label = stringResource(Res.string.details_view_on_simkl),
|
||||
icon = Icons.AutoMirrored.Filled.OpenInNew,
|
||||
onClick = { runCatching { uriHandler.openUri(sourceUrl) } },
|
||||
),
|
||||
)
|
||||
}
|
||||
},
|
||||
isTablet = isTablet,
|
||||
onPlayClick = onPrimaryPlayClick,
|
||||
|
|
|
|||
Loading…
Reference in a new issue