Fixed TorrentSearchResult instance has no attribute 'content' errpr

This commit is contained in:
echel0n 2014-08-28 22:22:55 -07:00
parent bcffc09589
commit 18efdb2370

View file

@ -148,8 +148,10 @@ class TorrentSearchResult(SearchResult):
resultType = "torrent" resultType = "torrent"
# torrent hash # torrent hash
content = None
hash = None hash = None
class AllShowsListUI: class AllShowsListUI:
""" """
This class is for indexer api. Instead of prompting with a UI to pick the This class is for indexer api. Instead of prompting with a UI to pick the
@ -178,7 +180,7 @@ class AllShowsListUI:
seriesnames.append(curShow['seriesname']) seriesnames.append(curShow['seriesname'])
if 'aliasnames' in curShow: if 'aliasnames' in curShow:
seriesnames.extend(curShow['aliasnames'].split('|')) seriesnames.extend(curShow['aliasnames'].split('|'))
for name in seriesnames: for name in seriesnames:
if searchterm.lower() in name.lower(): if searchterm.lower() in name.lower():
if 'firstaired' not in curShow: if 'firstaired' not in curShow:
@ -192,6 +194,7 @@ class AllShowsListUI:
return searchResults return searchResults
class ShowListUI: class ShowListUI:
""" """
This class is for tvdb-api. Instead of prompting with a UI to pick the This class is for tvdb-api. Instead of prompting with a UI to pick the
@ -225,7 +228,7 @@ class Proper:
self.quality = Quality.UNKNOWN self.quality = Quality.UNKNOWN
self.release_group = None self.release_group = None
self.version = -1 self.version = -1
self.show = show self.show = show
self.indexer = None self.indexer = None
self.indexerid = -1 self.indexerid = -1