Fix Streaming Community

This commit is contained in:
Alhaziel01
2021-10-05 13:08:52 +02:00
parent 3b40059cac
commit ae36c65714

View File

@@ -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 = []