[PlutoTV] Expand _VALID_URL

Closes #2007
This commit is contained in:
pukkandan 2021-12-17 04:45:27 +05:30
parent b3a5115ff1
commit aab41cdd33
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -20,11 +20,11 @@ from ..utils import (
class PlutoTVIE(InfoExtractor): class PlutoTVIE(InfoExtractor):
_VALID_URL = r'''(?x) _VALID_URL = r'''(?x)
https?://(?:www\.)?pluto\.tv(?:/en)?/on-demand https?://(?:www\.)?pluto\.tv(?:/[^/]+)?/on-demand
/(?P<video_type>movies|series) /(?P<video_type>movies|series)
/(?P<series_or_movie_slug>[^/]+) /(?P<series_or_movie_slug>[^/]+)
(?: (?:
/seasons?/(?P<season_no>\d+) (?:/seasons?/(?P<season_no>\d+))?
(?:/episode/(?P<episode_slug>[^/]+))? (?:/episode/(?P<episode_slug>[^/]+))?
)? )?
/?(?:$|[#?])''' /?(?:$|[#?])'''
@ -84,6 +84,9 @@ class PlutoTVIE(InfoExtractor):
}, { }, {
'url': 'https://pluto.tv/en/on-demand/series/manhunters-fugitive-task-force/seasons/1/episode/third-times-the-charm-1-1', 'url': 'https://pluto.tv/en/on-demand/series/manhunters-fugitive-task-force/seasons/1/episode/third-times-the-charm-1-1',
'only_matching': True, 'only_matching': True,
}, {
'url': 'https://pluto.tv/it/on-demand/series/csi-vegas/episode/legacy-2021-1-1',
'only_matching': True,
} }
] ]