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.
Save source link in extended attribute (Mac) #2545
Comments
|
There are already the |
|
|
|
I can work on this, which browsers add the webpage url?, do you know if there's some documentation for the names that are used in the xattrs? |
|
As I said, I have working code. I'll replace |
|
I'd send a pull request for the above but have to figure out this rebasing stuff first |
|
Apple's use of xattr is different than the XDG standard. From a file downloaded by Safari:
For those unaware, files (or, in this case, metadata) that starts with |
Browsers on the Mac set a "Where From" attribute on downloaded files. Files also have a comments field, where some people put a URL.
I implemented the latter as an external tool, and would integrate it into youtube-dl if it has any chance to be accepted. The former wouldn't be a problem, either.