We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 675eefb commit 20e94feCopy full SHA for 20e94fe
src/dialogchain/engine.py
@@ -143,7 +143,11 @@ def create_source(self, uri: str):
143
if scheme == 'rtsp':
144
return RTSPSource(uri)
145
elif scheme == 'timer':
146
- interval = parsed.path.rstrip('/')
+ # For timer URIs, the interval can be in either the netloc or path
147
+ # e.g., timer:5s, timer://5s, or timer:/5s
148
+ interval = parsed.netloc or parsed.path.lstrip('/')
149
+ if not interval:
150
+ raise ValueError(f"No interval specified in timer URI: {uri}")
151
return TimerSource(interval)
152
elif scheme == 'grpc':
153
return GRPCSource(uri)
0 commit comments