# Immich TV Viewer - V1.4 Debug Tools

Projet cible :

D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer

## Fichiers modifiés / ajoutés

- lib/main.dart
- tools/immich_debug_person.ps1
- tools/immich_debug_people_sample.ps1
- README_V1_4_DEBUG_TOOLS.txt

## Changements dans l'app

- Affiche les 8 premiers caractères de l'ID personne sous chaque visage.
- Affiche aussi l'ID court dans le titre de l'écran photos.
- Ajoute des logs Flutter `IMMICH_DEBUG` dans la console quand on ouvre une personne et quand on charge les photos.
- Corrige la boucle de pagination photos pour ne pas refaire deux fois la même requête par page.

## Test manuel d'une personne précise

Dans PowerShell :

```powershell
cd D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer
$env:IMMICH_KEY = "TA_CLE_API"
.\tools\immich_debug_person.ps1 -PersonId "ID_PERSONNE_ICI"
```

Le script crée :

- `debug_person_xxxxxxxx.json`
- `person_xxxxxxxx.jpg`
- `asset_preview_xxxxxxxx.jpg`
- `asset_thumb_xxxxxxxx.jpg`

## Test global rapide

```powershell
cd D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer
$env:IMMICH_KEY = "TA_CLE_API"
.\tools\immich_debug_people_sample.ps1
```

Le script crée :

- `immich_people_photo_debug.csv`

## Lancer l'app

```powershell
cd D:\07-Logiciels\17-IMMICH-TV\immich_tv_viewer
flutter run -d 192.168.1.8:5555
```
