Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Backups
youtube-dl
Commits
5192ee17
Unverified
Commit
5192ee17
authored
May 25, 2017
by
Yen Chi Hsuan
Browse files
[postprocessor/ffmpeg] Fix metadata filename handling on Python 2
Fixes #13182
parent
e834f044
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
ChangeLog
ChangeLog
+6
-0
youtube_dl/postprocessor/ffmpeg.py
youtube_dl/postprocessor/ffmpeg.py
+1
-1
No files found.
ChangeLog
View file @
5192ee17
version <unreleased>
Core
* [postprocessor/ffmpeg] Fix metadata filename handling on Python 2 (#13182)
version 2017.05.23
Core
...
...
youtube_dl/postprocessor/ffmpeg.py
View file @
5192ee17
...
...
@@ -444,7 +444,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
chapters
=
info
.
get
(
'chapters'
,
[])
if
chapters
:
metadata_filename
=
encodeFilename
(
replace_extension
(
filename
,
'meta'
)
)
metadata_filename
=
replace_extension
(
filename
,
'meta'
)
with
io
.
open
(
metadata_filename
,
'wt'
,
encoding
=
'utf-8'
)
as
f
:
def
ffmpeg_escape
(
text
):
return
re
.
sub
(
r
'(=|;|#|\\|\n)'
,
r
'\\\1'
,
text
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment