diff --git a/CHANGES.md b/CHANGES.md index 68bfe3c2..ad7e3bf0 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,20 +1,24 @@ ### 0.x.x (2014-11-xx xx:xx:xx UTC) * Change footer stats to not add newlines when copy/pasting from them -* Remove redundant references from Config / Help & Info +* Remove redundant references from Config/Help & Info * Fix poster preview on small poster layout -* Change overhaul Config Anime to be in line with General Configuration +* Change overhaul Config/Anime to be in line with General Configuration * Remove output of source code line when warnings highlight libraries not used with IMDb * Add dropdown on Add Trending Shows to display all shows, shows not in library, or shows in library * Change Help and Info icon sprites to color and text of Arguments if unused * Change sharper looking heart image on the Add Show page -* Change Add Show on Add Trending Show Page to use the full Add New Show flow +* Change Add Show on Add Trending Show page to use the full Add New Show flow * Fix adding shows with titles that contain "&" on Add Trending Show page -* Fix unset vars on Add New Shows Page used in the Add Existing Shows context +* Fix unset vars on Add New Shows page used in the Add Existing Shows context * Remove unneeded datetime convert from Coming Episodes page * Fix the log output of the limited backlog search for episodes missed -* Remove unsupported t411 provider -* Remove obsolete Animezb provider +* Remove unsupported t411 search provider +* Remove obsolete Animezb search provider +* Add option to treat anime releases that lack a quality tag as HDTV instead of "unknown" + +[develop changelog] +* Change descriptions and layout on Config/Anime page ### 0.3.0 (2014-11-12 14:30:00 UTC) diff --git a/gui/slick/interfaces/default/config_anime.tmpl b/gui/slick/interfaces/default/config_anime.tmpl index bb8b600d..d3d8a437 100644 --- a/gui/slick/interfaces/default/config_anime.tmpl +++ b/gui/slick/interfaces/default/config_anime.tmpl @@ -2,7 +2,7 @@ #from sickbeard.helpers import anon_url #set global $title = 'Config - Anime' -#set global $header = 'Anime Configuration' +#set global $header = 'Anime' #set global $sbPath = '../..' @@ -25,16 +25,48 @@
+
+ +
+

Misc

+

User interface and general configuration.

+
+ +
+
+ +
+ +
+ +
+ + +
+
+
AniDB

AniDB

-

Keep track of your anime downloads with AniDB

+

Manage anime releases with AniDB.

@@ -43,7 +75,7 @@ Enable -

use data from AniDB

+

fetch data for scene exceptions (alternative release names) and available 'release groups' per show

@@ -82,27 +114,6 @@
-
- -
-

User Interface

-

Change how anime appears on the home page.

-
- -
-
- -
- - -
-


diff --git a/sickbeard/__init__.py b/sickbeard/__init__.py index 94e62a66..75170f5c 100755 --- a/sickbeard/__init__.py +++ b/sickbeard/__init__.py @@ -346,6 +346,7 @@ ANIDB_PASSWORD = None ANIDB_USE_MYLIST = False ADBA_CONNECTION = None ANIME_SPLIT_HOME = False +ANIME_TREAT_AS_HDTV = False USE_SYNOINDEX = False @@ -504,7 +505,7 @@ def initialize(consoleLogging=True): USE_FAILED_DOWNLOADS, DELETE_FAILED, ANON_REDIRECT, LOCALHOST_IP, TMDB_API_KEY, DEBUG, PROXY_SETTING, PROXY_INDEXERS, \ AUTOPOSTPROCESSER_FREQUENCY, DEFAULT_AUTOPOSTPROCESSER_FREQUENCY, MIN_AUTOPOSTPROCESSER_FREQUENCY, \ ANIME_DEFAULT, NAMING_ANIME, ANIMESUPPORT, USE_ANIDB, ANIDB_USERNAME, ANIDB_PASSWORD, ANIDB_USE_MYLIST, \ - ANIME_SPLIT_HOME, SCENE_DEFAULT, BACKLOG_DAYS + ANIME_SPLIT_HOME, SCENE_DEFAULT, BACKLOG_DAYS, ANIME_TREAT_AS_HDTV if __INITIALIZED__: return False @@ -928,6 +929,7 @@ def initialize(consoleLogging=True): ANIDB_USE_MYLIST = bool(check_setting_int(CFG, 'ANIDB', 'anidb_use_mylist', 0)) ANIME_SPLIT_HOME = bool(check_setting_int(CFG, 'ANIME', 'anime_split_home', 0)) + ANIME_TREAT_AS_HDTV = bool(check_setting_int(CFG, 'ANIME', 'anime_treat_as_hdtv', 0)) METADATA_XBMC = check_setting_str(CFG, 'General', 'metadata_xbmc', '0|0|0|0|0|0|0|0|0|0') METADATA_XBMC_12PLUS = check_setting_str(CFG, 'General', 'metadata_xbmc_12plus', '0|0|0|0|0|0|0|0|0|0') @@ -1794,6 +1796,7 @@ def save_config(): new_config['ANIME'] = {} new_config['ANIME']['anime_split_home'] = int(ANIME_SPLIT_HOME) + new_config['ANIME']['anime_treat_as_hdtv'] = int(ANIME_TREAT_AS_HDTV) new_config.write() diff --git a/sickbeard/common.py b/sickbeard/common.py index 56d8c1c9..d51866cb 100644 --- a/sickbeard/common.py +++ b/sickbeard/common.py @@ -22,6 +22,9 @@ import platform import re import uuid +import logger +import sickbeard + INSTANCE_ID = str(uuid.uuid1()) USER_AGENT = ('SickGear/(' + platform.system() + '; ' + platform.release() + '; ' + INSTANCE_ID + ')') @@ -202,6 +205,10 @@ class Quality: return Quality.HDBLURAY elif blueRayOptions and fullHD and not hdOptions: return Quality.FULLHDBLURAY + elif sickbeard.ANIME_TREAT_AS_HDTV: + logger.log(u'Treating file: ' + name + ' with "unknown" quality as HDTV per user settings', + logger.DEBUG) + return Quality.HDTV else: return Quality.UNKNOWN diff --git a/sickbeard/webserve.py b/sickbeard/webserve.py index 426ceee3..6dce5737 100644 --- a/sickbeard/webserve.py +++ b/sickbeard/webserve.py @@ -2642,7 +2642,7 @@ class ConfigAnime(MainHandler): def saveAnime(self, use_anidb=None, anidb_username=None, anidb_password=None, anidb_use_mylist=None, - split_home=None): + split_home=None, anime_treat_as_hdtv=None): results = [] @@ -2651,6 +2651,7 @@ class ConfigAnime(MainHandler): sickbeard.ANIDB_PASSWORD = anidb_password sickbeard.ANIDB_USE_MYLIST = config.checkbox_to_value(anidb_use_mylist) sickbeard.ANIME_SPLIT_HOME = config.checkbox_to_value(split_home) + sickbeard.ANIME_TREAT_AS_HDTV = config.checkbox_to_value(anime_treat_as_hdtv) sickbeard.save_config()