fix player ui

This commit is contained in:
user 2025-06-01 00:04:26 +03:00
parent 58eca166db
commit b5a9437c05
1 changed files with 5 additions and 3 deletions

View File

@ -77,11 +77,13 @@ class PlayerTemplates:
inline_keyboard_array = []
extra_buttons = []
else:
content_hashtags = content_metadata_json.get('description').strip()
if content_hashtags:
content_hashtags += '\n\n'
text = f"""<b>{content_metadata_json.get('name', 'Unnamed')}</b>
{content_metadata_json.get('description').strip()}
<code><a href="{content_share_link['url']}">🌐 Открыть на MY</a></code>"""
{content_hashtags}<pre><a href="{content_share_link['url']}">🌐 Открыть на MY</a></pre>"""
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(