1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-02 09:12:40 +01:00

[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 @@
class PlutoTVIE(InfoExtractor):
_VALID_URL = r'''(?x)
https?://(?:www\.)?pluto\.tv(?:/en)?/on-demand
https?://(?:www\.)?pluto\.tv(?:/[^/]+)?/on-demand
/(?P<video_type>movies|series)
/(?P<series_or_movie_slug>[^/]+)
(?:
/seasons?/(?P<season_no>\d+)
(?:/seasons?/(?P<season_no>\d+))?
(?:/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',
'only_matching': True,
}, {
'url': 'https://pluto.tv/it/on-demand/series/csi-vegas/episode/legacy-2021-1-1',
'only_matching': True,
}
]