mirror of https://github.com/streamlink/streamlink
plugins.ellobo: plugin removal
This commit is contained in:
parent
f25f2dd1ed
commit
0aaeb19b0d
|
@ -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
|
||||
|
|
|
@ -30,6 +30,7 @@ dmcloud
|
|||
dmcloud_embed
|
||||
douyutv
|
||||
douyutv_blackbox
|
||||
ellobo
|
||||
eurocom
|
||||
europaplus
|
||||
expressen
|
||||
|
|
|
@ -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
|
|
@ -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))
|
Loading…
Reference in New Issue