Skip to content

Commit

Permalink
Add space in torrentz regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed May 14, 2016
1 parent dae89db commit 5a3e29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sickbeard/providers/torrentz.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man

title_raw = item.title.text
# Add "-" after codec and add missing "."
title = re.sub(r'([xh][ .]?264|xvid)', r'\1-', title_raw).replace(' ','.') if title_raw else ''
title = re.sub(r'([xh][ .]?264|xvid)( )', r'\1-', title_raw).replace(' ','.') if title_raw else ''
t_hash = item.guid.text.rsplit('/', 1)[-1]

if not all([title, t_hash]):
Expand Down

0 comments on commit 5a3e29d

Please sign in to comment.