From a9d668b48d3492ff798c0d90dd0310a02a48a8cb Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 1 Jan 2015 14:55:47 -0800 Subject: [PATCH] Add series fixes Fixed: Link to TheTVDB instead of Trakt on add series Fixed: Don't show year 0 on add series --- src/UI/AddSeries/SearchResultViewTemplate.hbs | 2 +- src/UI/Handlebars/Helpers/Series.js | 4 ++++ src/UI/Settings/MediaManagement/Naming/NamingViewTemplate.hbs | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/UI/AddSeries/SearchResultViewTemplate.hbs b/src/UI/AddSeries/SearchResultViewTemplate.hbs index 463ec08bb..12e5e7310 100644 --- a/src/UI/AddSeries/SearchResultViewTemplate.hbs +++ b/src/UI/AddSeries/SearchResultViewTemplate.hbs @@ -1,7 +1,7 @@ 
- + diff --git a/src/UI/Handlebars/Helpers/Series.js b/src/UI/Handlebars/Helpers/Series.js index 7d1276c22..8ad3a23e6 100644 --- a/src/UI/Handlebars/Helpers/Series.js +++ b/src/UI/Handlebars/Helpers/Series.js @@ -69,6 +69,10 @@ define( return this.title; } + if (!this.year) { + return this.title; + } + return new Handlebars.SafeString('{0} ({1})'.format(this.title, this.year)); }); }); diff --git a/src/UI/Settings/MediaManagement/Naming/NamingViewTemplate.hbs b/src/UI/Settings/MediaManagement/Naming/NamingViewTemplate.hbs index 70afc8073..6a5403c79 100644 --- a/src/UI/Settings/MediaManagement/Naming/NamingViewTemplate.hbs +++ b/src/UI/Settings/MediaManagement/Naming/NamingViewTemplate.hbs @@ -208,7 +208,6 @@
-