Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 379621 | Differences between
and this patch

Collapse All | Expand All

(-)pytvshows.orig (-1 / +2 lines)
Lines 346-352 Link Here
346
	if self.feedurl:
346
	if self.feedurl:
347
	    for episode in self.rss['entries']:
347
	    for episode in self.rss['entries']:
348
	        if self.show_type == 'seasonepisode':
348
	        if self.show_type == 'seasonepisode':
349
		    r = re.compile('S([0-9]+)E([0-9]+)')
349
		    #r = re.compile('S([0-9]+)E([0-9]+)')
350
		    r = re.compile(r'\bS?([0-9]{1,2})\s*(?:E|x)?\s*([0-9]{1,2})\b')
350
		    match = r.search( episode.title )
351
		    match = r.search( episode.title )
351
		    season_num = int(match.group(1))
352
		    season_num = int(match.group(1))
352
		    episode_num = int(match.group(2))
353
		    episode_num = int(match.group(2))

Return to bug 379621