File: test_tviplayer.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 (16 lines) | stat: -rw-r--r-- 502 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from streamlink.plugins.tviplayer import TVIPlayer
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlTVIPlayer(PluginCanHandleUrl):
    __plugin__ = TVIPlayer

    should_match = [
        "https://tviplayer.iol.pt/direto/TVI24",
        "https://tviplayer.iol.pt/direto/TVI_AFRICA",
        "https://tviplayer.iol.pt/programa/prisioneira/5c890ae00cf2f1892ed73779/episodio/t2e219",
    ]

    should_not_match = [
        "https://tviplayer.iol.pt/programas/Exclusivos",
    ]