You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
l1ving_youtube-dl/youtube_dl
Yen Chi Hsuan 53a7e3d287
[utils] Support xattr as well as pyxattr
Closes #9054

There are two xattr packages in Python, pyxattr [1] and xattr [2]. They
have different APIs.

In old days pyxattr supports Linux only and xattr supports Linux, Mac,
FreeBSD and Solaris, and pyxattr supports Linux only. Recently pyxattr
adds support for Mac OS X. [3]

An old version of [2] is shipped with Mac OS X. However, some Linux
distributions have pyxattr only, for example PLD-Linux [4] and old Arch
Linux. [5] As a result, supporting both is the way to go.

[1] https://github.com/iustin/pyxattr
[2] https://github.com/xattr/xattr
[3] https://github.com/iustin/pyxattr/pull/9
[4] https://github.com/rg3/youtube-dl/issues/5498
[5] https://git.archlinux.org/svntogit/community.git/commit/?id=427c4c76401e386d865ccddea4fbfdc74df80492
    https://git.archlinux.org/svntogit/community.git/commit/?id=59b40da7b69622a6761d364a8b07909e9cccaa56
    python-xattr is added on 2016/06/29 while pyxattr is there for more
    than 6 years
8 years ago
..
downloader [downloader/http] xattr values should be bytes 8 years ago
extractor Merge pull request #10818 from TRox1972/criterion_match_id 8 years ago
postprocessor Move write_xattr to utils.py 8 years ago
YoutubeDL.py [YoutubeDL] Improve Adobe Pass options' wording 8 years ago
__init__.py [downloader/http] Use write_xattr function for --xattr-set-filesize 8 years ago
__main__.py
aes.py
cache.py
compat.py [compat] Fix test_cmdline_umlauts on Python 2.6 8 years ago
jsinterp.py [jsinterp] Relax JS function regex (Closes #9863) 8 years ago
options.py [options] Actually print Adobe Pass options sections in --help 8 years ago
socks.py Fix misspelling 8 years ago
swfinterp.py [compat] Rename struct_(un)pack to compat_struct_(un)pack 8 years ago
update.py [update] Fix youtube-dl.exe updating from arbitrary directory (Closes #2718) 8 years ago
utils.py [utils] Support xattr as well as pyxattr 8 years ago
version.py release 2016.09.27 8 years ago