1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 02:52:20 -05:00

Fix for issue #1009 - added show and release_group attributes to properFinder module.

This commit is contained in:
echel0n 2014-12-02 11:37:52 -08:00
parent e6389e47b1
commit a946f8aca5
2 changed files with 4 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class SearchResult:
def __str__(self):
if self.provider == None:
if self.provider is None:
return "Invalid provider, unable to print self"
myString = self.provider.name + " @ " + self.url + "\n"

View File

@ -136,6 +136,7 @@ class ProperFinder():
curProper.indexer = parse_result.show.indexer
# populate our Proper instance
curProper.show = parse_result.show
curProper.season = parse_result.season_number if parse_result.season_number is not None else 1
curProper.episode = parse_result.episode_numbers[0]
curProper.release_group = parse_result.release_group
@ -252,9 +253,11 @@ class ProperFinder():
# make the result object
result = curProper.provider.getResult([epObj])
result.show = curProper.show
result.url = curProper.url
result.name = curProper.name
result.quality = curProper.quality
result.release_group = curProper.release_group
result.version = curProper.version
# snatch it