- % if recently_added.get('movie'):
@@ -602,67 +583,106 @@
- % for movie in recently_added['movie']:
- <%
- if loop.index == len(recently_added['movie'])-1 and loop.index % 2 == 0:
- clear = ''
- odd = 'odd'
- else:
- clear = odd = ''
- %>
- ${clear | n}
-
- % endif
- % if recently_added.get('show'):
+
- % endfor
- |
+ ||||||||||
+ |
+ ||||||||||
@@ -676,101 +696,129 @@
- % for show in recently_added['show']:
- <%
- if show['season_count'] == 1 and show['season'][0]['episode_count'] == 1:
- link_rating_key = show['season'][0]['episode'][0]['rating_key']
- link_title = show['title'] + " - " + show['season'][0]['episode'][0]['title']
- else:
- link_rating_key = show['rating_key']
- link_title = show['title']
-
- if loop.index == len(recently_added['show'])-1 and loop.index % 2 == 0:
- clear = ''
- odd = 'odd'
- else:
- clear = odd = ''
- %>
- ${clear | n}
-
- % endif
- % if recently_added.get('artist'):
+
- % endfor
- |
+ ||||||||||
@@ -784,71 +832,100 @@
- <% album_count = 0 %>
- % for artist in recently_added['artist']:
- % for album in artist['album']:
- <%
- album_count += 1
-
- if album_count == total_albums and album_count % 2 == 1:
- clear = ''
- odd = 'odd'
- else:
- clear = odd = ''
- %>
- ${clear | n}
-
- % endif
-
+
- % endfor
- % endfor
- |
+ ||||||||||
- |
- % if recently_added.get('movie'):
@@ -602,67 +583,106 @@
- % for movie in recently_added['movie']:
- <%
- if loop.index == len(recently_added['movie'])-1 and loop.index % 2 == 0:
- clear = ''
- odd = 'odd'
- else:
- clear = odd = ''
- %>
- ${clear | n}
-
- % endif
- % if recently_added.get('show'):
+
-
- % endfor
-
-
-
-
-
-
-
-
-
-
-
-
-
- % if movie['tagline']:
-
-
-
- ${movie['tagline']}
-
- % endif
-
- ${movie['summary'][:450] + (movie['summary'][450:] and '...')}
-
- |
+ ||||||||||
+
|
+ ||||||||||
@@ -676,101 +696,129 @@
- % for show in recently_added['show']:
- <%
- if show['season_count'] == 1 and show['season'][0]['episode_count'] == 1:
- link_rating_key = show['season'][0]['episode'][0]['rating_key']
- link_title = show['title'] + " - " + show['season'][0]['episode'][0]['title']
- else:
- link_rating_key = show['rating_key']
- link_title = show['title']
-
- if loop.index == len(recently_added['show'])-1 and loop.index % 2 == 0:
- clear = ''
- odd = 'odd'
- else:
- clear = odd = ''
- %>
- ${clear | n}
-
- % endif
- % if recently_added.get('artist'):
+
-
- % endfor
-
-
-
-
-
-
-
-
-
-
-
-
- ${show['title']}
-
-
-
-
-
- % if show['season_count'] > 1:
- ${show['season_count']} seasons /
- % endif
- <% total_show_episodes = sum(s['episode_count'] for s in show['season']) %>
- ${total_show_episodes} episode${'s' if total_show_episodes > 1 else ''}
-
-
- % for i, season in enumerate(show['season'][:8]):
- Season ${season['media_index']} ·
- % if season['episode_count'] == 1:
- Episode ${season['episode'][0]['media_index']} - ${season['episode'][0]['title']}
- % else:
- Episodes ${season['episode_range']}
- % endif
- % if i < min(show['season_count'], 7):
-
- - % elif i == 7 and show['season_count'] > 8: - ...plus ${show['season_count'] - 8} more seasons! - % endif - % endfor -
- % if show['season_count'] == 1 and show['season'][0]['episode_count'] == 1:
- ${show['season'][0]['episode'][0]['summary'][:350] + (show['season'][0]['episode'][0]['summary'][350:] and '...')}
- % else:
- <% length = max(0, 350 - 50 * (show['season_count'] - 1)) %>
- % if length:
- ${show['summary'][:length] + (show['summary'][length:] and '...')}
- % endif
- % endif
-
-
|
+ ||||||||||
@@ -784,71 +832,100 @@
- <% album_count = 0 %>
- % for artist in recently_added['artist']:
- % for album in artist['album']:
- <%
- album_count += 1
-
- if album_count == total_albums and album_count % 2 == 1:
- clear = ''
- odd = 'odd'
- else:
- clear = odd = ''
- %>
- ${clear | n}
-
- % endif
-
+
-
- % endfor
- % endfor
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ${artist['title']} · ${album['track_count']} track${'s' if album['track_count'] > 1 else ''}
-
- % if artist['title'].lower() != 'various artists':
-
- ${album['summary'][:200] + (album['summary'][200:] and '...')}
-
- % endif
-
|
+ ||||||||||
- |