Fix AnimeForce e AnimeSaturn
This commit is contained in:
@@ -111,9 +111,9 @@ def episodios(item):
|
|||||||
data = item.data
|
data = item.data
|
||||||
|
|
||||||
if '<h6>Streaming</h6>' in data:
|
if '<h6>Streaming</h6>' in data:
|
||||||
patron = r'<td style[^>]+>\s*.*?(?:<span[^>]+)?<strong>(?P<title>[^<]+)<\/strong>.*?<td style[^>]+>\s*<a href="(?P<url>[^"]+)"[^>]+>'
|
patron = r'<td style[^>]+>\s*.*?(?:<span[^>]+)?<strong>(?P<title>[^<]+)<\/strong>.*?<td style[^>]+>\s*<a href="(?P<url>[^"]+)"[^>]+>(?P<episode>\d+)'
|
||||||
else:
|
else:
|
||||||
patron = r'<a\s*href="(?P<url>[^"]+)"\s*title="(?P<title>[^"]+)"\s*class="btn btn-dark mb-1">'
|
patron = r'<a\s*href="(?P<url>[^"]+)"\s*title="(?P<title>[^"]+)"\s*class="btn btn-dark mb-1">(?P<episode>\d+)'
|
||||||
def itemHook(item):
|
def itemHook(item):
|
||||||
support.info(item)
|
support.info(item)
|
||||||
if item.url.startswith('//'): item.url= 'https:' + item.url
|
if item.url.startswith('//'): item.url= 'https:' + item.url
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
from lib import js2py
|
from lib import js2py
|
||||||
from core import support
|
from core import support
|
||||||
from platformcode import config
|
from platformcode import config
|
||||||
|
from platformcode.logger import debug
|
||||||
|
|
||||||
host = support.config.get_channel_url()
|
host = support.config.get_channel_url()
|
||||||
__channel__ = 'animesaturn'
|
__channel__ = 'animesaturn'
|
||||||
@@ -170,7 +171,7 @@ def check(item):
|
|||||||
@support.scrape
|
@support.scrape
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
if item.contentType != 'movie': anime = True
|
if item.contentType != 'movie': anime = True
|
||||||
patron = r'episodi-link-button">\s*<a href="(?P<url>[^"]+)"[^>]+>\s*(?P<title>[^<]+)</a>'
|
patron = r'episodi-link-button">\s*<a href="(?P<url>[^"]+)"[^>]+>\s*(?P<title>[^\d<]+(?P<episode>\d+))\s*</a>'
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user