diff --git a/post_parser.py b/post_parser.py index d6efdf7..d27c6c6 100644 --- a/post_parser.py +++ b/post_parser.py @@ -388,13 +388,13 @@ class PostParser: logger.debug(f"Collected media file: {channel_username}/{message.id}/{file_unique_id}") content_media.append(f'
') if message.media in [MessageMediaType.PHOTO, MessageMediaType.DOCUMENT]: - content_media.append(f'') + content_media.append(f'') elif message.media == MessageMediaType.VIDEO: - content_media.append(f'') + content_media.append(f'') elif message.media == MessageMediaType.ANIMATION: - content_media.append(f'') + content_media.append(f'') elif message.media == MessageMediaType.VIDEO_NOTE: - content_media.append(f'') + content_media.append(f'') elif message.media == MessageMediaType.AUDIO: mime_type = getattr(message.audio, 'mime_type', 'audio/mpeg') content_media.append(f'') @@ -403,7 +403,7 @@ class PostParser: content_media.append(f'') elif message.media == MessageMediaType.STICKER: emoji = getattr(message.sticker, 'emoji', '') - content_media.append(f'Sticker {emoji}') + content_media.append(f'Sticker {emoji}') content_media.append('
') if webpage := getattr(message, "web_page", None): # Web page preview @@ -427,7 +427,7 @@ class PostParser: return ( f'
' f'' - f'' + f'' f'
' ) return None @@ -517,7 +517,7 @@ class PostParser: parts.append('    '.join(second_line_parts)) html = '
'.join(parts) if parts else None - return f"
{html}" if html else None + return f"

{html}" if html else None except Exception as e: logger.error(f"reactions_views_parsing_error: {str(e)}")