mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 00:43:37 +00:00
Fixed TorrentSearchResult instance has no attribute 'content' errpr
This commit is contained in:
parent
bcffc09589
commit
18efdb2370
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue