New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subtitle file is not deleted after being embedded #630
Comments
Just because you don't have a use-case for it doesn't mean it is pointless
If you are using
While this is not the "right" behaviour imo, you are right that this is how upstream works. So I will make a
It is not the same. |
|
For reference, here's the differences: youtube-dl
yt-dlp
Edited to be more comprehensive |
You arbitrarily decided to change a long standing default behavior because one user asked for this in an unrelated issue, no proper issue was ever open about this. Changing that default behavior makes the transition from youtube-dl to yt-dlp and viceversa a pain because it breaks years old config files and requires to pay extra unneeded attention when using one project or the other. Not only that, but those who embed Not only that, but it's also lacking. For example, I want to automatically embed subs if they are present, if there is no subtitles track I want to embed automatically generated subs. In youtube-dl I would go with
There is no point having internal and external tracks for the large majority of users. Even if someone might need both for some edge case, there's no point in making it the default instead of creating a From the Readme (emphasis mine):
Changing defaults goes against the purpose of this project. |
It is youtube-dl's handling of
I have no intention of maintaining perfect compatibility with years old youtube-dl config files out of the box - especially if they are using such undocumented "features". If you really want yt-dlp to work as close to youtube-dl as possible, you should use It is true that I had failed to document how
This is a fair point. Currently the only way to achive this is by using the compat-option. I will see what can be done to improve this
This is clearly not the intended use of Instead of changing how
Keeping up-to-date means that upstream changes will be pulled to yt-dlp in a timely manner, not that I won't make any changes |
Thanks for the fix @pukkandan. For simplicity you should allow compatibility options as standalone flags too (for example allow both
If you really think so you should open an issue in youtube-dl project to express your reasons. |
I think this issue should be kept open until this is resolved. |
|
It is now possible using the compat option. But I do agree that it should be possible without it. Please open a new issue |
|
Opened #826 to track it. |
|
BTW using just
|
|
What about |
|
You can create your own "shortcuts" with |
|
ack. sorry I meant to post this on #2262. Having subs and autosub configuration completely separate but "shortcuts" like edit: or |
|
The point of the option: is to give priority to the subs, not the auto-subs, is this corrrect? |
|
Yes. It will download normal subs if found, and auto-subs otherwise |
Embedding subtitles in the video and also keeping the file is pointless and it results in 2 identical tracks for the same video.
The default behavior of youtube-dl is to keep the file if not embedded and delete it if embedded, this is smarter because the
-kflag can be used if someone wants to embed and also keep the file, but there is no flag to automatically remove the file once embedded.Maybe adding a flag like
--keep-subs-filewould solve the problem for those few users who might want both, but the default should be what youtube-dl does, keep the file if external subs or embed and delete.The text was updated successfully, but these errors were encountered: