From 2d4e184b1df548f9aca04cb83131e5aab9104b98 Mon Sep 17 00:00:00 2001 From: Alessandro Riva Date: Mon, 11 Mar 2024 14:15:00 +0100 Subject: [PATCH] Add .m4v to regex --- unimi_dl/platform/ariel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unimi_dl/platform/ariel.py b/unimi_dl/platform/ariel.py index 4c7d106..e62a8aa 100644 --- a/unimi_dl/platform/ariel.py +++ b/unimi_dl/platform/ariel.py @@ -50,7 +50,7 @@ def get_manifests(self, url: str) -> dict[str, str]: self.logger.info("Collecting manifests and video names") res = {} manifest_re = re.compile( - r"https://.*?/mp4:.*?([^/]*?)\.mp4/manifest.m3u8") + r"https://.*?/mp4:.*?([^/]*?)\.(m4v|mp4)/manifest.m3u8") for i, manifest in enumerate(manifest_re.finditer(video_page)): title = urllib.parse.unquote( manifest[1]) if manifest[1] else urllib.parse.urlparse(url)[1]+str(i)