Repository: yt-dlp
Issue: Converted Subtitles Not Moved From Temp Folder
Labels: bug,triage,core:post-processor

### 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 asking a question and **not** reporting a bug or requesting a feature
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [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 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 questions **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)

### Please make sure the question is worded well enough to be understood

If I am using "--write-subs --convert-subs srt" along with a folder specified by -P temp:, the srt file is being left behind in the temp folder and only the mkv is moved to the destination.  If I do not --convert-subs, the original subtitle file is moved as expected.  For now I've tweaked my download script to move the file after the fact, but I believe either the program is not working as expected or I am not using the arguments properly (I only added the extra -P home: and -P subtitle: during troubleshooting).

### Provide verbose output that clearly demonstrates the problem

- [X] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [x] 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: ['-P', 'temp:/media/X_Drive/temp/ytdlp', '-P', 'home:/media/CCore-TVTemp', '-P', 'subtitle:/media/CCore-TVTemp', '--cookies', 'cookies.txt', '--merge-output-format', 'mkv', '--remux-video', 'mkv', '--embed-metadata', '--write-subs', '--convert-subs', 'srt', '--sub-lang', 'en.*', '-o', 'Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - %(title)s (%(height)sp WEB-DL).%(ext)s', 'https://play.aetv.com/shows/biography-wwe-legends/season-4/episode-10', '-f', 'bv*[height<=1080]+ba/b', '--merge-output-format', 'mkv', '--download-archive', './Biography WWE Legends/downloads.txt', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version master@2024.06.17.163732 from yt-dlp/yt-dlp-master-builds [90c3721a3] (zip)
[debug] Python 3.8.10 (CPython x86_64 64bit) - Linux-5.4.0-186-generic-x86_64-with-glibc2.29 (OpenSSL 1.1.1f  31 Mar 2020, glibc 2.31)
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.1, phantomjs broken
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2023.11.17, mutagen-1.46.0, requests-2.31.0, secretstorage-2.3.1, sqlite3-3.31.1, urllib3-1.26.7, websockets-10.4
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1823 extractors
[debug] Loading archive file './Biography WWE Legends/downloads.txt'
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-master-builds/releases/latest
Latest version: master@2024.06.17.163732 from yt-dlp/yt-dlp-master-builds
yt-dlp is up to date (master@2024.06.17.163732 from yt-dlp/yt-dlp-master-builds)
[aenetworks] Extracting URL: https://play.aetv.com/shows/biography-wwe-legends/season-4/episode-10
[aenetworks] /shows/biography-wwe-legends/season-4/episode-10: Downloading JSON metadata
[aenetworks] 2346665539861: Downloading JSON metadata
[debug] Loading ap-mvpd.AETV from cache
[aenetworks] 2346665539861: Retrieving Media Token
[aenetworks] 2346665539861: Downloading hls_high_ak SMIL data
[aenetworks] 2346665539861: Downloading high_video_s3 SMIL data
[aenetworks] 2346665539861: Downloading hls_high_fastly SMIL data
[aenetworks] 2346665539861: Downloading m3u8 information
[info] 2346665539861: Downloading subtitles: en
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[info] 2346665539861: Downloading 1 format(s): hls-2651+hls-AAC-English
[info] Writing video subtitles to: /media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).en.dfxp
[debug] Invoking http downloader on "https://ssl.aetndigital.com/captionfiles/AETN-AETV_VMS/AEN_BWWL_266795_GLB_435538_5994_60_20240530_01_AETN-AETV_VMS.dfxp"
[download] Destination: /media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).en.dfxp
[download] 100% of  126.14KiB in 00:00:00 at 1.09MiB/s
[SubtitlesConvertor] Converting subtitles
WARNING: You have requested to convert dfxp (TTML) subtitles into another format, which results in style information loss
Deleting original file /media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).en.dfxp (pass -k to keep)
[debug] Invoking hlsnative downloader on "https://sundries-vds.video.aetnd.com/credentials-prod/demuxed/token/aGRudHM9c3Q9MTcxODY2NDQ0MX5leHA9MTcxODY4NjA3MX5hY2w9L2JpdG1vdmluL0FFVE4tQUVUVl9WTVMvQUVOX0JXV0xfMjY2Nzk1X0dMQl80MzU1MzhfNTk5NF82MF8yMDI0MDUzMF8wMV9BRVROLUFFVFZfVk1TXyp+aG1hYz04OWIyNGNhOWQ3MDU2ZjRmMDNhNjNhYjhjZmY4YzZjZjkzNmVmODJhMmY0ZWMzNTc0YTQ0MzBjMGM4ZTk2OWQz/bitmovin/AETN-AETV_VMS/AEN_BWWL_266795_GLB_435538_5994_60_20240530_01_AETN-AETV_VMS_2500.mp4-video.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 320
[download] Destination: /media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).fhls-2651.mp4
[download] 100% of  793.13MiB in 00:01:06 at 11.89MiB/s
[debug] Invoking hlsnative downloader on "https://sundries-vds.video.aetnd.com/credentials-prod/demuxed/token/aGRudHM9c3Q9MTcxODY2NDQ0MX5leHA9MTcxODY4NjA3MX5hY2w9L2JpdG1vdmluL0FFVE4tQUVUVl9WTVMvQUVOX0JXV0xfMjY2Nzk1X0dMQl80MzU1MzhfNTk5NF82MF8yMDI0MDUzMF8wMV9BRVROLUFFVFZfVk1TXyp+aG1hYz04OWIyNGNhOWQ3MDU2ZjRmMDNhNjNhYjhjZmY4YzZjZjkzNmVmODJhMmY0ZWMzNTc0YTQ0MzBjMGM4ZTk2OWQz/bitmovin/AETN-AETV_VMS/AEN_BWWL_266795_GLB_435538_5994_60_20240530_01_AETN-AETV_VMS_en.mp4-audio.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 511
[download] Destination: /media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).fhls-AAC-English.mp4
[download] 100% of   19.58MiB in 00:00:40 at 490.74KiB/s
[debug] ffmpeg command line: ffprobe -show_streams 'file:/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).fhls-AAC-English.mp4'
[Merger] Merging formats into "/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).fhls-2651.mp4' -i 'file:/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).fhls-AAC-English.mp4' -c copy -map 0:v:0 -map 1:a:0 -bsf:a:0 aac_adtstoasc -movflags +faststart 'file:/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).temp.mkv'
Deleting original file /media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).fhls-AAC-English.mp4 (pass -k to keep)
Deleting original file /media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).fhls-2651.mp4 (pass -k to keep)
[VideoRemuxer] Not remuxing media file "/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).mkv"; already is in target format mkv
[Metadata] Adding metadata to "/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).mkv"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).mkv' -i 'file:/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).meta' -map 0 -dn -ignore_unknown -c copy -map_metadata 1 -write_id3v1 1 -metadata title=ECW -metadata date=20240613 -metadata 'description=This is ECW--Extreme Championship Wrestling--an underground movement that would change the face of professional wrestling forever, and create a unique legacy that is still felt to this day in WWE.' -metadata 'synopsis=This is ECW--Extreme Championship Wrestling--an underground movement that would change the face of professional wrestling forever, and create a unique legacy that is still felt to this day in WWE.' -metadata purl=https://play.aetv.com/shows/biography-wwe-legends/season-4/episode-10 -metadata comment=https://play.aetv.com/shows/biography-wwe-legends/season-4/episode-10 -metadata artist=AENE-NEW -metadata 'show=Biography: WWE Legends' -metadata season_number=4 -metadata 'episode_id=Episode 10' -metadata episode_sort=10 -metadata:s:1 language=eng -movflags +faststart 'file:/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).temp.mkv'
[MoveFiles] Moving file "/media/X_Drive/temp/ytdlp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).mkv" to "/media/CCore-TVTemp/Biography WWE Legends/Season 04/Biography WWE Legends - S04E10 - ECW (720p WEB-DL).mkv"
[debug] Adding to archive: aenetworks 2346665539861
```