diff --git a/pretalx_matomocamp/signals.py b/pretalx_matomocamp/signals.py index 8d439c6..092a609 100644 --- a/pretalx_matomocamp/signals.py +++ b/pretalx_matomocamp/signals.py @@ -12,14 +12,16 @@ class MatomoVideoProvider(BaseRecordingProvider): """ def get_recording(self, submission: Submission): + is_past_submission = submission.event == 0 is_workshop = submission.submission_type.id == 2 button_title = "View Workshop" if is_workshop else "View Livestream" livestream_url = f"https://live.matomocamp.org/" + submission.code chat_url = livestream_url + "/chat_room" recording_url = livestream_url + "/recording" recording_embed_url = livestream_url + "/recording_embed" - return { - "iframe": f""" + if is_past_submission: + return { + "iframe": f"""