alcuni fix per kodi 19
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
{
|
||||
"active": true,
|
||||
"find_videos": {
|
||||
"ignore_urls": [],
|
||||
"patterns": [
|
||||
{
|
||||
"pattern": "https://hdplayer\\.casa//public/dist/index\\.html\\?id=([a-z0-9]+)",
|
||||
"url": "https://hdplayer.casa/public/dist/index.html?id=\\1"
|
||||
}
|
||||
]
|
||||
},
|
||||
"free": true,
|
||||
"id": "hdplayer",
|
||||
"name": "HDPlayer",
|
||||
"settings": [
|
||||
{
|
||||
"default": false,
|
||||
"enabled": true,
|
||||
"id": "black_list",
|
||||
"label": "@60654",
|
||||
"type": "bool",
|
||||
"visible": true
|
||||
},
|
||||
{
|
||||
"default": 0,
|
||||
"enabled": true,
|
||||
"id": "favorites_servers_list",
|
||||
"label": "@60655",
|
||||
"lvalues": [
|
||||
"No",
|
||||
"1",
|
||||
"2",
|
||||
"3",
|
||||
"4",
|
||||
"5"
|
||||
],
|
||||
"type": "list",
|
||||
"visible": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
from core import httptools
|
||||
from core import scrapertools
|
||||
from platformcode import config
|
||||
|
||||
|
||||
def test_video_exists(page_url):
|
||||
stream_url = get_stream_url(page_url)
|
||||
data = httptools.downloadpage(stream_url).data
|
||||
if "Error Playlist" in data:
|
||||
return False, config.get_localized_string(70449) % "HDPlayer"
|
||||
return True, ""
|
||||
|
||||
def get_stream_url(url):
|
||||
id = scrapertools.find_single_match(url, 'id=([a-z0-9]+)')
|
||||
return 'https://hdplayer.casa/hls/' + id + '/' + id + '.playlist.m3u8'
|
||||
|
||||
def get_video_url(page_url, premium=False, user="", password="", video_password=""):
|
||||
return [('.m3u8', get_stream_url(page_url))]
|
||||
Reference in New Issue
Block a user