mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-04-13 09:49:42 +08:00
fix(database): improve message template
- Fix syntax error in downloadAdded message template
This commit is contained in:
@@ -32,7 +32,6 @@ class TemplateContextBuilder:
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
self.cache = TTLCache(maxsize=100, ttl=600)
|
||||
self._context = {}
|
||||
|
||||
def build(
|
||||
|
||||
@@ -33,7 +33,7 @@ def upgrade() -> None:
|
||||
"downloadAdded": """
|
||||
{
|
||||
'title': '{{ title_year }}'
|
||||
'{% if download_episodes %} {{ season }} {{ download_episodes }}{% else %}{{ season_episode }} 开始下载',
|
||||
'{% if download_episodes %} {{ season }} {{ download_episodes }}{% else %}{{ season_episode }}{% endif %} 开始下载',
|
||||
'text': '{% if site_name %}站点:{{ site_name }}{% endif %}'
|
||||
'{% if resource_term %}\\n质量:{{ resource_term }}{% endif %}'
|
||||
'{% if size %}\\n大小:{{ size }}{% endif %}'
|
||||
|
||||
Reference in New Issue
Block a user