File: test_mangomolo.py

package info (click to toggle)
streamlink 8.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,608 kB
  • sloc: python: 51,763; sh: 184; makefile: 152
file content (42 lines) | stat: -rw-r--r-- 1,099 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
42
from streamlink.plugins.mangomolo import Mangomolo
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlMangomolo(PluginCanHandleUrl):
    __plugin__ = Mangomolo

    should_match = [
        (
            "mangomoloplayer",
            "https://player.mangomolo.com/v1/live?id=MTk1&channelid=MzU1&countries=bnVsbA==&w=100%25&h=100%25"
            + "&autoplay=true&filter=none&signature=9ea6c8ed03b8de6e339d6df2b0685f25&app_id=43",
        ),
        (
            "51comkw",
            "https://51.com.kw/live",
        ),
        (
            "51comkw",
            "https://51.com.kw/live/",
        ),
        (
            "51comkw",
            "https://51.com.kw/live/355/AlKuwait",
        ),
        (
            "51comkw",
            "https://51.com.kw/live/361/KTV2",
        ),
        (
            "51comkw",
            "https://51.com.kw/live/356/News",
        ),
        (
            "51comkw",
            "https://51.com.kw/live/362/Sport",
        ),
        (
            "51comkw",
            "https://51.com.kw/live/357/Sport2",
        ),
    ]