File: test_raiplay.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 (22 lines) | stat: -rw-r--r-- 848 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
from streamlink.plugins.raiplay import RaiPlay
from tests.plugins import PluginCanHandleUrl


class TestPluginCanHandleUrlRaiPlay(PluginCanHandleUrl):
    __plugin__ = RaiPlay

    should_match = [
        ("live", "https://raiplay.it/dirette/rai1"),
        ("live", "https://www.raiplay.it/dirette/rai1"),
        ("live", "https://www.raiplay.it/dirette/rai2"),
        ("live", "https://www.raiplay.it/dirette/rai3"),
        ("live", "https://www.raiplay.it/dirette/rainews24"),
        (
            "vod",
            "https://raiplay.it/video/2023/11/Un-posto-al-sole---Puntata-del-08112023-EP6313-1377bcf9-db3f-40f7-aa05-fefeb086ec68.html",
        ),
        (
            "vod",
            "https://www.raiplay.it/video/2023/11/Un-posto-al-sole---Puntata-del-08112023-EP6313-1377bcf9-db3f-40f7-aa05-fefeb086ec68.html",
        ),
    ]