fix newpct1
This commit is contained in:
@@ -98,10 +98,10 @@ def listado(item):
|
|||||||
fichas = data
|
fichas = data
|
||||||
page_extra = item.extra
|
page_extra = item.extra
|
||||||
|
|
||||||
patron = '<li><a href="([^"]+).*?' # url
|
patron = '<a href="([^"]+).*?' # la url
|
||||||
patron += 'title="([^"]+).*?' # titulo
|
patron += 'title="([^"]+).*?' # el titulo
|
||||||
patron += '<img src="([^"]+)"[^>]+>.*?' # thumbnail
|
patron += '<img src="([^"]+)"[^>]+>.*?' # el thumbnail
|
||||||
patron += '<span>([^<]*)</span>' # calidad
|
patron += '<span>([^<].*?)<' # la calidad
|
||||||
|
|
||||||
matches = re.compile(patron, re.DOTALL).findall(fichas)
|
matches = re.compile(patron, re.DOTALL).findall(fichas)
|
||||||
logger.debug('item.next_page: %s'%item.next_page)
|
logger.debug('item.next_page: %s'%item.next_page)
|
||||||
@@ -167,14 +167,12 @@ def listado(item):
|
|||||||
|
|
||||||
logger.debug('context: %s' % context)
|
logger.debug('context: %s' % context)
|
||||||
if not 'array' in title:
|
if not 'array' in title:
|
||||||
new_item = Item(channel=item.channel, action=action, title=title, url=url, thumbnail=thumbnail,
|
itemlist.append(Item(channel=item.channel, action=action, title=title, url=url, thumbnail=thumbnail,
|
||||||
extra = extra,
|
extra = extra,
|
||||||
show = context_title, contentTitle=context_title, contentType=context,
|
show = context_title, contentTitle=context_title, contentType=context,
|
||||||
context=["buscar_trailer"], infoLabels= {'year':year})
|
context=["buscar_trailer"], infoLabels= {'year':year}))
|
||||||
if year:
|
|
||||||
tmdb.set_infoLabels_item(new_item, seekTmdb = True)
|
|
||||||
itemlist.append(new_item)
|
|
||||||
|
|
||||||
|
tmdb.set_infoLabels(itemlist, True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user