1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-23 00:54:31 +01:00

[xattr] Coding style

This commit is contained in:
Philipp Hagemeister 2014-01-07 05:45:15 +01:00
parent 5f263296ea
commit ad84831537

View File

@ -523,6 +523,7 @@ class FFmpegMergerPP(FFmpegPostProcessor):
self.run_ffmpeg_multiple_files(info['__files_to_merge'], filename, args)
return True, info
class XAttrMetadataPP(PostProcessor):
#
@ -602,9 +603,9 @@ class XAttrMetadataPP(PostProcessor):
assert(path.find(":") < 0)
assert(os.path.exists(path))
f = open(path+":"+key, "w")
ads_fn = path + ":" + key
with open(ads_fn, "w") as f:
f.write(value)
f.close()
# Write the metadata to the file's xattrs
self._downloader.to_screen('[metadata] Writing metadata to file\'s xattrs...')