- 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
No files matched your search
@@ -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.
|
- 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.
|
- La partie sociale demande un compte : fournir à Google un **compte de test** (e-mail + mot de passe) dédié, sans double authentification.
|
||||||
|
|
||||||
## Visuels à fournir
|
## Visuels (prêts dans `docs/store/`)
|
||||||
- Icône 512 × 512 (déjà dans `public/icons/icon-512.png`).
|
- Icône 512 × 512 : `public/icons/icon-512.png`.
|
||||||
- Bannière 1024 × 500.
|
- Bannière 1024 × 500 : `banniere-fr.png`, `banniere-en.png`.
|
||||||
- 2 à 8 captures d'écran de téléphone (format portrait, 16:9 ou 9:16).
|
- 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
|
## 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).
|
- 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).
|
||||||
|
|||||||
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 43 KiB |
|
After Width: | Height: | Size: 539 KiB |
|
After Width: | Height: | Size: 740 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 368 KiB |
|
After Width: | Height: | Size: 520 KiB |
|
After Width: | Height: | Size: 538 KiB |
|
After Width: | Height: | Size: 735 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 143 KiB |
|
After Width: | Height: | Size: 155 KiB |
|
After Width: | Height: | Size: 363 KiB |
|
After Width: | Height: | Size: 528 KiB |
@@ -99,6 +99,7 @@ export default function ImportTextReview({
|
|||||||
{editing === e.key && (
|
{editing === e.key && (
|
||||||
<Picker
|
<Picker
|
||||||
initial={e.fullTitle ?? e.title}
|
initial={e.fullTitle ?? e.title}
|
||||||
|
progressSeason={e.progress?.season}
|
||||||
tmdbKey={tmdbKey}
|
tmdbKey={tmdbKey}
|
||||||
onPick={(match) => {
|
onPick={(match) => {
|
||||||
onChange(e.key, match)
|
onChange(e.key, match)
|
||||||
@@ -118,7 +119,7 @@ export default function ImportTextReview({
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Recherche d'un autre titre pour une ligne. */
|
/** 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 [q, setQ] = useState(initial)
|
||||||
const [results, setResults] = useState<SearchResult[]>()
|
const [results, setResults] = useState<SearchResult[]>()
|
||||||
const [busy, setBusy] = useState(false)
|
const [busy, setBusy] = useState(false)
|
||||||
@@ -141,7 +142,7 @@ function Picker({ initial, tmdbKey, onPick }: { initial: string; tmdbKey?: strin
|
|||||||
const pick = async (r: SearchResult) => {
|
const pick = async (r: SearchResult) => {
|
||||||
setBusy(true)
|
setBusy(true)
|
||||||
try {
|
try {
|
||||||
onPick(await matchFor(r, tmdbKey?.trim() || undefined))
|
onPick(await matchFor(r, tmdbKey?.trim() || undefined, progressSeason))
|
||||||
} finally {
|
} finally {
|
||||||
setBusy(false)
|
setBusy(false)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { t } from '../../i18n'
|
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 type { MediaInput } from '../../types'
|
||||||
import { anilistEntries, titleKey, type AniListEntry, type ImportEntry } from './sources'
|
import { anilistEntries, titleKey, type AniListEntry, type ImportEntry } from './sources'
|
||||||
import type { TextEntry } from './textList'
|
import type { TextEntry } from './textList'
|
||||||
@@ -16,6 +16,8 @@ export interface Match {
|
|||||||
result: SearchResult
|
result: SearchResult
|
||||||
/** Métadonnées prêtes pour la fiche (titre, type, affiche, saisons…) */
|
/** Métadonnées prêtes pour la fiche (titre, type, affiche, saisons…) */
|
||||||
meta: Partial<MediaInput>
|
meta: Partial<MediaInput>
|
||||||
|
/** Épisodes par saison quand la fiche n'en garde pas (animes) : sert à convertir « S2E14 » */
|
||||||
|
seasonSizes?: number[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Progress {
|
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…). */
|
/** 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> = {
|
let meta: Partial<MediaInput> = {
|
||||||
title: result.title,
|
title: result.title,
|
||||||
originalTitle: result.originalTitle,
|
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 }
|
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 }
|
return { result, meta }
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -472,7 +482,7 @@ export async function resolveTextEntries(entries: TextEntry[], opts: ResolveOpti
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!pick.result) return
|
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)
|
if (!pick.sure) unsure.add(e.key)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof CancelledError) throw 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. */
|
/** « S3E12 » → épisodes vus, une fois les saisons connues. */
|
||||||
export function withProgress(e: TextEntry, match?: Match): TextEntry {
|
export function withProgress(e: TextEntry, match?: Match): TextEntry {
|
||||||
if (!e.progress) return e
|
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
|
const { season, episode } = e.progress
|
||||||
let watched: number | undefined
|
let watched: number | undefined
|
||||||
if (seasons?.length) watched = seasons.slice(0, season - 1).reduce((a, b) => a + b, 0) + episode
|
if (seasons?.length) watched = seasons.slice(0, season - 1).reduce((a, b) => a + b, 0) + episode
|
||||||
|
|||||||