- docs/store : bannière 1024×500 et 7 captures 1080×1920, en français et en anglais - Coller une liste : « S2E14 » converti aussi quand la fiche ne découpe pas les saisons (taille des saisons demandée à TMDB) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
19 files changed
+21
-10
No files matched your search
@@ -99,6 +99,7 @@ export default function ImportTextReview({
|
||||
{editing === e.key && (
|
||||
<Picker
|
||||
initial={e.fullTitle ?? e.title}
|
||||
progressSeason={e.progress?.season}
|
||||
tmdbKey={tmdbKey}
|
||||
onPick={(match) => {
|
||||
onChange(e.key, match)
|
||||
@@ -118,7 +119,7 @@ export default function ImportTextReview({
|
||||
}
|
||||
|
||||
/** Recherche d'un autre titre pour une ligne. */
|
||||
function Picker({ initial, tmdbKey, onPick }: { initial: string; tmdbKey?: string; onPick: (m: Match) => void }) {
|
||||
function Picker({ initial, progressSeason, tmdbKey, onPick }: { initial: string; progressSeason?: number; tmdbKey?: string; onPick: (m: Match) => void }) {
|
||||
const [q, setQ] = useState(initial)
|
||||
const [results, setResults] = useState<SearchResult[]>()
|
||||
const [busy, setBusy] = useState(false)
|
||||
@@ -141,7 +142,7 @@ function Picker({ initial, tmdbKey, onPick }: { initial: string; tmdbKey?: strin
|
||||
const pick = async (r: SearchResult) => {
|
||||
setBusy(true)
|
||||
try {
|
||||
onPick(await matchFor(r, tmdbKey?.trim() || undefined))
|
||||
onPick(await matchFor(r, tmdbKey?.trim() || undefined, progressSeason))
|
||||
} finally {
|
||||
setBusy(false)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user