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


class TestPluginCanHandleUrlDailyMotion(PluginCanHandleUrl):
    __plugin__ = DailyMotion

    should_match_groups = [
        (("user", "https://www.dailymotion.com/france24"), {"user": "france24"}),
        (("media", "https://www.dailymotion.com/video/x8dmdzz"), {"media_id": "x8dmdzz"}),
        (("media", "https://www.dailymotion.com/embed/video/x8dmdzz"), {"media_id": "x8dmdzz"}),
        (("lequipe", "https://www.lequipe.fr/tv/videos/live/k3HiS3JB0BsORKqwC49"), {}),
        (("lequipe", "https://www.lequipe.fr/tv/replay/le-resume-de-la-mass-start-du-grand-bornand/20201780"), {}),
    ]

    should_not_match = [
        "https://www.dailymotion.com/",
    ]