Option to delete original file after postprocessing while using --split-chapter
See original GitHub issueDO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I remove or skip any mandatory* field
Checklist
- I’m requesting a feature unrelated to a specific site
- I’ve looked through the README
- I’ve verified that I’m running yt-dlp version 2022.08.14 (update instructions) or later (specify commit)
- I’ve searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
Provide a description that is worded well enough to be understood
Suppose we want to download a channel or playlist that contains individual videos of full albums. We attempt to download the all of its content using,
yt-dlp -x --split-chapter <channel/playlist url>
yt-dlp will extract audio and then split the chapters into individual tracks as desired, but the original full-album file from which the individuals tracks were produced remains. If we are using yt-dlp for music archival purposes (as I am), this can end up taking up a lot of unnecessary storage and can be quite a pain to clean up after the fact. It would be nice to have an option, --no-keep-unsplit for example, that will remove the unsplit file after splitting is complete.
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>) - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
No response
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to delete file post processing if the integration fails with ...
1. In exception subprocess of main flow, call another integration flow using pocess direct reciever adapter and pass the directory and filename ...
Read more >How do I use the Delete Original File From Source function in ...
In the Traditional Task setup workflow, I am prompted to determine if I would like to delete the original file from the source...
Read more >How to Automatically Move, Copy or Delete Files after Printing
1. Open Print Conductor and go to Settings. Switch to Advanced Settings · 2. Switch to the Advanced tab. Find post processing section...
Read more >[Question] Split chapter and split subtitle of Video #2182
I did it first by embedding the subs onto the main video and then splitting it by chapters afterwards. This is different from...
Read more >yt-dlp command man page - ManKier
Download a video or playlist (with the default options from command below): yt-dlp ... Delete the intermediate video file after post-processing (default).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
You can just use
--exec rmor--exec deldepending on your OSafter download complete --split-chapter does not save in %(playlist)s/ folder like
-o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s"