Fix Streaming Community
This commit is contained in:
@@ -104,12 +104,14 @@ def newest(category):
|
||||
def peliculas(item):
|
||||
# getHeaders()
|
||||
logger.debug()
|
||||
global host
|
||||
itemlist = []
|
||||
recordlist = []
|
||||
videoType = 'movie' if item.contentType == 'movie' else 'tv'
|
||||
|
||||
page = item.page if item.page else 0
|
||||
offset = page * 60
|
||||
try:
|
||||
if item.records:
|
||||
records = item.records
|
||||
elif type(item.args) == int:
|
||||
@@ -121,6 +123,9 @@ def peliculas(item):
|
||||
else:
|
||||
payload = json.dumps({'q': item.search})
|
||||
records = session.post(host + '/api/search', headers=headers, data=payload).json()['records']
|
||||
except:
|
||||
host = support.config.get_channel_url(findhost, forceFindhost=True)
|
||||
return peliculas(item)
|
||||
|
||||
if records and type(records[0]) == list:
|
||||
js = []
|
||||
|
||||
Reference in New Issue
Block a user