diff --git a/data/interfaces/newsletters/recently_added.html b/data/interfaces/newsletters/recently_added.html index 49c3fd13..dd210aaa 100644 --- a/data/interfaces/newsletters/recently_added.html +++ b/data/interfaces/newsletters/recently_added.html @@ -767,6 +767,15 @@ % for show in (show_a, show_b): % if show: + <% + if show['season_count'] == 1: + if show['season'][0]['episode_count'] == 1: + link_rating_key = show['season'][0]['episode'][0]['rating_key'] + else: + link_rating_key = show['season'][0]['episode'][0]['parent_rating_key'] + else: + link_rating_key = show['rating_key'] + %> @@ -776,7 +785,7 @@ @@ -789,7 +798,7 @@ diff --git a/data/interfaces/newsletters/recently_added_master.html b/data/interfaces/newsletters/recently_added_master.html index 23c5cca1..79ffcc14 100644 --- a/data/interfaces/newsletters/recently_added_master.html +++ b/data/interfaces/newsletters/recently_added_master.html @@ -767,6 +767,15 @@ % for show in (show_a, show_b): % if show: + <% + if show['season_count'] == 1: + if show['season'][0]['episode_count'] == 1: + link_rating_key = show['season'][0]['episode'][0]['rating_key'] + else: + link_rating_key = show['season'][0]['episode'][0]['parent_rating_key'] + else: + link_rating_key = show['rating_key'] + %>
- +
- ${show['title']} + ${show['title']}
@@ -776,7 +785,7 @@ @@ -789,7 +798,7 @@
- +
- ${show['title']} + ${show['title']}