File: test_dlive.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 (19 lines) | stat: -rw-r--r-- 859 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
from streamlink.plugins.dlive import DLive
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlDLive(PluginCanHandleUrl):
    __plugin__ = DLive

    should_match_groups = [
        (("live", "https://dlive.tv/cryptokaprika"), {"channel": "cryptokaprika"}),
        (("live", "https://dlive.tv/cryptokaprika?query"), {"channel": "cryptokaprika"}),
        (("live", "https://dlive.tv/cryptokaprika#hash"), {"channel": "cryptokaprika"}),
        (("vod", "https://dlive.tv/p/countrycafebgky+oLCFcknSR"), {"video": "countrycafebgky+oLCFcknSR"}),
        (("vod", "https://dlive.tv/p/countrycafebgky+oLCFcknSR?query"), {"video": "countrycafebgky+oLCFcknSR"}),
        (("vod", "https://dlive.tv/p/countrycafebgky+oLCFcknSR#hash"), {"video": "countrycafebgky+oLCFcknSR"}),
    ]

    should_not_match = [
        "https://dlive.tv/",
    ]