#v2.9.2 通知模板分享(2.9.2才支持时间)
设定-通知-通知模板
资源入库
{
"title":"📂 {{ title_year }}",
"text": "{% if current_time %}\n🕒 时间: {{ current_time }}{% endif %}"
"\n🎬 状态: 整理完成"
"{% if season_episode %}\n📺 集数: {{ season_episode }}{% endif %}"
"{% if category %}\n🎭 类别: {{ category }}{% endif %}"
"{% if releaseGroup %}\n👥 小组: {{ releaseGroup }}{% endif %}"
"{% if resource_term %}\n🌟 质量:{{ resource_term }}{% endif %}{% if audioCodec %} {{ audioCodec }}{% endif %}"
"{% if total_size %}\n💾 大小: {{ total_size }}{% endif %}"
"{% if err_msg %}\n⚠️ 处理失败: {{ err_msg }}{% endif %}"
}
资源下载
{
"macro": "{% macro replace_chars(text) %}{{ text | replace('*', '') | replace('[', '') | replace(']', '') }}{% endmacro %}",
"title": "{% if title_year %}"
"{% if __mediainfo__ and __mediainfo__.detail_link %}*[{{ title_year }}]({{ __mediainfo__.detail_link }})*"
"{% else %}{{ title_year }}{% endif %}"
"{% endif %}"
"{% if download_episodes %} {{ season_fmt }} {{ download_episodes }}"
"{% elif season_episode %} {{ season_episode }}{% endif %} 开始下载",
"text": "{% if pubdate %}\n⏰ 发布: {{ pubdate }}\n{% endif %}"
"{% if category %}🎬 类别: {{ category }}\n{% endif %}"
"{% if site_name %}🔗 站点: {{ site_name }}\n{% endif %}"
"{% if resource_term %}✨ 质量:{{ resource_term }}\n{% endif %}"
"{% if freedate and freedate != '0000-00-00 00:00:00' %}⏳ 免费: {{ freedate }}\n{% endif %}"
"{% if size or seeders %}"
"{% set items = [] %}"
"{% if size %}{% set _ = items.append('📦 大小: ' + size|string) %}{% endif %}"
"{% if seeders %}{% set _ = items.append('🌱 做种: ' + seeders|string) %}{% endif %}"
"{{ items|join(' | ') }}\n"
"{% endif %}"
"{% if volume_factor != '未知' or hit_and_run %}"
"{% set items = [] %}"
"{% if volume_factor != '未知' %}{% set _ = items.append('🎉 促销: ' + volume_factor) %}{% endif %}"
"{% if hit_and_run %}{% set _ = items.append('🚨 H&R: ' + hit_and_run) %}{% endif %}"
"{{ items|join(' | ') }}\n"
"{% endif %}"
"{% if labels %}🏷 标签: {{ labels }}\n{% endif %}"
"{% if torrent_title %}"
"{% if __torrentinfo__ and __torrentinfo__.page_url %}"
"📜 种子: [{{ replace_chars(torrent_title) }}]({{ __torrentinfo__.page_url }})\n"
"{% else %}"
"📜 种子: {{ replace_chars(torrent_title) }}\n"
"{% endif %}"
"{% endif %}"
"{% if description %}📝 描述: {{ replace_chars(description) }}{% endif %}",
"image": "{% if backdrop %}{{ backdrop }}{% elif poster %}{{ poster }}{% endif %}"
}
https://t.me/c