1
mirror of https://github.com/streamlink/streamlink synced 2024-11-01 01:19:33 +01:00

plugins.oldlivestream: remove plugin, service not available anymore (#2081)

* plugins.oldlivestream: remove plugin, service not available anymore

The old subdomain redirects to the new domain,
which is already a Streamlink plugin.

* plugins.oldlivestream: Add filename for empty files on Windows.
This commit is contained in:
back-to 2018-09-27 20:24:09 +02:00 committed by Forrest
parent e2a4d1e21f
commit ff25b8e014
4 changed files with 1 additions and 47 deletions

View File

@ -121,8 +121,6 @@ npo - npo.nl Yes Yes Streams may be geo-rest
nrk - tv.nrk.no Yes Yes Streams may be geo-restricted to Norway.
- radio.nrk.no
ok_live ok.ru Yes --
oldlivestream - original.li.. [3]_ Yes No Only mobile streams are supported.
- cdn.livestream.com
olympicchannel olympicchannel.com Yes Yes Only non-premium content is available.
onetv - 1tv.ru Yes Yes Streams may be geo-restricted to Russia. VOD only for 1tv.ru
- ctc.ru
@ -274,7 +272,6 @@ zhanqi zhanqi.tv Yes No
.. [2] streamingvideoprovider.co.uk
.. [3] original.livestream.com
.. [5] mediathek.daserste.de
.. [6] players.brightcove.net
.. [7] player.theplatform.com

View File

@ -35,7 +35,7 @@ old_files=(
"streamupcom" "tv8cat" "ufctv" "veetle" "viagame" "viasat_embed" "wattv"
"aftonbladet" "aliez" "antenna" "arconai" "bongacams" "brittv" "cam4"
"camsoda" "chaturbate" "expressen" "mips" "seetv" "speedrunslive" "streamboat"
"vgtv" "weeb"
"vgtv" "weeb" "oldlivestream"
)
for i in "${old_files[@]}"
do

View File

@ -1,25 +0,0 @@
import re
from streamlink.plugin import Plugin
from streamlink.stream import HLSStream
PLAYLIST_URL = "http://x{0}x.api.channel.livestream.com/3.0/playlist.m3u8"
_url_re = re.compile(r"http(s)?://(cdn|original)\.livestream\.com/(embed/)?(?P<channel>[^&?/]+)")
class OldLivestream(Plugin):
@classmethod
def can_handle_url(self, url):
return _url_re.match(url)
def _get_streams(self):
match = _url_re.match(self.url)
channel = match.group("channel")
channel = channel.replace("_", "-")
playlist_url = PLAYLIST_URL.format(channel)
return HLSStream.parse_variant_playlist(self.session, playlist_url, check_streams=True)
__plugin__ = OldLivestream

View File

@ -1,18 +0,0 @@
import unittest
from streamlink.plugins.oldlivestream import OldLivestream
class TestPluginOldLivestream(unittest.TestCase):
def test_can_handle_url(self):
# should match
self.assertTrue(OldLivestream.can_handle_url("https://cdn.livestream.com/embed/channel"))
self.assertTrue(OldLivestream.can_handle_url("https://original.livestream.com/embed/channel"))
self.assertTrue(OldLivestream.can_handle_url("https://original.livestream.com/channel"))
# shouldn't match
self.assertFalse(OldLivestream.can_handle_url("https://cdn.livestream.com"))
self.assertFalse(OldLivestream.can_handle_url("https://original.livestream.com"))
# other plugin livestream.py
self.assertFalse(OldLivestream.can_handle_url("https://livestream.com"))
self.assertFalse(OldLivestream.can_handle_url("https://www.livestream.com"))