diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2013-02-21 17:09:39 +0100 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2013-02-21 17:09:39 +0100 | 
| commit | 8271226a55bd3daa7eddfe2efc243892de02ccf4 (patch) | |
| tree | c7135d07183cbba75f2f44fb6fb305d4c8223979 /youtube_dl/FileDownloader.py | |
| parent | 1013186a172a05d57e87857604719cae6b8d7049 (diff) | |
Fix --match-title and --reject-title decoding (Closes #690)
Diffstat (limited to 'youtube_dl/FileDownloader.py')
| -rw-r--r-- | youtube_dl/FileDownloader.py | 2 | 
1 files changed, 0 insertions, 2 deletions
| diff --git a/youtube_dl/FileDownloader.py b/youtube_dl/FileDownloader.py index 0ac526389..53c2d1dce 100644 --- a/youtube_dl/FileDownloader.py +++ b/youtube_dl/FileDownloader.py @@ -370,12 +370,10 @@ class FileDownloader(object):          title = info_dict['title']          matchtitle = self.params.get('matchtitle', False)          if matchtitle: -            matchtitle = matchtitle.decode('utf8')              if not re.search(matchtitle, title, re.IGNORECASE):                  return u'[download] "' + title + '" title did not match pattern "' + matchtitle + '"'          rejecttitle = self.params.get('rejecttitle', False)          if rejecttitle: -            rejecttitle = rejecttitle.decode('utf8')              if re.search(rejecttitle, title, re.IGNORECASE):                  return u'"' + title + '" title matched reject pattern "' + rejecttitle + '"'          return None | 
