From 24c5489d2db472bf64a992debefa9f59af53d6c3 Mon Sep 17 00:00:00 2001
From: Alhaziel01
Date: Wed, 7 Sep 2022 19:22:47 +0200
Subject: [PATCH] Fix Casacinema
---
channels.json | 2 +-
channels/casacinema.py | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/channels.json b/channels.json
index 0cbe242c..7c8f8c7d 100644
--- a/channels.json
+++ b/channels.json
@@ -8,7 +8,7 @@
"animeuniverse": "https://www.animeuniverse.it",
"animeworld": "https://www.animeworld.tv",
"aniplay": "https://aniplay.it",
- "casacinema": "https://www.casacinema.page",
+ "casacinema": "https://www.casacinema.lol",
"cb01anime": "https://www.cineblog01.red",
"cinemalibero": "https://cinemalibero.cafe",
"cinetecadibologna": "http://cinestore.cinetecadibologna.it",
diff --git a/channels/casacinema.py b/channels/casacinema.py
index 36858fbf..1c3b06b3 100644
--- a/channels/casacinema.py
+++ b/channels/casacinema.py
@@ -134,8 +134,11 @@ def episodios(item):
action = 'findvideos'
item.contentType = 'tvshow'
blacklist = ['']
- patron = r'(?P\d+(?:×|×)?\d+\-\d+|\d+(?:×|×)\d+)[;]?(?:(?P[^<]+)<(?P.*?)|(\2[ ])(?:<(\3.*?)))(?:
|
)'
- patronBlock = r'(?P(?:.+?Stagione*.+?(?P[Ii][Tt][Aa]|[Ss][Uu][Bb][\-]?[iI][tT][aA]))?(?:.+?|)(/?:)?.*?)'
+ # debug = True
+ patron = r'"season-no">(?P\d+)x(?P\d+)(?:[^>]+>){5}\s*(?P[^<]+)(?P.*?)'
+ # patron = r'(?P\d+(?:×|×)?\d+\-\d+|\d+(?:×|×)\d+)[;]?(?:(?P[^<]+)<(?P.*?)|(\2[ ])(?:<(\3.*?)))(?:
|)'
+ patronBlock = r'(?:.+?Stagione*.+?(?P[Ii][Tt][Aa]|[Ss][Uu][Bb][\-]?[iI][tT][aA]))?.*?.*?class="content(?P.*?)(?:"accordion-item|