Repository: yt-dlp
Issue: Custom per-filetype output templates paths not shown in --print-to-file output
Labels: bug

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [X] I'm reporting that yt-dlp is broken on a **supported** site
- [X] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [X] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [X] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [X] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

Canada

### Provide a description that is worded well enough to be understood

Confirmed by pukkandan on Discord that this is a new bug.

- **`yt-dlp` version**: 2024.03.10.232703

- **Minimum Reproducible Command**:

```
yt-dlp https://www.youtube.com/watch?v=UfmkgQRmmeE \
  --write-thumbnail \
  --output "%(title)s.%(ext)s" \
  --output "thumbnail:%(title)s-thumb.%(ext)s" \
  --print-to-file "after_move:%()j" output.json
  ```
  
- **Expected Behaviour:**
That command should save the thumbnail with a `-thumb` suffix and that full filepath should be available in `output.json`

- **Actual Behaviour**
The thumbnail is saved with a `-thumb` suffix as expected, but the filepath shown in `output.json` does NOT have the `-thumb` suffix. It instead shows the original pre-move filepath. 

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [X] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://www.youtube.com/watch?v=UfmkgQRmmeE', '--write-thumbnail', '--output', '%(title)s.%(ext)s', '--output', 'thumbnail:%(title)s-thumb.%(ext)s', '--print-to-file', 'after_move:%()j', 'output.json']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.03.10.232703 from yt-dlp/yt-dlp-nightly-builds [8463fb510] (pip)
[debug] Python 3.11.2 (CPython aarch64 64bit) - Linux-6.3.13-linuxkit-aarch64-with-glibc2.36 (OpenSSL 3.0.11 19 Sep 2023, glibc 2.36)
[debug] exe versions: ffmpeg 5.1.4-0 (setts), ffprobe 5.1.4-0
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2024.02.02, mutagen-1.47.0, requests-2.31.0, sqlite3-3.40.1, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets
[debug] Loaded 1803 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.03.10.232703 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.03.10.232703 from yt-dlp/yt-dlp-nightly-builds)
[youtube] Extracting URL: https://www.youtube.com/watch?v=UfmkgQRmmeE
[youtube] UfmkgQRmmeE: Downloading webpage
[youtube] UfmkgQRmmeE: Downloading ios player API JSON
[youtube] UfmkgQRmmeE: Downloading android player API JSON
[youtube] UfmkgQRmmeE: Downloading m3u8 information
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, size, br, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] UfmkgQRmmeE: Downloading 1 format(s): 616+251
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: Van Morrison - Brown Eyed Girl (Official Audio).webp
[debug] Invoking hlsnative downloader on "https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1710451583/ei/HxfzZYXEHLKRsfIP_sq8sA0/ip/206.116.77.178/id/51f9a481046699e1/itag/616/source/youtube/requiressl/yes/ratebypass/yes/pfa/1/wft/1/sgovp/clen%3D56845838%3Bdur%3D184.280%3Bgir%3Dyes%3Bitag%3D356%3Blmt%3D1705842209500357/rqh/1/hls_chunk_host/rr3---sn-uxa0n-t35l.googlevideo.com/xpc/EgVo2aDSNQ%3D%3D/mh/p2/mm/31,29/mn/sn-uxa0n-t35l,sn-uxa0n-t8gs/ms/au,rdu/mv/m/mvi/3/pl/25/gcr/ca/initcwndbps/1888750/vprv/1/playlist_type/DVR/dover/13/txp/4532434/mt/1710429716/fvip/3/short_key/1/keepalive/yes/beids/24350320/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,pfa,wft,sgovp,rqh,xpc,gcr,vprv,playlist_type/sig/AJfQdSswRQIhAM3qVc72_2yupdgaDxv-iiV20Tv69CYhNoy7aeKdvNqMAiBkK3odUwgAYDiplrN5t1Hs0fr49DaRt6dPL2RW8Mc29Q%3D%3D/lsparams/hls_chunk_host,mh,mm,mn,ms,mv,mvi,pl,initcwndbps/lsig/APTiJQcwRAIgDvlODHtXuN6slF1ozBQ01x-wiMu5_kA2jZq8s1N0fccCIEP5WCCRYGGmmRsD2Ab2xDSLTDnb68N3Ewp4NFdc1e3e/playlist/index.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 35
[download] Destination: Van Morrison - Brown Eyed Girl (Official Audio).f616.mp4
[download] 100% of   54.22MiB in 00:00:02 at 18.21MiB/s
[debug] Invoking http downloader on "https://rr3---sn-uxa0n-t35l.googlevideo.com/videoplayback?expire=1710451583&ei=HxfzZayaJo-dsfIPiPaluAY&ip=206.116.77.178&id=o-AD8uhtIlnI3xn7X31kzwnBmzG717P08p_ZZB7Bex5j4y&itag=251&source=youtube&requiressl=yes&xpc=EgVo2aDSNQ%3D%3D&mh=p2&mm=31%2C29&mn=sn-uxa0n-t35l%2Csn-uxa0n-t8gs&ms=au%2Crdu&mv=m&mvi=3&pl=25&gcr=ca&initcwndbps=1992500&vprv=1&svpuc=1&mime=audio%2Fwebm&gir=yes&clen=3289991&dur=184.301&lmt=1705839579278341&mt=1710429465&fvip=3&keepalive=yes&c=ANDROID&txp=4532434&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cxpc%2Cgcr%2Cvprv%2Csvpuc%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJfQdSswRQIgQPv_0CCBAJ1ny_92Uwc83hJiG4Ugl72mCM4VT_rN0RsCIQDgU1sWO6F182ah_K1di8x8uxP_byBWjLQ4rqhEI-AG1g%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=APTiJQcwRQIgFfBvqa-bOVBjUtFplAMHbSl9XezGxzaKzzsTRuQiqG4CIQDeuXHQ59FOBfpgJricFJIa9ZVn0HlJKPiCvydg6ndCFQ%3D%3D"
[download] Destination: Van Morrison - Brown Eyed Girl (Official Audio).f251.webm
[download] 100% of    3.14MiB in 00:00:00 at 27.71MiB/s
[Merger] Merging formats into "Van Morrison - Brown Eyed Girl (Official Audio).webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Van Morrison - Brown Eyed Girl (Official Audio).f616.mp4' -i 'file:Van Morrison - Brown Eyed Girl (Official Audio).f251.webm' -c copy -map 0:v:0 -map 1:a:0 -movflags +faststart 'file:Van Morrison - Brown Eyed Girl (Official Audio).temp.webm'
Deleting original file Van Morrison - Brown Eyed Girl (Official Audio).f616.mp4 (pass -k to keep)
Deleting original file Van Morrison - Brown Eyed Girl (Official Audio).f251.webm (pass -k to keep)
[MoveFiles] Moving file "Van Morrison - Brown Eyed Girl (Official Audio).webp" to "Van Morrison - Brown Eyed Girl (Official Audio)-thumb.webp"
[info] Writing '%()j' to: output.json
```