remove webtv scripts/xml's; you'll find this stuff in plugin-repo now

Origin commit data
------------------
Commit: 0a12bfce08
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-04-19 (Thu, 19 Apr 2018)

Origin message was:
------------------
- remove webtv scripts/xml's; you'll find this stuff in plugin-repo now
This commit is contained in:
vanhofen
2018-04-19 21:33:30 +02:00
parent 882c835829
commit a445e15f9c
7 changed files with 1 additions and 1336 deletions

View File

@@ -1,9 +1,3 @@
installdir = $(WEBTVDIR)
install_DATA = \
filmon.lua \
filmon.xml \
hdporntv.lua \
hdporntv.xml \
yt_live.lua \
yt_live.xml
install_DATA =

View File

@@ -1,73 +0,0 @@
local n = neutrino(0, 0, SCREEN.X_RES, SCREEN.Y_RES);
n:checkVersion(1, 31);
json = require "json"
if #arg < 1 then return nil end
local _url = arg[1]
local ret = {}
local Curl = nil
function getdata(Url)
if Url == nil then return nil end
if Curl == nil then
Curl = curl.new()
end
local ret, data = Curl:download{ url=Url, A="Mozilla/5.0"}
if ret == CURL.OK then
return data
else
return nil
end
end
function getVideoData(url)
if url == nil then return 0 end
local data = getdata('http://www.filmon.com/tv/channel/info/' .. url)
if data == nil then return 0 end
local data = json:decode(data)
if data==nil then return 0 end
data = data['data']
if data==nil then return 0 end
local title=data['title']
if title==nil then name='nil' end
title=title .. ' - filmon'
data = data['streams']
if data==nil then return 0 end
local highurl=nil
local lowurl=nil
local quality=nil
local surl=nil
for i,stream in ipairs(data) do
quality=stream['quality']
surl=stream['url']
if (quality=='high')or(quality=='HD') then
if (stream['watch-timeout']>=3600)and(surl:find('mustbeasubscriber')==nil) then
highurl = surl
end
elseif (quality=='low')or(quality=='SD') then
lowurl = surl
end
end
local count=0
if highurl ~= nil then
--if lowurl ~= nil then highurl=lowurl:gsub('low.stream','high.stream') end
count = 1
ret[1]={ url = highurl, band = "1500000", name = title, res1 = "854", res2 = "480" }
end
if lowurl ~= nil then
count = count+1
ret[count]={ url = lowurl, band = "500000", name = title, res1 = "576", res2 = "322" }
end
return count
end
if (getVideoData(_url) > 0) then
return json:encode(ret)
end
return nil

File diff suppressed because it is too large Load Diff

View File

@@ -1,66 +0,0 @@
local n = neutrino(0, 0, SCREEN.X_RES, SCREEN.Y_RES);
M = misc.new(); M:checkVersion(1, 31)
json = require "json"
if #arg < 1 then return nil end
local _url = arg[1]
local ret = {}
local Curl = nil
function getdata(Url)
if Url == nil then return nil end
if Curl == nil then
Curl = curl.new()
end
local ret, data = Curl:download{ url=Url, ipv4=true, A="Mozilla/5.0 (Linux; Android 5.1.1; Nexus 4 Build/LMY48M)"}
if ret == CURL.OK then
return data
else
return nil
end
end
function getVideoData(url)
local data = getdata(url)
local count = 0
if data then
local title = data:match("<title>(.-)</title>")
local newname = url:match('tv/(.-)%.html')
local url_m3u8 = data:match('stream":%s+[\'"](.-%.m3u8)[\'"]')
if url_m3u8 then
entry = {}
entry['url'] = url_m3u8
entry['band'] = "1"
entry['res1'] = "1"
entry['res2'] = "1"
entry['name'] = "xx"
local infodata = getdata(url_m3u8)
if infodata then
local band,res1,res2 = infodata:match('BANDWIDTH=(%d+),RESOLUTION=(%d+)x(%d+)')
if band and res1 and res2 then
entry['band'] = band
entry['res1'] = res1
entry['res2'] = res2
end
end
if newname then
entry['name'] = newname
end
if title then
entry['name'] = title
end
count = 1
ret[count] = {}
ret[count] = entry
end
return count
end
return 0
end
if (getVideoData(_url) > 0) then
return json:encode(ret)
end
return ""

View File

@@ -1,7 +0,0 @@
<?xml version="1.0"?>
<webtvs name="[HD-Porn.TV]">
<webtv title="18+ XXX1" url="http://hd-porn.tv/index.php/xxx-1" epgid="" description="Erotik-Stream 1" genre="XXX" script="hdporntv.lua" />
<webtv title="18+ XXX2" url="http://hd-porn.tv/index.php/xxx-2" epgid="" description="Erotik-Stream 2" genre="XXX" script="hdporntv.lua" />
<webtv title="18+ XXX3" url="http://hd-porn.tv/index.php/xxx-3" epgid="" description="Erotik-Stream 3" genre="XXX" script="hdporntv.lua" />
<webtv title="18+ XXX4" url="http://hd-porn.tv/index.php/xxx4" epgid="" description="Erotik-Stream 4" genre="XXX" script="hdporntv.lua" />
</webtvs>

View File

@@ -1,61 +0,0 @@
json = require "json"
if #arg < 1 then return nil end
local _url = arg[1]
local ret = {}
local Curl = nil
function getdata(Url)
if Url == nil then return nil end
if Curl == nil then
Curl = curl.new()
end
local ret, data = Curl:download{ url=Url, A="Mozilla/5.0"}
if ret == CURL.OK then
return data
else
return nil
end
end
function getVideoData(url)
if url == nil then return 0 end
local data = getdata(url)
if data then
local m3u_url = data:match('hlsvp.:.(https:\\.-m3u8)')
local newname = data:match('<title>(.-)</title>')
if m3u_url == nil then return 0 end
m3u_url = m3u_url:gsub("\\", "")
local videodata = getdata(m3u_url)
local url = ""
local band = ""
local res1 = ""
local res2 = ""
local count = 0
for band, res1, res2, url in videodata:gmatch('#EXT.X.STREAM.INF.BANDWIDTH=(%d+).-RESOLUTION=(%d+)x(%d+).-(http.-)\n') do
if url ~= nil then
entry = {}
entry['url'] = url
entry['band'] = band
entry['res1'] = res1
entry['res2'] = res2
entry['name'] = ""
if newname then
entry['name'] = newname
end
count = count + 1
ret[count] = {}
ret[count] = entry
end
end
return count
end
return 0
end
if (getVideoData(_url) > 0) then
return json:encode(ret)
end
return ""

View File

@@ -1,15 +0,0 @@
<?xml version="1.0"?>
<webtvs name="[YouTube]">
<webtv title="TecTime TV" url="https://www.youtube.com/watch?v=dvblFe1W5Q8" description="TecTime TV" script="yt_live.lua" />
<webtv title="Qmusic" url="https://www.youtube.com/watch?v=q4KD1Jk_7K4" description="Qmusic" script="yt_live.lua" />
<webtv title="KBS World" url="https://www.youtube.com/watch?v=h-jJ9IP5XB8" description="KBS World" script="yt_live.lua" />
<webtv title="Newsmax TV" url="https://www.youtube.com/watch?v=6bqvoUMVmCs" description="Newsmax TV" script="yt_live.lua" />
<webtv title="FOX 5" url="https://www.youtube.com/watch?v=9lnegILrSEY" description="FOX 5" script="yt_live.lua" />
<webtv title="RT Deutsch" url="https://www.youtube.com/watch?v=MDYr1L-gQJg" description="RT Deutsch" script="yt_live.lua" />
<webtv title="Sky News HD" url="https://www.youtube.com/watch?v=y60wDzZt8yg" description="Sky News HD" script="yt_live.lua" />
<webtv title="France 24 HD" url="https://www.youtube.com/watch?v=gq11un3xqsA" description="France 24 HD" script="yt_live.lua" />
<webtv title="NASA ISS" url="https://www.youtube.com/watch?v=njCDZWTI-xg" description="NASA ISS" script="yt_live.lua" />
<webtv title="NASA Media" url="https://www.youtube.com/watch?v=OX9I1KyNa8M" description="NASA Media" script="yt_live.lua" />
<webtv title="NET TV" url="https://www.youtube.com/watch?v=mtG6bf7hsbw" description="NET TV" script="yt_live.lua" />
<webtv title="The Good Life 24/7 Live Radio " url="https://www.youtube.com/watch?v=eH7hBiY9xkg" description="The Good Life | 24/7 Live Radio " script="yt_live.lua" />
</webtvs>