mirror of
https://github.com/Steffo99/bbbdl.git
synced 2024-11-21 23:34:19 +00:00
✏️ Skip unavailable videos in sync mode
This commit is contained in:
parent
9687b42c93
commit
f9e37a49bf
2 changed files with 5 additions and 0 deletions
|
@ -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__":
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue