Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -7,7 +7,7 @@ name: Test Suite
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '00 17 * * *'
|
- cron: '30 17 * * *'
|
||||||
|
|
||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
@@ -40,12 +40,7 @@ jobs:
|
|||||||
export KODI_HOME=$GITHUB_WORKSPACE/tests/home
|
export KODI_HOME=$GITHUB_WORKSPACE/tests/home
|
||||||
python tests/test_generic.py
|
python tests/test_generic.py
|
||||||
|
|
||||||
- name: Pushe to website
|
- uses: actions/upload-artifact@v2
|
||||||
uses: cpina/github-action-push-to-another-repository@master
|
|
||||||
env:
|
|
||||||
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
|
|
||||||
with:
|
with:
|
||||||
source-directory: 'report'
|
name: report
|
||||||
destination-github-username: 'kodiondemand'
|
path: reports/report.html
|
||||||
destination-repository-name: 'kodiondemand.github.io'
|
|
||||||
user-email: test@test.test
|
|
||||||
|
|||||||
+3
-3
@@ -11,11 +11,11 @@
|
|||||||
"animeunity": "https://www.animeunity.it",
|
"animeunity": "https://www.animeunity.it",
|
||||||
"animeworld": "https://www.animeworld.tv",
|
"animeworld": "https://www.animeworld.tv",
|
||||||
"casacinema": "https://www.casacinema.rest",
|
"casacinema": "https://www.casacinema.rest",
|
||||||
"cb01anime": "https://www.cineblog01.red/",
|
"cb01anime": "https://www.cineblog01.red",
|
||||||
"cinemalibero": "https://cinemalibero.plus",
|
"cinemalibero": "https://cinemalibero.plus",
|
||||||
"cinetecadibologna": "http://cinestore.cinetecadibologna.it",
|
"cinetecadibologna": "http://cinestore.cinetecadibologna.it",
|
||||||
"dreamsub": "https://dreamsub.stream",
|
"dreamsub": "https://dreamsub.stream",
|
||||||
"dsda": "https://www.dsda.press/",
|
"dsda": "https://www.dsda.press",
|
||||||
"fastsubita": "https://fastsubita.online",
|
"fastsubita": "https://fastsubita.online",
|
||||||
"filmgratis": "https://www.filmaltadefinizione.tv",
|
"filmgratis": "https://www.filmaltadefinizione.tv",
|
||||||
"filmigratis": "https://filmigratis.org",
|
"filmigratis": "https://filmigratis.org",
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
"guardaserie_stream": "https://guardaserie.store",
|
"guardaserie_stream": "https://guardaserie.store",
|
||||||
"guardaserieclick": "https://www.guardaserie.style",
|
"guardaserieclick": "https://www.guardaserie.style",
|
||||||
"hd4me": "https://hd4me.net",
|
"hd4me": "https://hd4me.net",
|
||||||
"netfreex": "https://www.netfreex.stream/",
|
"netfreex": "https://www.netfreex.stream",
|
||||||
"ilgeniodellostreaming": "https://ilgeniodellostreaming.tw",
|
"ilgeniodellostreaming": "https://ilgeniodellostreaming.tw",
|
||||||
"italiaserie": "https://italiaserie.org",
|
"italiaserie": "https://italiaserie.org",
|
||||||
"mondoserietv": "https://mondoserietv.com",
|
"mondoserietv": "https://mondoserietv.com",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
"active": true,
|
"active": true,
|
||||||
"thumbnail": "film4k.png",
|
"thumbnail": "film4k.png",
|
||||||
"banner": "film4k.png",
|
"banner": "film4k.png",
|
||||||
"categories": ["tvshow", "movie"],
|
"categories": ["tvshow", "movie", "anime"],
|
||||||
"not_active": ["include_in_newest_peliculas", "include_in_newest_anime", "include_in_newest_series"],
|
"not_active": ["include_in_newest_peliculas", "include_in_newest_anime", "include_in_newest_series"],
|
||||||
"settings": []
|
"settings": []
|
||||||
}
|
}
|
||||||
|
|||||||
+16
-15
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Canale per netfreex
|
# Canale per Filn4k
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
from core import support
|
from core import support
|
||||||
@@ -8,7 +8,7 @@ from platformcode import logger, config
|
|||||||
|
|
||||||
|
|
||||||
def findhost():
|
def findhost():
|
||||||
return support.httptools.downloadpage('https://film4k-nuovo.link/').url
|
return support.httptools.downloadpage('https://film4k-nuovo.link').url
|
||||||
|
|
||||||
host = config.get_channel_url(findhost)
|
host = config.get_channel_url(findhost)
|
||||||
|
|
||||||
@@ -16,16 +16,15 @@ host = config.get_channel_url(findhost)
|
|||||||
@support.menu
|
@support.menu
|
||||||
def mainlist(item):
|
def mainlist(item):
|
||||||
|
|
||||||
film = ['/movies',
|
film = ['movies',
|
||||||
('Qualità', ['', 'menu', 'quality']),
|
('Qualità', ['', 'menu', 'quality']),
|
||||||
('Generi', ['', 'menu', 'genres']),
|
('Generi', ['movies', 'menu', 'genres']),
|
||||||
('Più popolari', ['trending/?get=movies', 'peliculas']),
|
('Anno', ['movies', 'menu', 'releases']),
|
||||||
('Più votati', ['ratings/?get=movies', 'peliculas'])
|
('Più popolari', ['trending/?get=movies', 'peliculas']),
|
||||||
]
|
('Più votati', ['ratings/?get=movies', 'peliculas'])]
|
||||||
tvshow = ['/tvshows',
|
tvshow = ['/tvshows',
|
||||||
('Più popolari', ['trending/?get=tv', 'peliculas']),
|
('Più popolari', ['trending/?get=tv', 'peliculas']),
|
||||||
('Più votati', ['ratings/?get=tv', 'peliculas'])
|
('Più votati', ['ratings/?get=tv', 'peliculas'])]
|
||||||
]
|
|
||||||
return locals()
|
return locals()
|
||||||
|
|
||||||
|
|
||||||
@@ -41,6 +40,7 @@ def search(item, text):
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def peliculas(item):
|
def peliculas(item):
|
||||||
if 'anime' in item.url:
|
if 'anime' in item.url:
|
||||||
return support.dooplay_peliculas(item, True)
|
return support.dooplay_peliculas(item, True)
|
||||||
@@ -49,14 +49,15 @@ def peliculas(item):
|
|||||||
|
|
||||||
|
|
||||||
def episodios(item):
|
def episodios(item):
|
||||||
return support.dooplay_get_episodes(item)
|
itemlist = support.dooplay_get_episodes(item)
|
||||||
|
return itemlist
|
||||||
|
|
||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
itemlist = []
|
itemlist = []
|
||||||
if item.contentType == 'episode':
|
if item.contentType == 'episode':
|
||||||
linkHead = support.httptools.downloadpage(item.url, only_headers=True).headers['link']
|
linkHead = support.httptools.downloadpage(item.url, only_headers=True).headers['link']
|
||||||
epId = support.scrapertools.find_single_match(linkHead, '\?p=([0-9]+)>')
|
epId = support.scrapertools.find_single_match(linkHead, r'\?p=([0-9]+)>')
|
||||||
for link in support.dooplay_get_links(item, host, paramList=[['tv', epId, 1, 'title', 'server']]):
|
for link in support.dooplay_get_links(item, host, paramList=[['tv', epId, 1, 'title', 'server']]):
|
||||||
itemlist.append(
|
itemlist.append(
|
||||||
item.clone(action="play", url=link['url']))
|
item.clone(action="play", url=link['url']))
|
||||||
@@ -72,10 +73,10 @@ def findvideos(item):
|
|||||||
@support.scrape
|
@support.scrape
|
||||||
def menu(item):
|
def menu(item):
|
||||||
action = 'peliculas'
|
action = 'peliculas'
|
||||||
if item.extra == 'genres':
|
if item.args in ['genres','releases']:
|
||||||
data = support.match(item, patron=r'<a href="#">Genere<(.*?)</ul').match
|
patronBlock = r'<nav class="' + item.args + r'">(?P<block>.*?)</nav'
|
||||||
patronMenu= r'<a href="(?P<url>[^"]+)"[^>]*>(?P<title>[^<]+)<'
|
patronMenu= r'<a href="(?P<url>[^"]+)"[^>]*>(?P<title>[^<]+)<'
|
||||||
else:
|
else:
|
||||||
patronBlock = r'class="main-header">(?P<block>.*?)headitems'
|
patronBlock = r'class="main-header">(?P<block>.*?)headitems'
|
||||||
patronMenu = r'(?P<url>' + host + 'quality/[^/]+/\?post_type=movies)">(?P<title>[^<]+)'
|
patronMenu = r'(?P<url>' + host + r'quality/[^/]+/\?post_type=movies)">(?P<title>[^<]+)'
|
||||||
return locals()
|
return locals()
|
||||||
|
|||||||
@@ -54,12 +54,14 @@ def episodios(item):
|
|||||||
|
|
||||||
|
|
||||||
def findvideos(item):
|
def findvideos(item):
|
||||||
|
from core import jsontools
|
||||||
itemlist = []
|
itemlist = []
|
||||||
for link in support.dooplay_get_links(item, host):
|
matches = support.match(item, patron=r'<li id="player-option-[0-9]".*?data-type="([^"]+)" data-post="([^"]+)" data-nume="([^"]+)".*?<span class="title".*?>([^<>]+)</span>(?:<span class="server">([^<>]+))?').matches
|
||||||
if link['title'] != 'Guarda il trailer':
|
for Type, Post, Nume, Quality, Server in matches:
|
||||||
logger.info(link['title'])
|
dataAdmin = support.match(host + '/wp-json/dooplayer/v1/post/%s?type=%s&source=%s' %(Post, Type, Nume)).data
|
||||||
itemlist.append(
|
js = jsontools.load(dataAdmin)
|
||||||
item.clone(action="play", url=link['url'], quality=link['title']))
|
link = js['embed_url'] if 'embed_url' in js else ''
|
||||||
|
itemlist.append( item.clone(server=Server, quality=Quality, url=link, action='play'))
|
||||||
return support.server(item, itemlist=itemlist)
|
return support.server(item, itemlist=itemlist)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user