MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / get_stream_object

Function get_stream_object

apps/proxy/live_proxy/url_utils.py:52–59  ·  view source on GitHub ↗
(id: str)

Source from the content-addressed store, hash-verified

50
51
52def get_stream_object(id: str):
53 try:
54 logger.info(f"Fetching channel ID {id}")
55 return get_object_or_404(Channel, uuid=id)
56 except:
57 # UUID check failed, assume stream hash
58 logger.info(f"Fetching stream hash {id}")
59 return get_object_or_404(Stream, stream_hash=id)
60
61def generate_stream_url(
62 channel_id: str,

Callers 5

generate_stream_urlFunction · 0.85
get_alternate_streamsFunction · 0.85
stream_tsFunction · 0.85
next_streamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected