Add "Where from:" meta information to downloaded file #23612

Open
opened 2026-02-21 11:33:25 -05:00 by deekerman · 1 comment
Owner

Originally created by @phdoerfler on GitHub (May 2, 2021).

Checklist

  • I'm reporting a feature request
  • I've verified that I'm running youtube-dl version 2021.04.26
  • I've searched the bugtracker for similar feature requests including closed ones

Description

On macOS when downloading something with Safari, meta information will be added to the downloaded file which contains the URL it was downloaded from.
I wish that youtube-dl would mimic this and add this same information.

image

With this one could thus have youtube-dl save videos without their id in the filename and still reliably find where it was downloaded from.

Originally created by @phdoerfler on GitHub (May 2, 2021). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.04.26. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED. - Search the bugtracker for similar feature requests: http://yt-dl.org/search-issues. DO NOT post duplicates. - Finally, put x into all relevant boxes (like this [x]) --> - [x] I'm reporting a feature request - [x] I've verified that I'm running youtube-dl version **2021.04.26** - [x] I've searched the bugtracker for similar feature requests including closed ones ## Description <!-- Provide an explanation of your issue in an arbitrary form. Please make sure the description is worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. Provide any additional information, suggested solution and as much context and examples as possible. --> On macOS when downloading something with Safari, meta information will be added to the downloaded file which contains the URL it was downloaded from. I wish that youtube-dl would mimic this and add this same information. <img width="274" alt="image" src="https://user-images.githubusercontent.com/163428/116817516-06437f00-ab67-11eb-89d0-8f66c380034f.png"> With this one could thus have youtube-dl save videos without their id in the filename and still reliably find where it was downloaded from.
Author
Owner

@ghost commented on GitHub (May 2, 2021):

Found old open issues #8089, #2545. Someone once tried to implement it, but didn't finish it, it seems.

I guess the short way for now is to write a script using osxmetadata package or this script, then invoke it through --exec option.

@ghost commented on GitHub (May 2, 2021): Found old open issues #8089, #2545. Someone once tried to implement it, but didn't finish it, it seems. I guess the short way for now is to write a script using [osxmetadata](https://pypi.org/project/osxmetadata/) package or [this script](https://gist.github.com/dunhamsteve/2889617), then invoke it through --exec option.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#23612
No description provided.