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.
Would like to add extended attributes to saved file #8668
Comments
|
There is an error in the extended attributes code in the youtube_dl/downloader/http.py file. Patch attached. |
|
I have added extended attributes code in youtube_dl/YoutubeDL.py. Patch attached. This is in the post_process() function. Any better place to put it? Thanks. |
|
Sorry for the late response. Looks like the two patches point to different problems. For For |
|
Regarding version ox xattr, I am using xattr. Details below: Metadata-Version: 1.1 |
|
Is there any error message? Please post the command with |
|
I have the patched version. I was using xattr and had to do the patching. Have just installed "python-pyxattr 0.5.5-2", and uninstalled xattr. It works with my patched version. We rebuild a fresh (non-patched) version and test again. |
|
I've rewritten some xattr related codes in youtube-dl. Some changes are quite similar to your proposed patches, so I bet all problems are solved. Feel free to leave comments if there are still issues. |
Hi,
I want to add extended attributes (for example discussed in https://www.freedesktop.org/wiki/CommonExtendedAttributes/) to the downloaded file. I see that there is an option "xattr_set_filesize" available.
Can someone point me to where I can add extended attributes to the downloaded file. I am primarily looking to store the source URL and other metadata as extended attributes.
Thanks.