channels: fix raiplay e filmpertutti
This commit is contained in:
@@ -5,6 +5,6 @@
|
|||||||
"language": ["ita", "sub-ita"],
|
"language": ["ita", "sub-ita"],
|
||||||
"thumbnail": "filmpertutti.png",
|
"thumbnail": "filmpertutti.png",
|
||||||
"banner": "filmpertutti.png",
|
"banner": "filmpertutti.png",
|
||||||
"categories": ["tvshow","movie"],
|
"categories": ["anime", "tvshow","movie"],
|
||||||
"settings": []
|
"settings": []
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,19 +15,22 @@ def findhost(url):
|
|||||||
host = config.get_channel_url(findhost)
|
host = config.get_channel_url(findhost)
|
||||||
headers = [['Referer', host]]
|
headers = [['Referer', host]]
|
||||||
|
|
||||||
|
|
||||||
@support.menu
|
@support.menu
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
|
|
||||||
film = ['/category/film/feed/',
|
film = ['/category/film/feed/',
|
||||||
('Film al cinema', ['/category/ora-al-cinema/feed/', 'peliculas']),
|
('Film al cinema', ['/category/ora-al-cinema/feed/', 'peliculas']),
|
||||||
('Generi', ['/', 'genres']),
|
('Generi', ['/', 'genres']),
|
||||||
('Saghe', ['/', 'genres', 'saghe']),
|
('Saghe', ['/', 'genres', 'saghe']),
|
||||||
]
|
]
|
||||||
|
|
||||||
tvshow = ['/category/serie-tv/feed/',
|
tvshow = ['/category/serie-tv/feed/',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
anime = ['/category/anime/feed/',
|
||||||
|
('SUB-ITA',['/category/anime-sub-ita/feed/', 'peliculas']),
|
||||||
|
]
|
||||||
|
|
||||||
search = ''
|
search = ''
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
@@ -70,11 +73,17 @@ def episodios(item):
|
|||||||
for ep in support.match(block, patron=[r'<li><a href=\"(?P<url>[^\"]+).*?img\" src=\"(?P<thumb>[^\"]+).*?title\">(?P<episode>[0-9]+)\.\s+(?P<title>.*?)</span>']).matches:
|
for ep in support.match(block, patron=[r'<li><a href=\"(?P<url>[^\"]+).*?img\" src=\"(?P<thumb>[^\"]+).*?title\">(?P<episode>[0-9]+)\.\s+(?P<title>.*?)</span>']).matches:
|
||||||
itemlist.append(item.clone(contentType = 'episode',
|
itemlist.append(item.clone(contentType = 'episode',
|
||||||
action='findvideos',
|
action='findvideos',
|
||||||
thumb = ep[1],
|
thumb=ep[1],
|
||||||
|
episode=ep[2],
|
||||||
|
season=it[1],
|
||||||
|
contentSeason=it[1],
|
||||||
|
contentEpisodeNumber=ep[2],
|
||||||
title = support.format_longtitle(support.cleantitle(ep[3]), season = it[1], episode = ep[2], lang= it[3]),
|
title = support.format_longtitle(support.cleantitle(ep[3]), season = it[1], episode = ep[2], lang= it[3]),
|
||||||
url = ep[0], data = '')
|
url = scrapertools.unescape(ep[0]), data = '')
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if config.get_setting('episode_info') and not support.stackCheck(['add_tvshow', 'get_newest']):
|
||||||
|
support.tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
|
||||||
support.check_trakt(itemlist)
|
support.check_trakt(itemlist)
|
||||||
support.videolibrary(itemlist, item)
|
support.videolibrary(itemlist, item)
|
||||||
if (config.get_setting('downloadenabled')):
|
if (config.get_setting('downloadenabled')):
|
||||||
@@ -85,9 +94,9 @@ def episodios(item):
|
|||||||
@support.scrape
|
@support.scrape
|
||||||
def genres(item):
|
def genres(item):
|
||||||
action = 'peliculas'
|
action = 'peliculas'
|
||||||
item.args = 'genres'
|
|
||||||
blacklist = ['Tutti i film',]
|
blacklist = ['Tutti i film',]
|
||||||
wantSaga = True if item.args == 'saghe' else False
|
wantSaga = True if item.args == 'saghe' else False
|
||||||
|
item.args = 'genres'
|
||||||
|
|
||||||
patronBlock = r'<nav class="elementor-nav-menu--main (?P<block>.*?)</nav>'
|
patronBlock = r'<nav class="elementor-nav-menu--main (?P<block>.*?)</nav>'
|
||||||
patronMenu = r'<li class="menu-item.*?<a href="(?P<url>https:\/\/.*?)".*?>(?P<title>.*?)</a></li>'
|
patronMenu = r'<li class="menu-item.*?<a href="(?P<url>https:\/\/.*?)".*?>(?P<title>.*?)</a></li>'
|
||||||
|
|||||||
@@ -280,6 +280,10 @@ def addinfo(items, item):
|
|||||||
item.forcethumb = True
|
item.forcethumb = True
|
||||||
episode = 0
|
episode = 0
|
||||||
season = 0
|
season = 0
|
||||||
|
|
||||||
|
if key.get('type','') == 'RaiPlay Link Item':
|
||||||
|
return ''
|
||||||
|
|
||||||
if key.get('titolo', ''):
|
if key.get('titolo', ''):
|
||||||
key = requests.get(getUrl(key['path_id'])).json()['program_info']
|
key = requests.get(getUrl(key['path_id'])).json()['program_info']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user