def test_arkivet_audio_stream_url(): streamurl = fetch_stream_url('https://svenska.yle.fi/artikel/2014/01/28' '/tove-jansson-laser-noveller-ur-dockskapet') assert len(streamurl) == 11 for url in streamurl: assert url.startswith('rtmpe://')
def test_radio_live_url2(): url = fetch_stream_url( 'https://areena.yle.fi/audio/ohjelmat/57-3gO4bl7J6?' '_c=yle-radio-suomi-oulu') assert len(url) == 1 assert '.m3u8' in url[0]
def test_radio_stream_url_media_url(): # The default stream is RTMP. This test is about the secondary # "media_url" stream. Therefore the rtmpdump backend is disabled. filters = StreamFilters(enabled_backends=['wget', 'ffmpeg']) url = fetch_stream_url('https://areena.yle.fi/1-4561516', filters) assert len(url) == 1 assert '.mp3?' in url[0]
def test_areena_awsmpodamdipv4_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-50875269') assert len(streamurl) == 1 assert '/index.m3u8?' in streamurl[0]
def test_areena_series_urls(): urls = fetch_stream_url('https://areena.yle.fi/1-3826480') assert len(urls) == 10 assert all(['manifest.f4m' in url for url in urls])
def test_areena_html5_clip_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-3523087') assert len(streamurl) == 1 assert 'cdnapi.kaltura.com' in streamurl[0]
def test_radio_stream_url(): url = fetch_stream_url('https://areena.yle.fi/1-3361013') assert len(url) == 1 assert 'rtmp' in url[0]
def test_areena_akamai_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-1765055') assert len(streamurl) == 1 assert 'manifest.f4m' in streamurl[0]
def test_arkivet_stream_url(): streamurl = fetch_stream_url('https://svenska.yle.fi/artikel/2014/06/13' '/halla-det-ar-naturvaktarna') assert streamurl assert 'manifest.f4m' in streamurl[0]
def test_radio_stream_url_hls(): url = fetch_stream_url('https://areena.yle.fi/1-4551633') assert len(url) == 1 assert 'a.mp3' in url[0]
def test_areena_akamai_hds_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-1418526') assert len(streamurl) == 1 assert 'manifest.f4m' in streamurl[0]
def test_areena_html5_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-403848') assert len(streamurl) == 1 assert '/a.mp4?' in streamurl[0]
def test_areena_live_url(): streamurl = fetch_stream_url('https://areena.yle.fi/tv/suorat/yle-tv1') assert len(streamurl) == 1 assert '.m3u8' in streamurl[0]
def test_areena_ohjelmat_embedded_live_url(): streamurl = fetch_stream_url('https://areena.yle.fi/tv/ohjelmat/30-595?play=yle-tv2') assert len(streamurl) == 1 assert 'master.m3u8' in streamurl[0]
def test_areena_series_urls(): urls = fetch_stream_url('https://areena.yle.fi/1-3826480') assert len(urls) == 10 assert all(['a.mp4' in url for url in urls])
def test_arkivet_a__stream_url(): streamurl = fetch_stream_url('https://svenska.yle.fi/a/7-884297') assert streamurl assert '/a.m3u8' in streamurl[0]
def test_radio_live_url2(): url = fetch_stream_url('https://yle.fi/radio/radiosuomi/turku/suora/') assert len(url) == 1 assert 'manifest.f4m' in url[0]
def test_areena_html5_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-787136') assert len(streamurl) == 1 assert '/a.m3u8?' in streamurl[0]
def test_radio_live_url(): url = fetch_stream_url('https://areena.yle.fi/radio/ohjelmat/yle-puhe') assert len(url) == 1 assert '.m3u8' in url[0]
def test_arkivet_audio_stream_url(): streamurl = fetch_stream_url('https://svenska.yle.fi/artikel/2014/04/03' '/tove-jansson-laser-smatrollen-och-' 'den-stora-oversvamningen') assert streamurl assert streamurl[0].startswith('rtmpe://')
def test_areena_iphone_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-4247408') assert len(streamurl) == 1 assert '/a.m3u8?' in streamurl[0]
def test_arkisto_a_stream_url(): streamurl = fetch_stream_url('https://yle.fi/aihe/a/20-10001712') assert len(streamurl) >= 2 assert all(('/a.m3u8' in url or '/a.mp3' in url) for url in streamurl)
def test_areena_ohjelmat_embedded_live_url(): streamurl = fetch_stream_url( 'https://areena.yle.fi/tv/ohjelmat/30-595?play=yle-tv2') assert len(streamurl) == 1 assert 'master.m3u8' in streamurl[0]
def test_arkisto_stream_url(): streamurl = fetch_stream_url('https://yle.fi/aihe/artikkeli/2010/10/28' '/studio-julmahuvi-roudasta-rospuuttoon') assert streamurl assert 'manifest.f4m' in streamurl[0]
def test_radio_live_url(): url = fetch_stream_url('https://areena.yle.fi/audio/ohjelmat/57-kpDBBz8Pz') assert len(url) == 1 assert '.m3u8' in url[0]
def test_areena_html5_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-403848') assert len(streamurl) == 1 assert streamurl[0].startswith('https://cdnapisec.kaltura.com/')
def test_radio_series_2020(): urls = fetch_stream_url('https://areena.yle.fi/audio/1-50198109') assert len(urls) >= 6
def test_areena_live_url(): streamurl = fetch_stream_url('https://areena.yle.fi/tv/suorat/yle-tv1') assert len(streamurl) == 1 assert 'manifest.f4m' in streamurl[0]
def test_areena_stream_url(): streamurl = fetch_stream_url('https://areena.yle.fi/1-1765055') assert len(streamurl) == 1 assert 'manifest.f4m' in streamurl[0]