Skip to content

Commit

Permalink
Merge pull request #497 from pymedusa/tvcuk
Browse files Browse the repository at this point in the history
Fix season search in tvcuk
  • Loading branch information
labrys committed May 7, 2016
2 parents 172d979 + 392af5d commit dbd3c22
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sickbeard/providers/tvchaosuk.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# coding=utf-8
#

#
# This file is part of SickRage.
#
Expand Down Expand Up @@ -102,7 +100,7 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man
for search_string in search_strings[mode]:

if mode == 'Season':
search_string = re.sub(ur'(.*)Season', ur'\1Series', search_string)
search_string = re.sub(ur'(.*)S0?', ur'\1Series ', search_string)

if mode != 'RSS':
logger.log('Search string: {}'.format(search_string), logger.DEBUG)
Expand All @@ -128,7 +126,7 @@ def search(self, search_strings, age=0, ep_obj=None): # pylint: disable=too-man
if self.freeleech and not torrent.find('img', alt=re.compile('Free Torrent')):
continue

title = torrent.find(class_='tooltip-content').div.get_text(strip=True).replace('mp4', 'x264')
title = torrent.find(class_='tooltip-content').div.get_text(strip=True)
download_url = torrent.find(title='Click to Download this Torrent!').parent['href']
if not all([title, download_url]):
continue
Expand Down

0 comments on commit dbd3c22

Please sign in to comment.