通知
OneLiveRec 底层使用 Apprise, 让您可以向目前几乎所有主流的通知服务发送通知。
您可以在 Apprise wiki 中找到服务网址格式以及 Apprise 支持的所有通知服务。
OneLiveRec 使用 Liquid 模板生成最终消息标题和正文, 您可以根据需要使用 Liquid 语法自定义最终生成的消息。
service_url
Section titled “service_url”用于发送通知的服务网址
事件类型:live_start, live_end, error
直播网址
platform
Section titled “platform”直播平台
channel
Section titled “channel”直播频道
user_id
Section titled “user_id”主播用户 ID
user_name
Section titled “user_name”主播用户名
avatar
Section titled “avatar”主播头像网址
直播标题
直播封面网址
categories
Section titled “categories”直播分类
live_id
Section titled “live_id”直播 ID
start_time
Section titled “start_time”直播开始时间
错误信息
Liquid 筛选器
Section titled “Liquid 筛选器”date 筛选器已扩展,支持时区参数。
如果未指定时区参数,date 筛选器默认使用 UTC 时区。
时区参数可以是 utc、local 或来自 时区数据库 的时区名称,例如 Asia/Shanghai、America/New_York 和 Europe/London。
示例:
{{ start_time | date: '%Y-%m-%dT%H:%M:%SZ' }}{{ start_time | date: '%Y-%m-%dT%H:%M:%SZ', 'utc' }}{{ start_time | date: '%Y-%m-%d %H:%M:%S', 'local' }}{{ start_time | date: '%Y-%m-%d %H:%M:%S', 'Asia/Shanghai' }}{{ start_time | date: '%Y-%m-%d %H:%M:%S', 'America/New_York' }}{{ start_time | date: '%Y-%m-%d %H:%M:%S', 'Europe/London' }}