File: test_nrk.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 (25 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
20
21
22
23
24
25
from streamlink.plugins.nrk import NRK
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlNRK(PluginCanHandleUrl):
    __plugin__ = NRK

    should_match = [
        "https://tv.nrk.no/direkte/nrk1",
        "https://tv.nrk.no/direkte/nrk2",
        "https://tv.nrk.no/direkte/nrk3",
        "https://tv.nrk.no/direkte/nrksuper",
        "https://tv.nrk.no/serie/nytt-paa-nytt/2020/MUHH43003020",
        "https://tv.nrk.no/serie/kongelige-fotografer/sesong/1/episode/2/avspiller",
        "https://tv.nrk.no/program/NNFA51102617",
        "https://radio.nrk.no/direkte/p1",
        "https://radio.nrk.no/direkte/p2",
        "https://radio.nrk.no/podkast/oppdatert/l_5005d62a-7f4f-4581-85d6-2a7f4f2581f2",
    ]

    should_not_match = [
        "https://tv.nrk.no/",
        "https://radio.nrk.no/",
        "https://nrk.no/",
    ]