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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
from streamlink.plugins.pluto import Pluto
from tests.plugins import PluginCanHandleUrl
class TestPluginCanHandleUrlPluto(PluginCanHandleUrl):
__plugin__ = Pluto
should_match_groups = [
(
(
"live",
"https://pluto.tv/en/live-tv/61409f8d6feb30000766b675",
),
{
"id": "61409f8d6feb30000766b675",
},
),
(
(
"series",
"https://pluto.tv/en/on-demand/series/5e00cd538e67b0dcb2cf3bcd/season/1/episode/60dee91cfc802600134b886d",
),
{
"id_s": "5e00cd538e67b0dcb2cf3bcd",
"id_e": "60dee91cfc802600134b886d",
},
),
(
(
"movies",
"https://pluto.tv/en/on-demand/movies/600545d1813b2d001b686fa9",
),
{
"id": "600545d1813b2d001b686fa9",
},
),
]
should_not_match = [
"https://pluto.tv/live-tv",
"https://pluto.tv/en/live-tv/61409f8d6feb30000766b675/details",
"https://pluto.tv/en/on-demand/series/5e00cd538e67b0dcb2cf3bcd/details/season/1",
"https://pluto.tv/en/on-demand/movies/600545d1813b2d001b686fa9/details",
]
|