fix player ui

This commit is contained in:
user 2025-06-01 12:17:35 +03:00
parent 590afd2475
commit 21964fa986
1 changed files with 5 additions and 3 deletions

View File

@ -79,11 +79,13 @@ class PlayerTemplates:
else: else:
content_hashtags = content_metadata_json.get('description').strip() content_hashtags = content_metadata_json.get('description').strip()
if content_hashtags: if content_hashtags:
content_hashtags += '\n\n' content_hashtags += '\n'
text = f"""<b>{content_metadata_json.get('name', 'Unnamed')}</b> text = f"""<b>{content_metadata_json.get('name', 'Unnamed')}</b>
{content_hashtags}
{content_hashtags}<blockquote><a href="{content_share_link['url']}">🌐 Открыть на MY</a></blockquote>""" Этот контент был загружен в MY
\t/ p2p content market /
<blockquote><a href="{content_share_link['url']}">🔴 «открыть в MY»</a></blockquote>"""
make_log("TG-Player", f"Send content {content_type} ({content_encoding}) to chat {self._chat_id}. {cd_log}") make_log("TG-Player", f"Send content {content_type} ({content_encoding}) to chat {self._chat_id}. {cd_log}")
for kmsg in self.db_session.query(KnownTelegramMessage).filter_by( for kmsg in self.db_session.query(KnownTelegramMessage).filter_by(