File: test_deutschewelle.py

package info (click to toggle)
streamlink 8.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,568 kB
  • sloc: python: 51,299; sh: 184; makefile: 152
file content (27 lines) | stat: -rw-r--r-- 1,088 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
from streamlink.plugins.deutschewelle import DeutscheWelle
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlDeutscheWelle(PluginCanHandleUrl):
    __plugin__ = DeutscheWelle

    should_match = [
        # Live: en/EN (no channel selection)
        "https://www.dw.com/en/live-tv/s-100825",
        # Live: de/DE (default channel)
        "https://www.dw.com/de/live-tv/s-100817",
        # Live: de/DE (selected channel)
        "https://www.dw.com/de/live-tv/s-100817?channel=5",
        # Live: de/EN (selected channel)
        "https://www.dw.com/de/live-tv/s-100817?channel=1",
        # Live: es/ES (default channel)
        "https://www.dw.com/es/tv-en-vivo/s-100837",
        # Live: es/ES (selected channel)
        "https://www.dw.com/es/tv-en-vivo/s-100837?channel=3",
        # Live: es/DE (selected channel)
        "https://www.dw.com/es/tv-en-vivo/s-100837?channel=5",
        # VOD
        "https://www.dw.com/en/top-stories-in-90-seconds/av-49496622",
        # Audio
        "https://www.dw.com/en/womens-euros-2022-the-end/av-62738085",
    ]