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.
--xattrs does not work on OS X. #9054
Comments
|
How did you install pyxattr and what's your pyxattr's version? |
|
@yan12125 I don't remember installing it myself. It must have come with another package at some point in time. How do I check the version? |
|
Run the following command:
|
|
@yan12125 I have version 0.6.4 |
|
I guess you have installed dxpy via homebrew? [1] It ships with xattr 0.6.4 [2], which is different from pyxattr [3], and currently only the latter is supported by youtube-dl. [2] claims to support both Linux and Mac OS X explicitly while [3] says only Linux supported. youtube-dl should add support for [2]. [1] https://github.com/Homebrew/homebrew-core/blob/master/Formula/dxpy.rb |
|
Sorry mis-clicking. |
|
I can see this issue on Linux as well.
|
|
@wilx Post the output of the following command:
|
|
@yan12125 Here:
|
|
You are using xattr [1]. Remove it and install pyxattr [2]. The two are similar but have different APIs. [1] https://github.com/xattr/xattr |
|
OK, this does fix the issue for me. |
|
How do you install pyxattr on OS X? |
|
pyxattr does not support OS X. youtube-dl should support both xattr and pyxattr. I'll try to implement it. |
|
OK, I tried fixing this myself. I think something in ffmpeg is removing attributes, but that's just a wild guess. I can post the code I put together for assigning the metadata in the xattrs post processor, if anyone is interested in stepping in where I gave up. |
@Saklad5 It would be great. |
|
|
Could you paste your command too? |
|
What command? I just modified youtube-dl/postprocessor/xattrspp.py to check the system platform and add additional metadata if it was macOS. |
|
In a previous post, you've mentioned that ffmpeg inteferes with |
|
I noticed that the metadata seemed to be applied to the video file after being downloaded, but it wasn’t present after being merged with the audio file. “mdls” didn’t even show any of the Dublin Core attributes. |
Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
I attempted to download a video and I wanted to use the
-xattrsflag, but the above error came up. The file does not appear on my computer. I do not know what other description or information to provide, if any, but if you need me to supply more information I will do my best to do so.