@@ -580,8 +580,6 @@ def headline(self):
580580 return self .title
581581
582582 def save (self , ** kwargs ):
583- if self .allow_video_recording :
584- self .allow_video_streaming = True
585583 if not self .duration :
586584 self .duration = self .event_type .event_duration_minutes
587585 super ().save (** kwargs )
@@ -1393,12 +1391,14 @@ def serialize(self):
13931391 "event_type" : self .event_type .name ,
13941392 }
13951393
1396- if self .video_recording :
1397- video_state = "to-be-recorded"
1394+ if self .video_recording and self .video_streaming :
1395+ video_state = "to-be-streamed-to-be-recorded"
1396+ elif self .video_recording :
1397+ video_state = "to-be-recorded-not-to-be-streamed"
13981398 elif self .video_streaming :
13991399 video_state = "to-be-streamed-not-to-be-recorded"
14001400 else :
1401- video_state = "not-to-be-recorded"
1401+ video_state = "not-to-be-recorded-not-to-be-streamed "
14021402
14031403 data ["video_state" ] = video_state
14041404
@@ -1530,12 +1530,14 @@ def serialize(self, user=None):
15301530 "timeslots" : self .timeslots ,
15311531 }
15321532
1533- if self .event .video_recording :
1534- video_state = "to-be-recorded"
1533+ if self .event .video_recording and self .event .video_streaming :
1534+ video_state = "to-be-recorded-to-be-streamed"
1535+ elif self .event .video_recording :
1536+ video_state = "to-be-recorded-not-to-be-streamed"
15351537 elif self .event .video_streaming :
15361538 video_state = "to-be-streamed-not-to-be-recorded"
15371539 else :
1538- video_state = "not-to-be-recorded"
1540+ video_state = "not-to-be-recorded-not-to-be-streamed "
15391541
15401542 data ["video_state" ] = video_state
15411543
0 commit comments