File: test_streann.py

package info (click to toggle)
streamlink 8.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,564 kB
  • sloc: python: 51,188; sh: 184; makefile: 152
file content (41 lines) | stat: -rw-r--r-- 1,850 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from streamlink.plugins.streann import Streann
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlStreann(PluginCanHandleUrl):
    __plugin__ = Streann

    should_match_groups = [
        # ott.streann.com
        (
            (
                "streann",
                "https://ott.streann.com/streaming/player.html?U2FsdGVkX1/PAwXdSYuiw+o5BxSoG10K8ShiKMDOOUEuoYiQxiZlD0gg7y+Ij07/"
                + "OaI9TWk+MHp40Fx4jrOv304Z+PZwLqGJgs+b0xsnfZJMpx+UmYnjys1rzTZ8UeztNjDeYEElKdaHHGkv0HFcGBGWjyWOvQuCbjGyr4dtzLya"
                + "ChewqR9lNCuil/HOMiL/eYtEMEPVjMdeUFilb5GSVdIyeunr+JnI1tvdPC5ow3rx3NWjbqIHd13qWVSnaZSl/UZ0BDmWBf+Vr+3pPAd1Mg3y"
                + "01mKaYZywOxRduBW2HZwoLQe2Lok5Z/q4aJHO02ZESqEPLRKkEqMntuuqGfy1g==",
            ),
            {},
        ),
        (
            (
                "streann",
                "https://ott.streann.com/s-secure/player.html?U2FsdGVkX19Z8gO/ThCsK3I1DTIdVzIGRKiJP36DEx2K1n9HeXKV4nmJrKptTZRlT"
                + "mM4KTxC/Mi5k3kWEsC1pr9QWmQJzKAfGdROMWB6voarQ1UQqe8IMDiibG+lcNTggCIkAS8a+99Kbe/C1W++YEP+BCBC/8Ss2RYIhNyVdqjUt"
                + "qvv4Exk6l1gJDWNHc6b5P51020dUrkuJCgEJCbJBE/MYFuC5xlhmzf6kcN5GlBrTuwyHYBkkVi1nvjOm1QS0iQw36UgJx9JS3DDTf7BzlAim"
                + "LV5M1rXS/ME3XpllejHV0aL3sghCBzc4f4AAz1IoTsl4qEamWBxyfy2kdNJRQ==",
            ),
            {},
        ),
        # URL with iframe
        (("centroecuador", "https://centroecuador.ec/tv-radio/"), {}),
        (("crc", "https://crc.cr/estaciones/crc-89-1/"), {}),
        (("crc", "https://crc.cr/estaciones/azul-999/"), {}),
        (("columnaestilos", "https://columnaestilos.com/"), {}),
        (("evtv", "https://evtv.online/noticias-de-venezuela/"), {}),
        (("telecuracao", "https://telecuracao.com/"), {}),
    ]

    should_not_match = [
        "https://ott.streann.com",
    ]