diff --git a/anonstream/segments.py b/anonstream/segments.py index bcf0582..e69bd88 100644 --- a/anonstream/segments.py +++ b/anonstream/segments.py @@ -85,7 +85,8 @@ async def get_segment_uris(token): f'stream went offline before we could find any segments' ) return - else: + + if segment.init_section is not None: yield segment.init_section.uri while True: