Compare commits

..

4 Commits

Author SHA1 Message Date
acgnhik
2f76809807 release: 1.9.1 2022-08-01 12:29:58 +08:00
acgnhik
54c7dd3136 fix: fix space monitor
fix #103
2022-08-01 12:26:41 +08:00
acgnhik
df04e90c80 refactor: refactor segment fetcher
retry base exceptions to avoid segments lost
2022-08-01 12:22:05 +08:00
acgnhik
bff910930b chore: update portable.yml 2022-07-31 13:53:08 +08:00
5 changed files with 10 additions and 9 deletions

View File

@@ -6,8 +6,8 @@ on:
- v*.*.*
env:
FFMPEG_ARCHIVE_URL: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n5.0-latest-win64-lgpl-shared-5.0.zip
FFMPEG_ARCHIVE_NAME: ffmpeg-n5.0-latest-win64-lgpl-shared-5.0.zip
FFMPEG_ARCHIVE_URL: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-master-latest-win64-lgpl-shared.zip
FFMPEG_ARCHIVE_NAME: ffmpeg-master-latest-win64-lgpl-shared.zip
PYTHON_ARCHIVE_URL: https://www.python.org/ftp/python/3.10.4/python-3.10.4-embed-amd64.zip
jobs:

View File

@@ -1,5 +1,9 @@
# 更新日志
## 1.9.1
- 修复禁用硬盘空间检测出现 cpu 占用异常
## 1.9.0
- 录制 HLS(fmp4) 原始数据

View File

@@ -1,3 +1,3 @@
__prog__ = 'blrec'
__version__ = '1.9.0'
__version__ = '1.9.1'
__github__ = 'https://github.com/acgnhiki/blrec'

View File

@@ -52,6 +52,8 @@ class SpaceMonitor(
self.enable()
def _do_enable(self) -> None:
if self._check_interval <= 0:
return
asyncio.create_task(self.start())
logger.debug('Enabled space monitor')

View File

@@ -119,12 +119,7 @@ class SegmentFetcher:
@retry(
reraise=True,
retry=retry_if_exception_type(
(
requests.exceptions.Timeout,
requests.exceptions.HTTPError,
urllib3.exceptions.TimeoutError,
urllib3.exceptions.ProtocolError,
)
(requests.exceptions.RequestException, urllib3.exceptions.HTTPError)
),
wait=wait_exponential(multiplier=0.1, max=5),
stop=stop_after_delay(60),