aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/postprocessor/metadatafromtitle.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-04-12 20:38:43 +0100
committerRemita Amine <remitamine@gmail.com>2017-04-12 20:38:43 +0100
commit40fcba5edb0f54f09e33a193a0ffefb5668ca694 (patch)
tree28f40ca64f30e71cbce96cbf069ce5121afd715c /youtube_dl/postprocessor/metadatafromtitle.py
parente4d74e2778ca283330460d893a0923820a74df66 (diff)
improve coding style
Diffstat (limited to 'youtube_dl/postprocessor/metadatafromtitle.py')
-rw-r--r--youtube_dl/postprocessor/metadatafromtitle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/postprocessor/metadatafromtitle.py b/youtube_dl/postprocessor/metadatafromtitle.py
index 164edd3a8..a7d637a3c 100644
--- a/youtube_dl/postprocessor/metadatafromtitle.py
+++ b/youtube_dl/postprocessor/metadatafromtitle.py
@@ -26,7 +26,7 @@ class MetadataFromTitlePP(PostProcessor):
regex += r'(?P<' + match.group(1) + '>.+)'
lastpos = match.end()
if lastpos < len(fmt):
- regex += re.escape(fmt[lastpos:len(fmt)])
+ regex += re.escape(fmt[lastpos:])
return regex
def run(self, info):