diff options
author | David Turner <547637+digitall@users.noreply.github.com> | 2022-12-08 12:38:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-08 18:08:52 +0530 |
commit | 42ec478fc4abe4131a0908881673a19aa750bc97 (patch) | |
tree | 7601c5fd938a5833f5ef9270e471d9d0402c4b01 | |
parent | 7991ae57a800316930e20a15df8314616c5cba8f (diff) | |
download | hypervideo-pre-42ec478fc4abe4131a0908881673a19aa750bc97.tar.lz hypervideo-pre-42ec478fc4abe4131a0908881673a19aa750bc97.tar.xz hypervideo-pre-42ec478fc4abe4131a0908881673a19aa750bc97.zip |
[extractor/plutotv] Fix videos with non-zero start (#5745)
Authored by: digitall
-rw-r--r-- | yt_dlp/extractor/plutotv.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/yt_dlp/extractor/plutotv.py b/yt_dlp/extractor/plutotv.py index 71a05cc7a..caffeb21d 100644 --- a/yt_dlp/extractor/plutotv.py +++ b/yt_dlp/extractor/plutotv.py @@ -84,6 +84,17 @@ class PlutoTVIE(InfoExtractor): }, { 'url': 'https://pluto.tv/it/on-demand/series/csi-vegas/episode/legacy-2021-1-1', 'only_matching': True, + }, + { + 'url': 'https://pluto.tv/en/on-demand/movies/attack-of-the-killer-tomatoes-1977-1-1-ptv1', + 'md5': '7db56369c0da626a32d505ec6eb3f89f', + 'info_dict': { + 'id': '5b190c7bb0875c36c90c29c4', + 'ext': 'mp4', + 'title': 'Attack of the Killer Tomatoes', + 'description': 'A group of scientists band together to save the world from mutated tomatoes that KILL! (1978)', + 'duration': 5700, + } } ] @@ -103,7 +114,7 @@ class PlutoTVIE(InfoExtractor): compat_urlparse.urljoin(first_segment_url.group(1), '0-end/master.m3u8')) continue first_segment_url = re.search( - r'^(https?://.*/).+\-0+\.ts$', res, + r'^(https?://.*/).+\-0+[0-1]0\.ts$', res, re.MULTILINE) if first_segment_url: m3u8_urls.add( |