Skip to content

Commit

Permalink
Fix the english comment I've add
Browse files Browse the repository at this point in the history
  • Loading branch information
Kcchouette authored Jan 14, 2017
1 parent 0c02644 commit 42d22fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crunchy-xml-decoder/ultimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ def ultimate(page_url, seasonnum, epnum):
# title = h.unescape(unidecode(title)).replace('/', ' - ').replace(':', '-').
# replace('?', '.').replace('"', "''").replace('|', '-').replace('"',"''").strip()

### Taken from http://stackoverflow.com/questions/6116978/python-replace-multiple-strings and imrpoved to include the backslash###
### Taken from http://stackoverflow.com/questions/6116978/python-replace-multiple-strings and improved to include the backslash###
rep = {' / ': ' - ', '/': ' - ', ':': '-', '?': '.', '"': "''", '|': '-', '"': "''", 'a*G':'a G', '*': '#', u'\u2026': '...', ' \ ': ' - '}

rep = dict((re.escape(k), v) for k, v in rep.iteritems())
Expand Down

0 comments on commit 42d22fc

Please sign in to comment.