Skip to content

Commit

Permalink
download: recognise BBB 2.3 presentation URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenstridge committed Feb 10, 2021
1 parent 0644651 commit 3ee266e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions download.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}/")
Expand Down

0 comments on commit 3ee266e

Please sign in to comment.