diff --git a/rss-generator.py b/rss-generator.py
index eb3891c..01687a0 100644
--- a/rss-generator.py
+++ b/rss-generator.py
@@ -149,8 +149,36 @@ def create_rss_feed(apps_data, feed_name, feed_description, output_file):
screenshot_url = str(app['screenshot_url'])
description_sections.append(f'')
- # Add latest release notes if available
- if 'latest_release_notes' in app and app['latest_release_notes']:
+ # Add changelog if available
+ if 'changelog' in app and isinstance(app['changelog'], list) and len(app['changelog']) > 0:
+ description_sections.append('
Released: {formatted_date}
') + except (ValueError, AttributeError): + changelog_html.append(f'Released: {published_date}
') + + if release_notes: + formatted_notes = format_description(release_notes) + changelog_html.append(formatted_notes) + else: + changelog_html.append('No release notes provided.
') + + description_sections.append('\n'.join(changelog_html)) + + # Add latest release notes if available (and changelog isn't already shown) + elif 'latest_release_notes' in app and app['latest_release_notes']: release_notes = str(app['latest_release_notes']).strip() if release_notes: formatted_notes = format_description(release_notes) @@ -234,4 +262,3 @@ def main(): if __name__ == "__main__": main() -