diff --git a/CHANGELOG.md b/CHANGELOG.md index 2386cb1..d857ba5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # 更新日志 +## 1.2.2 + +- 避免 url 失效出现一直超时不能录制 + ## 1.2.1 - 兼容 flv 头不正确的直播流 diff --git a/src/blrec/__init__.py b/src/blrec/__init__.py index 73cfba1..ef17d33 100644 --- a/src/blrec/__init__.py +++ b/src/blrec/__init__.py @@ -1,4 +1,4 @@ __prog__ = 'blrec' -__version__ = '1.2.1' +__version__ = '1.2.2' __github__ = 'https://github.com/acgnhiki/blrec' diff --git a/src/blrec/core/stream_recorder.py b/src/blrec/core/stream_recorder.py index 6b9bf5c..d3be8f4 100644 --- a/src/blrec/core/stream_recorder.py +++ b/src/blrec/core/stream_recorder.py @@ -317,6 +317,7 @@ class StreamRecorder( logger.warning(repr(e)) except FlvStreamCorruptedError as e: logger.warning(repr(e)) + url = self._get_live_stream_url() def _streaming(self, url: str) -> None: logger.debug('Getting the live stream...')