mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-24 08:45:27 +00:00
[xattr] Coding style
This commit is contained in:
parent
5f263296ea
commit
ad84831537
1 changed files with 8 additions and 7 deletions
|
@ -523,6 +523,7 @@ class FFmpegMergerPP(FFmpegPostProcessor):
|
||||||
self.run_ffmpeg_multiple_files(info['__files_to_merge'], filename, args)
|
self.run_ffmpeg_multiple_files(info['__files_to_merge'], filename, args)
|
||||||
return True, info
|
return True, info
|
||||||
|
|
||||||
|
|
||||||
class XAttrMetadataPP(PostProcessor):
|
class XAttrMetadataPP(PostProcessor):
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -602,9 +603,9 @@ class XAttrMetadataPP(PostProcessor):
|
||||||
assert(path.find(":") < 0)
|
assert(path.find(":") < 0)
|
||||||
assert(os.path.exists(path))
|
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.write(value)
|
||||||
f.close()
|
|
||||||
|
|
||||||
# Write the metadata to the file's xattrs
|
# Write the metadata to the file's xattrs
|
||||||
self._downloader.to_screen('[metadata] Writing metadata to file\'s xattrs...')
|
self._downloader.to_screen('[metadata] Writing metadata to file\'s xattrs...')
|
||||||
|
|
Loading…
Reference in a new issue