(id: str)
| 50 | |
| 51 | |
| 52 | def 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 | |
| 61 | def generate_stream_url( |
| 62 | channel_id: str, |
no outgoing calls
no test coverage detected