fix resolverdns
This commit is contained in:
+2
-6
@@ -189,9 +189,6 @@ def channel_search(item):
|
||||
|
||||
channel_list, channel_titles = get_channels(item)
|
||||
|
||||
import requests
|
||||
session = requests.Session()
|
||||
|
||||
searching += channel_list
|
||||
searching_titles += channel_titles
|
||||
cnt = 0
|
||||
@@ -201,7 +198,7 @@ def channel_search(item):
|
||||
config.set_setting('tmdb_active', False)
|
||||
|
||||
with futures.ThreadPoolExecutor(max_workers=set_workers()) as executor:
|
||||
c_results = [executor.submit(get_channel_results, ch, item, session) for ch in channel_list]
|
||||
c_results = [executor.submit(get_channel_results, ch, item) for ch in channel_list]
|
||||
|
||||
for res in futures.as_completed(c_results):
|
||||
cnt += 1
|
||||
@@ -294,7 +291,7 @@ def channel_search(item):
|
||||
return valid + results
|
||||
|
||||
|
||||
def get_channel_results(ch, item, session):
|
||||
def get_channel_results(ch, item):
|
||||
max_results = 10
|
||||
results = list()
|
||||
|
||||
@@ -306,7 +303,6 @@ def get_channel_results(ch, item, session):
|
||||
|
||||
if search_action:
|
||||
for search_ in search_action:
|
||||
search_.session = session
|
||||
try:
|
||||
results.extend(module.search(search_, item.text))
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user