change another way to skip stream record

This commit is contained in:
tursom 2024-03-01 13:16:17 +08:00
parent fb337b4b83
commit 781d5d74f6
2 changed files with 1 additions and 4 deletions

View File

@ -35,8 +35,6 @@ class StreamFetcher(AsyncCooperationMixin):
scheduler: Optional[abc.SchedulerBase] = None,
) -> abc.DisposableBase:
def on_next(url: str) -> None:
observer.on_next(io.BytesIO(b""))
return
try:
logger.info(f'Requesting live stream... {url}')
response = self._session.get(

View File

@ -28,11 +28,10 @@ def parse(
observer: abc.ObserverBase[FLVStreamItem],
scheduler: Optional[abc.SchedulerBase] = None,
) -> abc.DisposableBase:
disposed = False
disposed = True
subscription = SerialDisposable()
def on_next(stream: io.RawIOBase) -> None:
return
tag: Optional[FlvTag] = None
try:
try: