]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/postprocessor/xattrpp.py
[cleanup] Minor fixes (See desc)
[yt-dlp.git] / yt_dlp / postprocessor / xattrpp.py
index 065ddf9632de7d56b2f948237720314160a25a07..f822eff41cf093fc2a3411b3310e8956c988f809 100644 (file)
@@ -43,7 +43,7 @@ def run(self, info):
                 if value:
                     if infoname == 'upload_date':
                         value = hyphenate_date(value)
-                    write_xattr(info['filepath'], xattrname, value.encode('utf-8'))
+                    write_xattr(info['filepath'], xattrname, value.encode())
 
         except XAttrUnavailableError as e:
             raise PostProcessingError(str(e))