ok, it's not my day
This commit is contained in:
@@ -351,7 +351,7 @@ def typo(string, typography=''):
|
|||||||
|
|
||||||
|
|
||||||
def match(item, patron='', patron_block='', headers=''):
|
def match(item, patron='', patron_block='', headers=''):
|
||||||
|
|
||||||
data = httptools.downloadpage(item.url, headers=headers).data.replace("'", '"')
|
data = httptools.downloadpage(item.url, headers=headers).data.replace("'", '"')
|
||||||
data = re.sub('\n|\t', '', data)
|
data = re.sub('\n|\t', '', data)
|
||||||
log('DATA= ', data)
|
log('DATA= ', data)
|
||||||
@@ -387,7 +387,7 @@ def videolibrary(itemlist, item, typography=''):
|
|||||||
contentTitle=item.fulltitle))
|
contentTitle=item.fulltitle))
|
||||||
|
|
||||||
|
|
||||||
def nextPage(itemlist, item, data, patron, function_level=0):
|
def nextPage(itemlist, item, data, patron, function_level=1):
|
||||||
# Function_level is useful if the function is called by another function.
|
# Function_level is useful if the function is called by another function.
|
||||||
# If the call is direct, leave it blank
|
# If the call is direct, leave it blank
|
||||||
|
|
||||||
@@ -397,7 +397,7 @@ def nextPage(itemlist, item, data, patron, function_level=0):
|
|||||||
if next_page != "":
|
if next_page != "":
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
Item(channel=item.channel,
|
Item(channel=item.channel,
|
||||||
action=inspect.stack()[function_level + 1][3],
|
action=inspect.stack()[function_level][3],
|
||||||
contentType=item.contentType,
|
contentType=item.contentType,
|
||||||
title=typo(config.get_localized_string(30992), 'color blue bold'),
|
title=typo(config.get_localized_string(30992), 'color blue bold'),
|
||||||
url=next_page,
|
url=next_page,
|
||||||
|
|||||||
Reference in New Issue
Block a user