Option to delete original file after postprocessing while using --split-chapter

See original GitHub issue

DO 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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
pukkandancommented, Aug 18, 2022

You can just use --exec rm or --exec del depending on your OS

0reactions
candrapersadacommented, Aug 19, 2022

after download complete --split-chapter does not save in %(playlist)s/ folder like -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s"

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found