mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-01 18:35:02 +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"
|
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
|
||||||
|
|
Loading…
Reference in a new issue