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"
# torrent hash
content = None
hash = None
class AllShowsListUI:
"""
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'])
if 'aliasnames' in curShow:
seriesnames.extend(curShow['aliasnames'].split('|'))
for name in seriesnames:
if searchterm.lower() in name.lower():
if 'firstaired' not in curShow:
@ -192,6 +194,7 @@ class AllShowsListUI:
return searchResults
class ShowListUI:
"""
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.release_group = None
self.version = -1
self.show = show
self.indexer = None
self.indexerid = -1