[^>]+>[^>]+>[^>]+>\s*]+>(?:(?P[^<]+))?<'
return locals()
diff --git a/channels/animeunity.py b/channels/animeunity.py
index 064d834d..a434acea 100644
--- a/channels/animeunity.py
+++ b/channels/animeunity.py
@@ -187,7 +187,7 @@ def peliculas(item):
itemlist.append(itm)
- autorenumber.renumber(itemlist)
+ autorenumber.start(itemlist)
if len(itemlist) >= 30:
itemlist.append(item.clone(title=support.typo(support.config.get_localized_string(30992), 'color kod bold'), thumbnail=support.thumb(), page=page + 1))
@@ -212,7 +212,7 @@ def episodios(item):
contentType='episode',
url=it['link']))
- autorenumber.renumber(itemlist, item, 'bold')
+ autorenumber.start(itemlist, item)
support.videolibrary(itemlist, item)
support.download(itemlist, item)
return itemlist
diff --git a/channels/cb01anime.py b/channels/cb01anime.py
index 10e0dc1a..d870e34e 100644
--- a/channels/cb01anime.py
+++ b/channels/cb01anime.py
@@ -90,6 +90,7 @@ def episodios(item):
s = 1
e = 0
sp = 0
+
for match in item.url:
if 'stagione' in match.lower():
find_season = support.match(match, patron=r'Stagione\s*(\d+)').match
@@ -111,17 +112,17 @@ def episodios(item):
s += 1
e = ep - 1
title = str(season) + 'x' + str(ep-e).zfill(2) + ' - ' + title
- data += title + '|' + match + '\n'
+ data += title + '|' + match + '\|'
else:
title += ' #movie'
- data += title + '|' + match + '\n'
+ data += title + '|' + match + '\|'
def itemHook(item):
if '#movie' in item.title:
item.contentType='movie'
item.title = item.title.replace(' #movie','')
return item
- patron = r'(?P[^\|]+)\|(?P[^\n]+)\n'
+ patron = r'(?P[^\|]+)\|(?P[^\|]+)\|'
action = 'findvideos'
return locals()
diff --git a/core/support.py b/core/support.py
index 99c83171..cebac317 100755
--- a/core/support.py
+++ b/core/support.py
@@ -353,7 +353,8 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
AC = name
break
else: AC = action
- if (scraped["title"] not in blacklist) and (search.lower() in longtitle.lower()):
+
+ if (not scraped['title'] or scraped["title"] not in blacklist) and (search.lower() in longtitle.lower()):
contentType = 'episode' if function == 'episodios' else CT if CT else item.contentType
it = Item(
channel=item.channel,
@@ -391,7 +392,7 @@ def scrapeBlock(item, args, block, patron, headers, action, pagination, debug, t
def html_uniform(data):
- """
+ """
replace all ' with " and eliminate newline, so we don't need to worry about
"""
return re.sub("='([^']+)'", '="\\1"', data.replace('\n', ' ').replace('\t', ' ').replace(' ', ' '))