diff --git a/channels/cinemalibero.py b/channels/cinemalibero.py
index 2ebb600e..06b07e86 100644
--- a/channels/cinemalibero.py
+++ b/channels/cinemalibero.py
@@ -97,25 +97,21 @@ def peliculas(item):
@support.scrape
def episodios(item):
data = item.data
- # support.dbg()
- # debugBlock = True
+
if item.args == 'anime':
logger.debug("Anime :", item)
- # blacklist = ['Clipwatching', 'Verystream', 'Easybytez', 'Flix555', 'Cloudvideo']
patron = r'[^>]+>(?PEpisodio\s(?P\d+))(?::)?(?:(?P[^<]+))?.*?(?:
\d+))?(?:
|
|strong>)(?P.*?)(?:)'
item.contentType = 'tvshow'
- elif item.args == 'wrestling':
-
- logger.debug("Wrestling :", item)
- # debugBlock = True
+ elif item.args == 'sport':
+ logger.debug("Sport :", item)
patron = r'(?:/>|
)\s*(?P
[^-]+)-(?P.+?)(?:
\s*(?P.*?)'
item.contentType = 'tvshow'
elif item.args == 'serie' or item.contentType == 'tvshow':
logger.debug("Serie :", item)
- # debugBlock = True
- patron = r'(?:/>|)\s*(?:(?P\d+(?:x|×|×)\d+|Puntata \d+)[;]?[ ]?(?P[^<–-]+))?(?P.*?)(?:
|)\s*(?:(?P\d+(?:x|×|×)\d+|Puntata \d+)(?:-(?P\d+))?[;]?[ ]?(?P[^<–-]+))?(?P.*?)(?:
iTA|ITA|Sub-ITA|Sub-iTA))?.*?(?P.+?)(?:strong>|([^<]+)').matches).lower()
- elif ck in ['serie tv', 'wrestling wwe', 'anime']:
+ if 'serie tv' in ck or 'anime' in ck:# in ['serie tv', 'wrestling wwe', 'anime']:
+ if 'anime' in ck:
+ item.args = 'anime'
+ elif 'sport' in ck:
+ item.args = 'sport'
+ else:
+ item.args = 'serie'
item.contentType = 'tvshow'
- item.args = ck.split()[0]
item.data = data
itemlist = episodios(item)
if not itemlist:
item.data = data
return findvideos(item)
+ else:
+ item.contentType = 'movie'
+ item.data = data
+ # item.action = 'findvideos'
+ return findvideos(item)
return itemlist