mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-04 15:12:23 -05:00
Reenabled resultType.
Check the instance to see if contain: resultType
This commit is contained in:
parent
0ae2b03484
commit
bb59873536
@ -200,10 +200,18 @@ def pickBestResult(results, show, quality_list=None):
|
||||
if show and cur_result.show is not show:
|
||||
continue
|
||||
|
||||
if not cur_result.url.startswith('magnet'):
|
||||
cur_result.content = cur_result.provider.getURL(cur_result.url)
|
||||
if not cur_result.content:
|
||||
continue
|
||||
# filter out possible bad torrents from providers such as ezrss
|
||||
if isinstance(cur_result, sickbeard.classes.SearchResult):
|
||||
if cur_result.resultType == "torrent" and sickbeard.TORRENT_METHOD != "blackhole":
|
||||
if not cur_result.url.startswith('magnet'):
|
||||
cur_result.content = cur_result.provider.getURL(cur_result.url)
|
||||
if not cur_result.content:
|
||||
continue
|
||||
else:
|
||||
if not cur_result.url.startswith('magnet'):
|
||||
cur_result.content = cur_result.provider.getURL(cur_result.url)
|
||||
if not cur_result.content:
|
||||
continue
|
||||
|
||||
# build the black And white list
|
||||
if cur_result.show.is_anime:
|
||||
|
Loading…
Reference in New Issue
Block a user