Skip to content

Commit

Permalink
So easy, why wait?
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed May 13, 2016
1 parent e64481f commit e9b6cb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sickbeard/providers/torrentz.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man
if item.category and 'tv' not in item.category.get_text(strip=True):
continue

title = item.title.text.replace('x264 ', 'x264-').replace('h264 ', 'h264-').replace('h 264 ', 'h264-').replace('xvid ', 'xvid-').replace(' ', '.')
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 ''
t_hash = item.guid.text.rsplit('/', 1)[-1]

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

0 comments on commit e9b6cb8

Please sign in to comment.