From 3ee266eb4e2d34a2b68b2cd512d8aa487888f7ba Mon Sep 17 00:00:00 2001 From: James Henstridge Date: Wed, 10 Feb 2021 22:37:42 +0800 Subject: [PATCH] download: recognise BBB 2.3 presentation URLs --- download.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/download.py b/download.py index 65fd9b4..d0de721 100755 --- a/download.py +++ b/download.py @@ -12,8 +12,14 @@ class Downloader: def __init__(self, url, outdir): m = re.match(r'^.*/playback/presentation/2\.0/playback.html\?meetingId=(\S+)$', url) - if m is None: - raise ValueError(f"Does not look like a BBB playback URL: {url}") + if m is not None: + id = m.group(1) + else: + m = re.match(r'.*/playback/presentation/2.3/(\S+)$', url) + if m is not None: + id = m.group(1) + else: + raise ValueError(f"Does not look like a BBB playback URL: {url}") id = m.group(1) self.base_url = urllib.parse.urljoin(url, f"/presentation/{id}/")