diff --git a/CHANGES.md b/CHANGES.md index fb85581b..cb27fc8f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -195,6 +195,7 @@ * Change consolidate shutdown with restart, improve systemd support, bring order to on-init globals * Change speed improvement in finding needed categories/qualities (sd, hd, uhd) * Change add guidance when using the "unknown" quality selection +* Change prevent browser auto completing password fields on config pages [develop changelog] * Change send nzb data to NZBGet for Anizb instead of url @@ -234,6 +235,8 @@ * Fix launch browser during startup * Change don't exclude "unknown" from search * Fix UHD category select in Recent Search +* Change only update enabled torrent providers +* Fix restart when switching from master to develop ### 0.11.16 (2016-10-16 17:30:00 UTC) diff --git a/gui/slick/interfaces/default/config_anime.tmpl b/gui/slick/interfaces/default/config_anime.tmpl index 832f2b45..45702851 100644 --- a/gui/slick/interfaces/default/config_anime.tmpl +++ b/gui/slick/interfaces/default/config_anime.tmpl @@ -83,7 +83,7 @@ AniDB password - + @@ -113,4 +113,4 @@ -#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl') \ No newline at end of file +#include $os.path.join($sickbeard.PROG_DIR, 'gui/slick/interfaces/default/inc_bottom.tmpl') diff --git a/gui/slick/interfaces/default/config_general.tmpl b/gui/slick/interfaces/default/config_general.tmpl index 8d467752..321f1db8 100644 --- a/gui/slick/interfaces/default/config_general.tmpl +++ b/gui/slick/interfaces/default/config_general.tmpl @@ -433,7 +433,7 @@ Password - + blank for none check autoProcessTV.cfg is set up for external apps to use post processing scripts diff --git a/gui/slick/interfaces/default/config_notifications.tmpl b/gui/slick/interfaces/default/config_notifications.tmpl index 228e248e..03009cfb 100644 --- a/gui/slick/interfaces/default/config_notifications.tmpl +++ b/gui/slick/interfaces/default/config_notifications.tmpl @@ -163,7 +163,7 @@ Kodi web server password - + (blank for none) in Kodi System/Settings/Services/Web server @@ -312,7 +312,7 @@ XBMC password - + @@ -361,7 +361,7 @@ Server/client password - + blank = no authentication @@ -812,7 +812,7 @@ Growl password - + @@ -1759,7 +1759,7 @@ SMTP server password - + (optional) diff --git a/gui/slick/interfaces/default/config_providers.tmpl b/gui/slick/interfaces/default/config_providers.tmpl index 0466eceb..b4459c10 100644 --- a/gui/slick/interfaces/default/config_providers.tmpl +++ b/gui/slick/interfaces/default/config_providers.tmpl @@ -432,7 +432,7 @@ Password: - + diff --git a/gui/slick/interfaces/default/config_search.tmpl b/gui/slick/interfaces/default/config_search.tmpl index 8dc90750..61cb06c3 100755 --- a/gui/slick/interfaces/default/config_search.tmpl +++ b/gui/slick/interfaces/default/config_search.tmpl @@ -280,7 +280,7 @@ SABnzbd password - + (blank for none) @@ -344,7 +344,7 @@ NZBget password - + locate in nzbget.conf (default:tegbzn6789) @@ -499,7 +499,7 @@ Client password - + (blank for none) diff --git a/gui/slick/interfaces/default/restart.tmpl b/gui/slick/interfaces/default/restart.tmpl index 1a77bdf1..9aa75804 100644 --- a/gui/slick/interfaces/default/restart.tmpl +++ b/gui/slick/interfaces/default/restart.tmpl @@ -1,9 +1,12 @@ ## -#set sgHost = $sbHost -#set sgPort = $sbHttpPort -#set sgRoot = $sbRoot -#set sgUseHttps = $sbHttpsEnabled -#set themeSpinner = '-dark' if 'dark' == $sbThemeName else '' +#from sickbeard import WEB_PORT, WEB_ROOT, PID, ENABLE_HTTPS, THEME_NAME +#set sg_host = $getVar('sbHost', 'localhost') +#set sg_port = str($getVar('sbHttpPort', WEB_PORT)) +#set sg_root = $getVar('sbRoot', WEB_ROOT) +#set sg_pid = $getVar('sbPID', str(PID)) +#set sg_use_https = $getVar('sbHttpsEnabled', ENABLE_HTTPS) +#set theme_suffix = ('', '-dark')['dark' == $getVar('sbThemeName', THEME_NAME)] +#set do_shutdown = bool($getVar('shutdown', False)) ## can be None so must enforce bool ## @@ -13,50 +16,50 @@ SickGear - Restarting - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - + - + - - + + - + -Performing #echo ('Restart', 'Shutdown')[$shutdown]# +Performing #echo ('Restart', 'Shutdown')[$do_shutdown]# Waiting for SickGear to shut down: @@ -64,21 +67,21 @@ body{padding-top:0 !important}.sglogo{display:block;width:138px;height:74px;marg -#if not $shutdown +#if not $do_shutdown Waiting for SickGear to start up: #end if -#if not $shutdown +#if not $do_shutdown Waiting for SickGear home page: #end if -#if not $shutdown +#if not $do_shutdown Error: The restart timed out, perhaps something prevented SickGear from starting ? #end if diff --git a/sickbeard/logger.py b/sickbeard/logger.py index b10e6f28..49ac1515 100644 --- a/sickbeard/logger.py +++ b/sickbeard/logger.py @@ -299,10 +299,9 @@ class TimedCompressedRotatingFileHandler(TimedRotatingFileHandler): @staticmethod def delete_logfile(filepath): - from sickbeard import encodingKludge - if encodingKludge.ek(os.path.exists, filepath): + if os.path.exists(filepath): if sickbeard.TRASH_ROTATE_LOGS: - encodingKludge.ek(send2trash, filepath) + send2trash(filepath) else: sickbeard.helpers.remove_file_failed(filepath) diff --git a/sickbeard/providers/generic.py b/sickbeard/providers/generic.py index c1467fe9..a425e3f0 100644 --- a/sickbeard/providers/generic.py +++ b/sickbeard/providers/generic.py @@ -952,13 +952,16 @@ class TorrentProvider(object, GenericProvider): url_list = ['%s/' % x.rstrip('/') for x in url_list] last_url, expire = sickbeard.PROVIDER_HOMES.get(self.get_id(), ('', None)) if 'site down' == last_url: - if expire and (expire > int(time.time())): + if expire and (expire > int(time.time())) or not self.enabled: return None elif last_url: last_url = last_url.replace('getrss.php', '/') # correct develop typo after a network outage (0.11>0.12) last_url in url_list and url_list.remove(last_url) url_list.insert(0, last_url) + if not self.enabled: + return last_url + for cur_url in url_list: if not self.is_valid_mod(cur_url): return None diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 254f4aaf..59a045be 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -76,35 +76,22 @@ except ImportError: class PageTemplate(Template): - def __init__(self, headers, *args, **KWs): - KWs['file'] = os.path.join(sickbeard.PROG_DIR, 'gui/' + sickbeard.GUI_NAME + '/interfaces/default/', - KWs['file']) - super(PageTemplate, self).__init__(*args, **KWs) + def __init__(self, headers, *args, **kwargs): - self.sbRoot = sickbeard.WEB_ROOT + self.sbHost = (re.match('(?msx)^' + (('[^:]+', '\[.*\]')['[' == headers['Host'][0]]), headers['Host']).group(0), + headers.get('X-Forwarded-Host', ''))['X-Forwarded-Host' in headers] self.sbHttpPort = sickbeard.WEB_PORT - self.sbHttpsPort = sickbeard.WEB_PORT - self.sbHttpsEnabled = sickbeard.ENABLE_HTTPS + self.sbHttpsPort = (self.sbHttpPort, headers.get('X-Forwarded-Port', ''))['X-Forwarded-Port' in headers] + self.sbRoot = sickbeard.WEB_ROOT + self.sbHttpsEnabled = (sickbeard.ENABLE_HTTPS, 'https' == headers.get('X-Forwarded-Proto', ''))[ + 'X-Forwarded-Proto' in headers] self.sbHandleReverseProxy = sickbeard.HANDLE_REVERSE_PROXY self.sbThemeName = sickbeard.THEME_NAME - if headers['Host'][0] == '[': - self.sbHost = re.match('^\[.*\]', headers['Host'], re.X | re.M | re.S).group(0) - else: - self.sbHost = re.match('^[^:]+', headers['Host'], re.X | re.M | re.S).group(0) - - if 'X-Forwarded-Host' in headers: - self.sbHost = headers['X-Forwarded-Host'] - if 'X-Forwarded-Port' in headers: - sbHttpPort = headers['X-Forwarded-Port'] - self.sbHttpsPort = sbHttpPort - if 'X-Forwarded-Proto' in headers: - self.sbHttpsEnabled = True if headers['X-Forwarded-Proto'] == 'https' else False - - logPageTitle = 'Logs & Errors' + log_page_title = 'Logs & Errors' if len(classes.ErrorViewer.errors): - logPageTitle += ' (' + str(len(classes.ErrorViewer.errors)) + ')' - self.logPageTitle = logPageTitle + log_page_title += ' (%s)' % len(classes.ErrorViewer.errors) + self.logPageTitle = log_page_title self.sbPID = str(sickbeard.PID) self.menu = [ {'title': 'Home', 'key': 'home'}, @@ -112,9 +99,13 @@ class PageTemplate(Template): {'title': 'History', 'key': 'history'}, {'title': 'Manage', 'key': 'manage'}, {'title': 'Config', 'key': 'config'}, - {'title': logPageTitle, 'key': 'errorlogs'}, + {'title': log_page_title, 'key': 'errorlogs'}, ] + kwargs['file'] = os.path.join(sickbeard.PROG_DIR, 'gui/%s/interfaces/default/' % + sickbeard.GUI_NAME, kwargs['file']) + super(PageTemplate, self).__init__(*args, **kwargs) + def compile(self, *args, **kwargs): if not os.path.exists(os.path.join(sickbeard.CACHE_DIR, 'cheetah')): os.mkdir(os.path.join(sickbeard.CACHE_DIR, 'cheetah'))
blank for none
(blank for none)
in Kodi System/Settings/Services/Web server
blank = no authentication
(optional)
locate in nzbget.conf (default:tegbzn6789)