コード例 #1
0
 def remove_own_stream_by_id(self, sid: ObjectId):
     stream = IStream.get_stream_by_id(sid)
     if stream:
         for stream in self.streams:
             if stream.sid == sid:
                 self.stream.remove(stream)
         stream.delete()
         self.save()
コード例 #2
0
 def remove_own_vod_by_id(self, sid: ObjectId):
     vod = IStream.get_stream_by_id(sid)
     if vod:
         for vod in self.vod:
             if vod.private and vod.sid == sid:
                 self.vod.remove(vod)
         vod.delete()
         self.save()
コード例 #3
0
 def remove_official_catchup_by_id(self, sid: ObjectId):
     original_stream = IStream.get_stream_by_id(sid)
     self.remove_official_catchup(original_stream)