File: test_vkvideolive.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 (26 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (2)
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
from streamlink.plugins.vkvideolive import VKvideolive
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlVKvideolive(PluginCanHandleUrl):
    __plugin__ = VKvideolive

    should_match = [
        # live
        "https://live.vkvideo.ru/CHANNEL",
        "https://live.vkplay.ru/CHANNEL",
        "https://vkplay.live/CHANNEL",
        # VOD
        "https://live.vkvideo.ru/CHANNEL/record/VOD",
        "https://live.vkplay.ru/CHANNEL/record/VOD",
        "https://vkplay.live/CHANNEL/record/VOD",
    ]

    should_not_match = [
        "https://live.vkvideo.ru/",
        "https://live.vkplay.ru/",
        "https://vkplay.live/",
        "https://support.vkplay.ru/vkp_live",
        "https://vkplay.live/app/settings/edit",
        "https://vkplay.live/app/settings/external-apps",
    ]