mirror of
https://github.com/BrenBroZAYT/gameyfin.git
synced 2026-06-16 08:15:48 +00:00
Fix download button not showing
Change description of "library.scan.title-match-min-ratio" config property
This commit is contained in:
@@ -47,11 +47,8 @@ function LibraryManagementLayout({getConfig, formik}: any) {
|
|||||||
<Section title="Scanning"/>
|
<Section title="Scanning"/>
|
||||||
<ConfigFormField configElement={getConfig("library.scan.enable-filesystem-watcher")}/>
|
<ConfigFormField configElement={getConfig("library.scan.enable-filesystem-watcher")}/>
|
||||||
<ConfigFormField configElement={getConfig("library.scan.scan-empty-directories")}/>
|
<ConfigFormField configElement={getConfig("library.scan.scan-empty-directories")}/>
|
||||||
<div className="flex flex-row gap-4">
|
<div className="flex flex-row gap-4 items-baseline">
|
||||||
<ConfigFormField configElement={getConfig("library.scan.title-match-min-ratio")}/>
|
<ConfigFormField configElement={getConfig("library.scan.title-match-min-ratio")}/>
|
||||||
<p className="text-foreground/80">
|
|
||||||
Minimum required Levenshtein ratio to consider two titles the same.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<ConfigFormField configElement={getConfig("library.scan.game-file-extensions")}/>
|
<ConfigFormField configElement={getConfig("library.scan.game-file-extensions")}/>
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export default function GameView() {
|
|||||||
const state = useSnapshot(gameState);
|
const state = useSnapshot(gameState);
|
||||||
const game = gameId ? state.state[parseInt(gameId)] as GameDto : undefined;
|
const game = gameId ? state.state[parseInt(gameId)] as GameDto : undefined;
|
||||||
|
|
||||||
const [downloadOptions, setDownloadOptions] = useState<Record<string, ComboButtonOption>>({});
|
const [downloadOptions, setDownloadOptions] = useState<Record<string, ComboButtonOption>>();
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
DownloadProviderEndpoint.getProviders().then((providers) => {
|
DownloadProviderEndpoint.getProviders().then((providers) => {
|
||||||
@@ -66,10 +66,10 @@ export default function GameView() {
|
|||||||
<p className="text-foreground/60">{game.release !== undefined ? new Date(game.release).getFullYear() : "unknown"}</p>
|
<p className="text-foreground/60">{game.release !== undefined ? new Date(game.release).getFullYear() : "unknown"}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<ComboButton description={humanFileSize(game.fileSize)}
|
{downloadOptions && <ComboButton description={humanFileSize(game.fileSize)}
|
||||||
options={downloadOptions}
|
options={downloadOptions}
|
||||||
preferredOptionKey="preferred-download-method"
|
preferredOptionKey="preferred-download-method"
|
||||||
/>
|
/>}
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-8">
|
<div className="flex flex-col gap-8">
|
||||||
<div className="flex flex-row gap-12">
|
<div className="flex flex-row gap-12">
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ sealed class ConfigProperties<T : Serializable>(
|
|||||||
data object TitleMatchMinRatio : ConfigProperties<Int>(
|
data object TitleMatchMinRatio : ConfigProperties<Int>(
|
||||||
Int::class,
|
Int::class,
|
||||||
"library.scan.title-match-min-ratio",
|
"library.scan.title-match-min-ratio",
|
||||||
"Minimum ratio for title matching (0-100)",
|
"Minimum ratio for title matching (0-100). Higher values mean stricter matching.",
|
||||||
90
|
90
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user