Visuels Google Play et progression S2E14 des animes
deploy / deploy (push) Successful in 42s

- 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:
Claude committed 2026-11-28 18:23:46 +00:00
1 parent 9a05afec5c
commit 036ecf61af
19 files changed
+21 -10

No files matched your search

+4 -4
View File
@@ -99,10 +99,10 @@ Rien d'autre : pas de localisation, pas de contacts, pas d'identifiant publicita
- Le mode « Explorer sans compte » permet de voir l'app sans se connecter.
- La partie sociale demande un compte : fournir à Google un **compte de test** (e-mail + mot de passe) dédié, sans double authentification.
## Visuels à fournir
- Icône 512 × 512 (déjà dans `public/icons/icon-512.png`).
- Bannière 1024 × 500.
- 2 à 8 captures d'écran de téléphone (format portrait, 16:9 ou 9:16).
## Visuels (prêts dans `docs/store/`)
- Icône 512 × 512 : `public/icons/icon-512.png`.
- Bannière 1024 × 500 : `banniere-fr.png`, `banniere-en.png`.
- Captures 1080 × 1920 : `fr-1…7-*.png` pour la fiche française, `en-1…7-*.png` pour l'anglaise (compte de démo, supprimé depuis).
## Avant publication
- Fichier `/.well-known/assetlinks.json` avec l'empreinte SHA-256 de la clé de signature de l'app Android (pour qu'elle s'ouvre sans barre d'adresse).
Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 740 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 735 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 528 KiB

+3 -2
View File
@@ -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)
}
+14 -4
View File
@@ -1,5 +1,5 @@
import { t } from '../../i18n'
import { ANILIST, ANILIST_FIELDS, aniToResult, CLOUD_TMDB, getTmdbDetails, sanitizeMeta, searchAll, tmdbFindExternal, tmdbImportSearch, type AniMedia, type SearchResult } from '../catalogApi'
import { ANILIST, ANILIST_FIELDS, aniToResult, CLOUD_TMDB, getTmdbDetails, getTmdbExtras, sanitizeMeta, searchAll, tmdbFindExternal, tmdbImportSearch, type AniMedia, type SearchResult } from '../catalogApi'
import type { MediaInput } from '../../types'
import { anilistEntries, titleKey, type AniListEntry, type ImportEntry } from './sources'
import type { TextEntry } from './textList'
@@ -16,6 +16,8 @@ export interface Match {
result: SearchResult
/** Métadonnées prêtes pour la fiche (titre, type, affiche, saisons…) */
meta: Partial<MediaInput>
/** Épisodes par saison quand la fiche n'en garde pas (animes) : sert à convertir « S2E14 » */
seasonSizes?: number[]
}
export interface Progress {
@@ -418,7 +420,7 @@ export function pickTextMatch(list: SearchResult[], e: Pick<TextEntry, 'title' |
}
/** Métadonnées d'un résultat choisi : la fiche TMDB complète (référence, année, durée, saisons…). */
export async function matchFor(result: SearchResult, key?: string): Promise<Match> {
export async function matchFor(result: SearchResult, key?: string, progressSeason?: number): Promise<Match> {
let meta: Partial<MediaInput> = {
title: result.title,
originalTitle: result.originalTitle,
@@ -435,6 +437,14 @@ export async function matchFor(result: SearchResult, key?: string): Promise<Matc
})
if (details) meta = { ...meta, ...details, poster: result.posterUrl ?? meta.poster }
}
// « S2E14 » sur un anime : la fiche ne découpe pas en saisons, on demande leur taille
if (key && progressSeason && progressSeason > 1 && !meta.seasons?.length && result.externalId.startsWith('tmdb:tv:')) {
const extras = await getTmdbExtras(result.externalId, key).catch((err) => {
if (isRateError(err)) throw err
return undefined
})
if (extras?.seasons?.length) return { result, meta, seasonSizes: extras.seasons }
}
return { result, meta }
}
@@ -472,7 +482,7 @@ export async function resolveTextEntries(entries: TextEntry[], opts: ResolveOpti
}
}
if (!pick.result) return
found.set(e.key, await withRetry(() => matchFor(pick.result!, key), token, onWait))
found.set(e.key, await withRetry(() => matchFor(pick.result!, key, e.progress?.season), token, onWait))
if (!pick.sure) unsure.add(e.key)
} catch (err) {
if (err instanceof CancelledError) throw err
@@ -488,7 +498,7 @@ export async function resolveTextEntries(entries: TextEntry[], opts: ResolveOpti
/** « S3E12 » → épisodes vus, une fois les saisons connues. */
export function withProgress(e: TextEntry, match?: Match): TextEntry {
if (!e.progress) return e
const seasons = match?.meta.seasons
const seasons = match?.meta.seasons?.length ? match.meta.seasons : match?.seasonSizes
const { season, episode } = e.progress
let watched: number | undefined
if (seasons?.length) watched = seasons.slice(0, season - 1).reduce((a, b) => a + b, 0) + episode