MCPcopy Create free account
hub / github.com/ZLMediaKit/pymkui / delete_pull_proxy

Method delete_pull_proxy

backend/database.py:719–729  ·  view source on GitHub ↗

Delete pull proxy by vhost, app, stream

(self, vhost: str, app: str, stream: str)

Source from the content-addressed store, hash-verified

717 return False
718
719 def delete_pull_proxy(self, vhost: str, app: str, stream: str) -> bool:
720 """Delete pull proxy by vhost, app, stream"""
721 try:
722 cur = self._cursor()
723 cur.execute('DELETE FROM pull_proxies WHERE vhost = ? AND app = ? AND stream = ?',
724 (vhost, app, stream))
725 self.connection.commit()
726 return True
727 except sqlite3.Error as e:
728 print(f"Failed to delete pull proxy: {e}")
729 return False
730
731 # ==================== 多地址管理 ====================
732

Callers 1

del_stream_proxyFunction · 0.80

Calls 1

_cursorMethod · 0.95

Tested by

no test coverage detected