projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[washingtonpost] remove unnecessary code
[youtube-dl]
/
youtube_dl
/
postprocessor
/
metadatafromtitle.py
diff --git
a/youtube_dl/postprocessor/metadatafromtitle.py
b/youtube_dl/postprocessor/metadatafromtitle.py
index a56077f206b5133f2fae3fadbcad10523353ed5a..42377fa0f0bde0d3fa6ae578c6eaa0fe4a73474d 100644
(file)
--- a/
youtube_dl/postprocessor/metadatafromtitle.py
+++ b/
youtube_dl/postprocessor/metadatafromtitle.py
@@
-24,7
+24,7
@@
class MetadataFromTitlePP(PostProcessor):
'(?P<title>.+)\ \-\ (?P<artist>.+)'
"""
lastpos = 0
- regex =
""
+ regex =
''
# replace %(..)s with regex group and escape other string parts
for match in re.finditer(r'%\((\w+)\)s', fmt):
regex += re.escape(fmt[lastpos:match.start()])