Skip to content

Commit

Permalink
fix: Add missing resolved_test_rtmp_url property on Stream class
Browse files Browse the repository at this point in the history
  • Loading branch information
munshkr committed Feb 12, 2024
1 parent 7f4d06d commit bb0bb74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ def resolved_rtmp_url(self):
tpl = Template(self.event.resolved_rtmp_url)
return tpl.safe_substitute(id=self.id, key=self.key)

@property
def resolved_test_rtmp_url(self):
if self.event.test_rtmp_url:
tpl = Template(self.event.resolved_test_rtmp_url)
return tpl.safe_substitute(id=self.id, key=self.key)


class StreamNotification(models.Model):
class Kinds(models.TextChoices):
Expand Down

0 comments on commit bb0bb74

Please sign in to comment.