diff --git a/core/support.py b/core/support.py index 6b4dde04..dfdeddc0 100644 --- a/core/support.py +++ b/core/support.py @@ -410,7 +410,7 @@ def scrape(func): if addVideolibrary and (item.infoLabels["title"] or item.fulltitle): # item.fulltitle = item.infoLabels["title"] videolibrary(itemlist, item, function=function) - if config.get_setting('downloadenabled') and (function == 'episodios' or function == 'finvideos'): + if config.get_setting('downloadenabled') and (function == 'episodios' or function == 'findvideos'): download(itemlist, item, function=function) if 'patronMenu' in args: @@ -876,7 +876,7 @@ def pagination(itemlist, item, page, perpage, function_level=1): thumbnail=thumb())) return itemlist -def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=True, download=True): +def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=True):#, down_load=True): if not data: data = httptools.downloadpage(item.url, headers=headers, ignore_response_code=True).data @@ -896,7 +896,7 @@ def server(item, data='', itemlist=[], headers='', AutoPlay=True, CheckLinks=Tru return controls(itemlist, item, AutoPlay, CheckLinks) -def controls(itemlist, item, AutoPlay=True, CheckLinks=True): +def controls(itemlist, item, AutoPlay=True, CheckLinks=True, down_load=True): from core import jsontools from platformcode.config import get_setting @@ -927,7 +927,7 @@ def controls(itemlist, item, AutoPlay=True, CheckLinks=True): autoplay.start(itemlist, item) if item.contentChannel != 'videolibrary': videolibrary(itemlist, item, function_level=3) - if get_setting('downloadenabled') and download == True: download(itemlist, item, function_level=3) + if get_setting('downloadenabled') and down_load == True: download(itemlist, item, function_level=3) return itemlist def filterLang(item, itemlist):