aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-12-17 04:45:27 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-12-19 02:06:05 +0530
commitaab41cdd33a6f6faf5d4a8db2e10c77fe08e9068 (patch)
tree8ceee0992eb5c18d5c2632885976f79e6d7ba105
parentb3a5115ff1ae455ebd7e993447db87f7b3059a1d (diff)
downloadhypervideo-pre-aab41cdd33a6f6faf5d4a8db2e10c77fe08e9068.tar.lz
hypervideo-pre-aab41cdd33a6f6faf5d4a8db2e10c77fe08e9068.tar.xz
hypervideo-pre-aab41cdd33a6f6faf5d4a8db2e10c77fe08e9068.zip
[PlutoTV] Expand `_VALID_URL`
Closes #2007
-rw-r--r--yt_dlp/extractor/plutotv.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/yt_dlp/extractor/plutotv.py b/yt_dlp/extractor/plutotv.py
index 0cf82466a..26aff1af5 100644
--- a/yt_dlp/extractor/plutotv.py
+++ b/yt_dlp/extractor/plutotv.py
@@ -20,11 +20,11 @@ from ..utils import (
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,
}
]