File: test_cdnbg.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 (38 lines) | stat: -rw-r--r-- 1,509 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
from streamlink.plugins.cdnbg import CDNBG
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlCDNBG(PluginCanHandleUrl):
    __plugin__ = CDNBG

    should_match_groups = [
        (("bgonair", "http://bgonair.bg/tvonline"), {}),
        (("bgonair", "http://bgonair.bg/tvonline/"), {}),
        (("nova", "http://www.nova.bg/live"), {}),
        (("nova", "http://nova.bg/live"), {}),
        (("bnt", "http://bnt.bg/live"), {}),
        (("bnt", "http://bnt.bg/live/bnt1"), {}),
        (("bnt", "http://bnt.bg/live/bnt2"), {}),
        (("bnt", "http://bnt.bg/live/bnt3"), {}),
        (("bnt", "http://bnt.bg/live/bnt4"), {}),
        (("bnt", "http://tv.bnt.bg/bnt1"), {}),
        (("bnt", "http://tv.bnt.bg/bnt2"), {}),
        (("bnt", "http://tv.bnt.bg/bnt3"), {}),
        (("bnt", "http://tv.bnt.bg/bnt4"), {}),
        (("mu-vi", "http://mu-vi.tv/LiveStreams/pages/Live.aspx"), {}),
        (("bstv", "http://live.bstv.bg/"), {}),
        (("bloombergtv", "https://www.bloombergtv.bg/video"), {}),
        (("cdnbg", "https://i.cdn.bg/live/xfr3453g0d"), {}),
        (("armymedia", "https://armymedia.bg/%d0%bd%d0%b0-%d0%b6%d0%b8%d0%b2%d0%be/"), {}),
    ]

    should_not_match = [
        "https://www.tvevropa.com",
        "http://www.kanal3.bg/live",
        "http://inlife.bg/",
        "http://videochanel.bstv.bg",
        "http://video.bstv.bg/",
        "http://bitelevision.com/live",
        "http://mmtvmusic.com/live/",
        "http://chernomore.bg/",
    ]