From 32fa3b43c17fb5c871b5d261536d17bf2310a567 Mon Sep 17 00:00:00 2001 From: JackDandy Date: Mon, 20 Feb 2017 17:24:33 +0000 Subject: [PATCH] Change do not have shows checked by default on import page. To re-enable import shows checked by default, 1) On config page 'Save' 2) Stop SG 3) Find 'import_default_checked_shows' in config.ini and set '1' 4) Start SG --- CHANGES.md | 2 ++ .../interfaces/default/home_massAddTable.tmpl | 7 +++++-- sickbeard/__init__.py | 18 +++++++++++++----- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index a6ae04d2..12de5c6c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -50,6 +50,8 @@ * Change add IPv4 config option when enabling IPv6. * Add AlphaReign torrent provider * Add Skytorrents torrent provider +* Change do not have shows checked by default on import page. To re-enable import shows checked by default, + 1) On config page 'Save' 2) Stop SG 3) Find 'import_default_checked_shows' in config.ini and set '1' 4) Start SG [develop changelog] diff --git a/gui/slick/interfaces/default/home_massAddTable.tmpl b/gui/slick/interfaces/default/home_massAddTable.tmpl index 0fb92ac9..2bec4ca1 100644 --- a/gui/slick/interfaces/default/home_massAddTable.tmpl +++ b/gui/slick/interfaces/default/home_massAddTable.tmpl @@ -1,12 +1,15 @@ #import re #import sickbeard #from sickbeard.helpers import anon_url +<% def sg_var(varname, default=False): return getattr(sickbeard, varname, default) %>#slurp# +<% def sg_str(varname, default=''): return getattr(sickbeard, varname, default) %>#slurp# +#set $state_checked = ('', ' checked=checked')[any([sg_var('IMPORT_DEFAULT_CHECKED_SHOWS')])] @@ -41,7 +44,7 @@
- + Parent\show folder Show name
(tvshow.nfo)
- +