]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/postprocessor/xattrpp.py
Imported Upstream version 2014.11.23
[youtubedl] / youtube_dl / postprocessor / xattrpp.py
index 18979241cd9f0bb70cf2d8e9c00709ec43db1fea..b5cae41c8cd061a494a722c1db4261e3eca597b8 100644 (file)
@@ -3,6 +3,9 @@ import subprocess
 import sys
 
 from .common import PostProcessor
+from ..compat import (
+    subprocess_check_output
+)
 from ..utils import (
     check_executable,
     hyphenate_date,
@@ -57,7 +60,7 @@ class XAttrMetadataPP(PostProcessor):
                         elif user_has_xattr:
                             cmd = ['xattr', '-w', key, value, path]
 
-                        subprocess.check_output(cmd)
+                        subprocess_check_output(cmd)
 
                 else:
                     # On Unix, and can't find pyxattr, setfattr, or xattr.