Fix plural seasons in recently added

This commit is contained in:
JonnyWong16 2020-08-09 14:10:53 -07:00
commit 687672e9c1
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -32,7 +32,7 @@ DOCUMENTATION :: END
% if data != None: % if data != None:
<% <%
from plexpy.helpers import page from plexpy.helpers import cast_to_int, page
%> %>
% if data: % if data:
<div class="dashboard-recent-media-row"> <div class="dashboard-recent-media-row">
@ -87,7 +87,7 @@ DOCUMENTATION :: END
<a href="${page('info', item['rating_key'])}" title="${item['title']}">${item['title']}</a> <a href="${page('info', item['rating_key'])}" title="${item['title']}">${item['title']}</a>
</h3> </h3>
<h3 class="text-muted"> <h3 class="text-muted">
${item['child_count']} Seasons ${item['child_count']} Season${'s' if cast_to_int(item['child_count']) > 1 else ''}
</h3> </h3>
<h3 class="text-muted">&nbsp;</h3> <h3 class="text-muted">&nbsp;</h3>
</div> </div>