feat(MangaDex): use tracker links to associate mangas automatically with trackers (#1387)
* feat: add searchById support to trackers (MAL, AniList, MangaUpdates only) * feat: add new preference to toggle auto selection of tracker items using source metadata if available * feat: add new preference to toggle auto selection of tracker items using source metadata if available * feat: add automatic title selection using source metadata to TrackInfoDialog.kt * style: apply spotless * refactor: remove hardcoded MangaDexSearchMetadata cast and introduce common interface
This commit is contained in:
+8
@@ -59,6 +59,7 @@ import tachiyomi.core.common.util.lang.launchIO
|
||||
import tachiyomi.core.common.util.lang.withUIContext
|
||||
import tachiyomi.domain.source.service.SourceManager
|
||||
import tachiyomi.i18n.MR
|
||||
import tachiyomi.i18n.sy.SYMR
|
||||
import tachiyomi.presentation.core.components.material.padding
|
||||
import tachiyomi.presentation.core.i18n.stringResource
|
||||
import uy.kohesive.injekt.Injekt
|
||||
@@ -135,6 +136,13 @@ object SettingsTrackingScreen : SearchableSettings {
|
||||
.associateWith { stringResource(it.titleRes) }
|
||||
.toPersistentMap(),
|
||||
),
|
||||
// SY -->
|
||||
Preference.PreferenceItem.SwitchPreference(
|
||||
pref = trackPreferences.resolveUsingSourceMetadata(),
|
||||
title = stringResource(SYMR.strings.pref_tracker_resolve_using_source_metadata),
|
||||
subtitle = stringResource(SYMR.strings.pref_tracker_resolve_using_source_metadata_summary),
|
||||
),
|
||||
// SY <--
|
||||
Preference.PreferenceGroup(
|
||||
title = stringResource(MR.strings.services),
|
||||
preferenceItems = persistentListOf(
|
||||
|
||||
Reference in New Issue
Block a user