altadefinizione: added saga section (#467)
This commit is contained in:
@@ -7,7 +7,6 @@
|
|||||||
from core import httptools, support
|
from core import httptools, support
|
||||||
from platformcode import config, logger
|
from platformcode import config, logger
|
||||||
|
|
||||||
|
|
||||||
def findhost(url):
|
def findhost(url):
|
||||||
host = support.match(url, patron=r'<h2[^>]+><a href="([^"]+)').match.rstrip('/')
|
host = support.match(url, patron=r'<h2[^>]+><a href="([^"]+)').match.rstrip('/')
|
||||||
permUrl = httptools.downloadpage(host, follow_redirects=False).headers
|
permUrl = httptools.downloadpage(host, follow_redirects=False).headers
|
||||||
@@ -22,6 +21,7 @@ def mainlist(item):
|
|||||||
film = ['/category/film/',
|
film = ['/category/film/',
|
||||||
('Al Cinema', ['/category/ora-al-cinema/', 'peliculas']),
|
('Al Cinema', ['/category/ora-al-cinema/', 'peliculas']),
|
||||||
('Generi', ['', 'genres']),
|
('Generi', ['', 'genres']),
|
||||||
|
('Saghe', ['/saghe/', 'saghe']),
|
||||||
# ('Sub-ITA', ['/sub-ita/', 'peliculas'])
|
# ('Sub-ITA', ['/sub-ita/', 'peliculas'])
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -32,6 +32,17 @@ def mainlist(item):
|
|||||||
|
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
def saghe(item):
|
||||||
|
action = 'peliculas'
|
||||||
|
itemlist = []
|
||||||
|
|
||||||
|
for it in support.match(item, patron=['buttonn button2"><img.*?src="(?P<thumb>.*?)".*?alt="(?P<title>.*?)".*?<a href="(?P<url>.*?)"']).matches:
|
||||||
|
itemlist.append(item.clone(action='peliculas', thumbnail = it[0].replace(' ','%20'), title = it[1], url= host + it[2]))
|
||||||
|
|
||||||
|
for it in support.match(item, patron=['buttonn button2"><a href="(?P<url>.*?)"><img src="(?P<thumb>.*?)".*?>(?P<title>.*?)(>|<)']).matches:
|
||||||
|
itemlist.append(item.clone(action='peliculas', thumbnail = it[1].replace(' ','%20'), title = it[2], url = host + it[0]))
|
||||||
|
|
||||||
|
return itemlist
|
||||||
|
|
||||||
@support.scrape
|
@support.scrape
|
||||||
def genres(item):
|
def genres(item):
|
||||||
|
|||||||
Reference in New Issue
Block a user