e #2
This commit is contained in:
parent
d0c008fc20
commit
00000d9f7e
1 changed files with 5 additions and 3 deletions
|
|
@ -169,9 +169,11 @@ async def get_events(
|
||||||
if not sources:
|
if not sources:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
source = sources[1] if len(sources) > 1 else sources[0]
|
skip_sources = {"alpha", "delta", "golf"}
|
||||||
source_type = source.get("source")
|
srce = [d for d in sources if d.get("source") not in skip_sources][0]
|
||||||
stream_id = source.get("id")
|
|
||||||
|
source_type = srce.get("source")
|
||||||
|
stream_id = srce.get("id")
|
||||||
|
|
||||||
if not (source_type and stream_id):
|
if not (source_type and stream_id):
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue