plugins.ellobo: plugin removal

This commit is contained in:
Ian Cameron 2020-10-29 17:55:50 +00:00 committed by back-to
parent f25f2dd1ed
commit 0aaeb19b0d
4 changed files with 1 additions and 49 deletions

View File

@ -77,7 +77,6 @@ dommune dommune.com Yes --
drdk dr.dk Yes No Streams may be geo-restricted to Denmark.
earthcam earthcam.com Yes Yes Only works for the cams hosted on EarthCam.
egame egame.qq.com Yes No
ellobo ellobo106.com Yes -
eltrecetv eltrecetv.com.ar Yes Yes Streams may be geo-restricted to Argentina.
euronews euronews.com Yes No
facebook facebook.com Yes Yes

View File

@ -30,6 +30,7 @@ dmcloud
dmcloud_embed
douyutv
douyutv_blackbox
ellobo
eurocom
europaplus
expressen

View File

@ -1,29 +0,0 @@
import re
from streamlink import NoPluginError, PluginError
from streamlink.plugin import Plugin
class ElLobo(Plugin):
url_re = re.compile(r"https?://(?:www\.)?ellobo106\.com/")
iframe_re = re.compile(r'<iframe.*?src="([^"]+)".*?>.*?</iframe>', re.DOTALL)
@classmethod
def can_handle_url(cls, url):
return cls.url_re.match(url) is not None
@Plugin.broken()
def _get_streams(self):
res = self.session.http.get(self.url)
# Search for the iframe in the page
iframe_m = self.iframe_re.search(res.text)
ustream_url = iframe_m and iframe_m.group(1)
if ustream_url and "ott.streann.com" in ustream_url:
try:
return self.session.streams(ustream_url)
except NoPluginError:
raise PluginError("Could not play embedded stream: {0}".format(ustream_url))
__plugin__ = ElLobo

View File

@ -1,19 +0,0 @@
import unittest
from streamlink.plugins.ellobo import ElLobo
class TestPluginElLobo(unittest.TestCase):
def test_can_handle_url(self):
should_match = [
'http://www.ellobo106.com/index.php/vivo/solo-3audio',
]
for url in should_match:
self.assertTrue(ElLobo.can_handle_url(url))
def test_can_handle_url_negative(self):
should_not_match = [
'https://example.com/index.html',
]
for url in should_not_match:
self.assertFalse(ElLobo.can_handle_url(url))