aboutsummaryrefslogtreecommitdiffhomepage
path: root/views
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2018-02-21 22:07:40 -0500
committermorpheus65535 <[email protected]>2018-02-21 22:07:40 -0500
commita987149341b166125fdd12ff2294466b0b0ca9ca (patch)
tree5117821272c47872cbc76bb06e9ed566086d5943 /views
parent490bdae53f41b78f910d1181eff39ea18d95fd09 (diff)
downloadbazarr-a987149341b166125fdd12ff2294466b0b0ca9ca.tar.gz
bazarr-a987149341b166125fdd12ff2294466b0b0ca9ca.zip
If available, use sceneName from Sonarr imported episodes #46
Diffstat (limited to 'views')
-rw-r--r--views/episodes.tpl2
-rw-r--r--views/history.tpl18
2 files changed, 15 insertions, 5 deletions
diff --git a/views/episodes.tpl b/views/episodes.tpl
index aa3654482..c719f87ba 100644
--- a/views/episodes.tpl
+++ b/views/episodes.tpl
@@ -183,7 +183,7 @@
%end
%if missing_languages is not None:
%for language in missing_languages:
- <a data-episodePath="{{episode[1]}}" data-language="{{pycountry.languages.lookup(str(language)).alpha_3}}" data-hi="{{details[4]}}" data-sonarrSeriesId={{episode[5]}} data-sonarrEpisodeId={{episode[7]}} class="get_subtitle ui tiny label">
+ <a data-episodePath="{{episode[1]}}" data-scenename="{{episode[8]}}" data-language="{{pycountry.languages.lookup(str(language)).alpha_3}}" data-hi="{{details[4]}}" data-sonarrSeriesId={{episode[5]}} data-sonarrEpisodeId={{episode[7]}} class="get_subtitle ui tiny label">
{{language}}
<i style="margin-left:3px; margin-right:0px" class="search icon"></i>
</a>
diff --git a/views/history.tpl b/views/history.tpl
index 245cd3f94..de2435d2d 100644
--- a/views/history.tpl
+++ b/views/history.tpl
@@ -79,14 +79,24 @@
</div>
%end
</td>
- <td><a href="{{base_url}}episodes/{{row[6]}}">{{row[1]}}</a></td>
+ <td>
+ <a href="{{base_url}}episodes/{{row[6]}}">{{row[1]}}</a>
+ </td>
<td class="collapsing">
- <%episode = row[2].split('x')%>
+ %if row[2] is not None:
+ % episode = row[2].split('x')
{{episode[0] + 'x' + episode[1].zfill(2)}}
+ %end
+ </td>
+ <td>
+ %if row[3] is not None:
+ {{row[3]}}
+ %else:
+ <em>Deleted episode</em>
+ %end
</td>
- <td>{{row[3]}}</td>
<td class="collapsing">
- <div class="ui inverted" data-tooltip="{{time.strftime('%A, %B %d %Y %H:%M', time.localtime(row[4]))}}" data-inverted="">
+ <div class="ui inverted" data-tooltip="{{time.strftime('%Y/%m/%d %H:%M', time.localtime(row[4]))}}" data-inverted="">
{{pretty.date(int(row[4]))}}
</div>
</td>