Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Store the source URL in extended attributes of a .part file #5467
Comments
|
This can be achieved by doing |
|
Interesting, thanks. But that creates another file, which clutters up directory listings, and which I would have to clean up later. I would rather avoid this kind of inconvenience for the sake of a feature I'll only use occasionally and at rather unpredictable times. Though that seems to imply that it should be a smallish patch to do. Maybe I'll look into it myself if no one else does. |
|
Okay, I tried implementing this in a local branch, and ran into a problem -- ext4 limits the size of every extended attribute to one block (4K), while the Three options now:
|
|
Assuming you are using the same system as the Another solution that may be simpler would be to add an option ( |
|
By the time you want to resume the download, the target file name has already been determined. On the other hand, the metadata may need to be kept if a post-processor needs it. (By the way, no information about post-processors seems to be present in Also:
Hmm. |
You are right, I was thinking in the current implementation for
None of them, the postprocessors are global. As with the rest options you would need to use the same command line arguments (unless you want to store the arguments). |
It would be nice if youtube-dl stored the source URL in an extended attribute of the
.partfile (could be conditionalised on the--xattrsoption). This could be useful in the case one wishes to complete a partial video download whose original URL they have forgotten.Bonus points for having
youtube-dl -c path/to/video.mp4.partresume the download (and maybeyoutube-dl path/to/video.mp4.partrestart downloading from scratch; maybe some other combination of options would be better).