diff --git a/bbbdl/__main__.py b/bbbdl/__main__.py index 6dc7013..a3278d6 100644 --- a/bbbdl/__main__.py +++ b/bbbdl/__main__.py @@ -59,6 +59,8 @@ def sync(ctx: click.Context, file=None, remote_file=None, overwrite=False, verbo ctx.invoke(download, input_url=input_url, output_file=output_file, overwrite=overwrite, verbose_ffmpeg=verbose_ffmpeg) except click.ClickException: click.echo(f"Skipped: {input_url} -> {output_file}", err=True) + except requests.HTTPError as e: + click.echo(f"Not available: {input_url} -> HTTP {e.response.status_code}") if __name__ == "__main__": diff --git a/bbbdl/resources.py b/bbbdl/resources.py index b147aa2..f2410fe 100644 --- a/bbbdl/resources.py +++ b/bbbdl/resources.py @@ -46,6 +46,9 @@ class Meeting: @classmethod def from_base_url(cls, base_url: str, meeting_id: str) -> Meeting: + r = requests.get(f"{base_url}/presentation/{meeting_id}/metadata.xml") + r.raise_for_status() + deskshare = Resource(href=f"{base_url}/presentation/{meeting_id}/deskshare/deskshare.webm") webcams = Resource(href=f"{base_url}/presentation/{meeting_id}/video/webcams.mp4")