Skip to content

Commit

Permalink
Merge pull request plugorgau#11 from aaaaalbert/tie-down-regexp
Browse files Browse the repository at this point in the history
Make the download URL regexp more specific
  • Loading branch information
jhenstridge authored May 5, 2021
2 parents bec27bf + 64d7552 commit a3c1051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions download.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
class Downloader:

def __init__(self, url, outdir):
m = re.match(r'^.*/playback/presentation/2\.0/playback.html\?meetingId=(\S+)$', url)
m = re.match(r'^.*/playback/presentation/2\.0/playback\.html\?meetingId=(\S+)$', url)
if m is not None:
id = m.group(1)
else:
m = re.match(r'.*/playback/presentation/2.3/(\S+)$', url)
m = re.match(r'^.*/playback/presentation/2\.3/(\S+)$', url)
if m is not None:
id = m.group(1)
else:
Expand Down

0 comments on commit a3c1051

Please sign in to comment.