2014-03-10 05:18:05 +00:00
|
|
|
# Author: Nic Wolfe <nic@wolfeden.ca>
|
|
|
|
# URL: http://code.google.com/p/sickbeard/
|
|
|
|
#
|
2014-11-12 16:43:14 +00:00
|
|
|
# This file is part of SickGear.
|
2014-03-10 05:18:05 +00:00
|
|
|
#
|
2014-11-12 16:43:14 +00:00
|
|
|
# SickGear is free software: you can redistribute it and/or modify
|
2014-03-10 05:18:05 +00:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
2014-11-12 16:43:14 +00:00
|
|
|
# SickGear is distributed in the hope that it will be useful,
|
2014-03-10 05:18:05 +00:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2014-05-23 06:42:11 +00:00
|
|
|
# GNU General Public License for more details.
|
2014-03-10 05:18:05 +00:00
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2014-11-12 16:43:14 +00:00
|
|
|
# along with SickGear. If not, see <http://www.gnu.org/licenses/>.
|
2014-04-23 07:26:10 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
from __future__ import with_statement
|
2016-07-11 14:34:31 +00:00
|
|
|
from threading import Lock
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
import datetime
|
2014-06-30 13:18:02 +00:00
|
|
|
import os
|
|
|
|
import re
|
2016-07-11 14:34:31 +00:00
|
|
|
import signal
|
|
|
|
import socket
|
|
|
|
import webbrowser
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
# apparently py2exe won't build these unless they're imported somewhere
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
import ast
|
2015-02-06 11:39:10 +00:00
|
|
|
import base64
|
2016-07-11 14:34:31 +00:00
|
|
|
import os.path
|
|
|
|
import sys
|
|
|
|
import uuid
|
|
|
|
|
2015-06-04 13:36:38 +00:00
|
|
|
sys.path.insert(1, os.path.abspath('../lib'))
|
2016-07-11 14:34:31 +00:00
|
|
|
from sickbeard import helpers, encodingKludge as ek
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
from sickbeard import db, image_cache, logger, naming, metadata, providers, scene_exceptions, scene_numbering, \
|
2015-09-18 00:06:34 +00:00
|
|
|
scheduler, auto_post_processer, search_queue, search_propers, search_recent, search_backlog, \
|
2016-10-04 14:05:14 +00:00
|
|
|
show_queue, show_updater, subtitles, traktChecker, version_checker, indexermapper, classes
|
2015-09-18 00:06:34 +00:00
|
|
|
from sickbeard.config import CheckSection, check_setting_int, check_setting_str, ConfigMigrator, minimax
|
|
|
|
from sickbeard.common import SD, SKIPPED
|
|
|
|
from sickbeard.databases import mainDB, cache_db, failed_db
|
2016-07-11 14:34:31 +00:00
|
|
|
from sickbeard.exceptions import ex
|
|
|
|
from sickbeard.providers.generic import GenericProvider
|
2015-12-16 23:35:39 +00:00
|
|
|
from indexers.indexer_config import INDEXER_TVDB
|
2014-03-25 05:57:24 +00:00
|
|
|
from indexers.indexer_api import indexerApi
|
2015-09-06 02:56:09 +00:00
|
|
|
from indexers.indexer_exceptions import indexer_shownotfound, indexer_exception, indexer_error, \
|
|
|
|
indexer_episodenotfound, indexer_attributenotfound, indexer_seasonnotfound, indexer_userabort, indexerExcepts
|
2016-02-19 17:38:38 +00:00
|
|
|
from lib.adba.aniDBerrors import (AniDBError, AniDBBannedError)
|
2014-03-10 05:18:05 +00:00
|
|
|
from lib.configobj import ConfigObj
|
2015-11-19 22:05:19 +00:00
|
|
|
from lib.libtrakt import TraktAPI
|
|
|
|
import trakt_helpers
|
2016-09-04 20:00:44 +00:00
|
|
|
import threading
|
2014-05-13 15:44:31 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
PID = None
|
|
|
|
|
|
|
|
CFG = None
|
|
|
|
CONFIG_FILE = None
|
|
|
|
|
|
|
|
# This is the version of the config we EXPECT to find
|
2015-11-19 22:05:19 +00:00
|
|
|
CONFIG_VERSION = 14
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
# Default encryption version (0 for None)
|
|
|
|
ENCRYPTION_VERSION = 0
|
|
|
|
|
|
|
|
PROG_DIR = '.'
|
|
|
|
MY_FULLNAME = None
|
|
|
|
MY_NAME = None
|
|
|
|
MY_ARGS = []
|
|
|
|
SYS_ENCODING = ''
|
|
|
|
DATA_DIR = ''
|
|
|
|
|
2014-07-08 22:17:34 +00:00
|
|
|
# system events
|
|
|
|
events = None
|
|
|
|
|
2014-12-22 18:30:53 +00:00
|
|
|
recentSearchScheduler = None
|
2014-03-10 05:18:05 +00:00
|
|
|
backlogSearchScheduler = None
|
|
|
|
showUpdateScheduler = None
|
|
|
|
versionCheckScheduler = None
|
|
|
|
showQueueScheduler = None
|
|
|
|
searchQueueScheduler = None
|
|
|
|
properFinderScheduler = None
|
2014-06-11 08:34:28 +00:00
|
|
|
autoPostProcesserScheduler = None
|
2014-03-10 05:18:05 +00:00
|
|
|
subtitlesFinderScheduler = None
|
2016-11-05 20:28:19 +00:00
|
|
|
# traktCheckerScheduler = None
|
2016-09-04 20:00:44 +00:00
|
|
|
background_mapping_task = None
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
showList = None
|
2015-02-15 14:54:08 +00:00
|
|
|
UPDATE_SHOWS_ON_START = False
|
|
|
|
SHOW_UPDATE_HOUR = 3
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2017-02-20 17:24:33 +00:00
|
|
|
# non ui settings
|
|
|
|
REMOVE_FILENAME_CHARS = None
|
|
|
|
IMPORT_DEFAULT_CHECKED_SHOWS = None
|
|
|
|
# /non ui settings
|
|
|
|
|
2014-06-30 13:18:02 +00:00
|
|
|
providerList = []
|
|
|
|
newznabProviderList = []
|
|
|
|
torrentRssProviderList = []
|
|
|
|
metadata_provider_dict = {}
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
NEWEST_VERSION_STRING = None
|
2014-07-27 10:59:21 +00:00
|
|
|
VERSION_NOTIFY = False
|
|
|
|
AUTO_UPDATE = False
|
|
|
|
NOTIFY_ON_UPDATE = False
|
2014-05-04 22:49:40 +00:00
|
|
|
CUR_COMMIT_HASH = None
|
2014-07-31 00:19:44 +00:00
|
|
|
BRANCH = ''
|
2014-10-27 00:29:12 +00:00
|
|
|
GIT_REMOTE = ''
|
2014-08-18 00:15:02 +00:00
|
|
|
CUR_COMMIT_BRANCH = ''
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
INIT_LOCK = Lock()
|
|
|
|
started = False
|
|
|
|
|
|
|
|
ACTUAL_LOG_DIR = None
|
|
|
|
LOG_DIR = None
|
2015-03-24 20:52:23 +00:00
|
|
|
FILE_LOGGING_PRESET = 'DB'
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
SOCKET_TIMEOUT = None
|
|
|
|
|
|
|
|
WEB_PORT = None
|
|
|
|
WEB_LOG = None
|
|
|
|
WEB_ROOT = None
|
|
|
|
WEB_USERNAME = None
|
|
|
|
WEB_PASSWORD = None
|
|
|
|
WEB_HOST = None
|
|
|
|
WEB_IPV6 = None
|
2017-02-06 13:43:06 +00:00
|
|
|
WEB_IPV64 = None
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-07-27 10:59:21 +00:00
|
|
|
HANDLE_REVERSE_PROXY = False
|
2014-04-25 11:11:52 +00:00
|
|
|
PROXY_SETTING = None
|
2014-10-07 12:55:17 +00:00
|
|
|
PROXY_INDEXERS = True
|
2014-04-25 11:11:52 +00:00
|
|
|
|
2016-06-16 23:44:27 +00:00
|
|
|
CPU_PRESET = 'DISABLED'
|
2014-05-17 11:40:26 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
ANON_REDIRECT = None
|
|
|
|
|
|
|
|
USE_API = False
|
|
|
|
API_KEY = None
|
|
|
|
|
|
|
|
ENABLE_HTTPS = False
|
|
|
|
HTTPS_CERT = None
|
|
|
|
HTTPS_KEY = None
|
|
|
|
|
2014-07-27 10:59:21 +00:00
|
|
|
LAUNCH_BROWSER = False
|
2014-03-10 05:18:05 +00:00
|
|
|
CACHE_DIR = None
|
|
|
|
ACTUAL_CACHE_DIR = None
|
2016-02-06 18:57:19 +00:00
|
|
|
ZONEINFO_DIR = None
|
2014-03-10 05:18:05 +00:00
|
|
|
ROOT_DIRS = None
|
2014-11-05 05:36:16 +00:00
|
|
|
TRASH_REMOVE_SHOW = False
|
|
|
|
TRASH_ROTATE_LOGS = False
|
2014-11-22 17:02:22 +00:00
|
|
|
HOME_SEARCH_FOCUS = True
|
2014-07-27 10:59:21 +00:00
|
|
|
SORT_ARTICLE = False
|
2014-04-28 22:22:44 +00:00
|
|
|
DEBUG = False
|
2015-04-07 03:10:50 +00:00
|
|
|
SHOW_TAGS = []
|
2016-11-05 20:28:19 +00:00
|
|
|
SHOW_TAG_DEFAULT = ''
|
2015-04-07 03:10:50 +00:00
|
|
|
SHOWLIST_TAGVIEW = ''
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
METADATA_XBMC = None
|
|
|
|
METADATA_XBMC_12PLUS = None
|
|
|
|
METADATA_MEDIABROWSER = None
|
|
|
|
METADATA_PS3 = None
|
|
|
|
METADATA_WDTV = None
|
|
|
|
METADATA_TIVO = None
|
2014-05-11 23:15:24 +00:00
|
|
|
METADATA_MEDE8ER = None
|
2015-02-25 12:33:40 +00:00
|
|
|
METADATA_KODI = None
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
QUALITY_DEFAULT = None
|
|
|
|
STATUS_DEFAULT = None
|
2015-03-10 00:13:58 +00:00
|
|
|
WANTED_BEGIN_DEFAULT = None
|
|
|
|
WANTED_LATEST_DEFAULT = None
|
2014-07-27 10:59:21 +00:00
|
|
|
FLATTEN_FOLDERS_DEFAULT = False
|
|
|
|
SUBTITLES_DEFAULT = False
|
2014-04-27 08:17:28 +00:00
|
|
|
INDEXER_DEFAULT = None
|
2014-05-21 18:17:52 +00:00
|
|
|
INDEXER_TIMEOUT = None
|
2014-07-27 10:59:21 +00:00
|
|
|
SCENE_DEFAULT = False
|
|
|
|
ANIME_DEFAULT = False
|
2015-03-14 02:48:38 +00:00
|
|
|
USE_IMDB_INFO = True
|
2016-04-19 22:28:44 +00:00
|
|
|
IMDB_ACCOUNTS = []
|
|
|
|
IMDB_DEFAULT_LIST_ID = '64552276'
|
|
|
|
IMDB_DEFAULT_LIST_NAME = 'SickGear'
|
2014-06-30 13:18:02 +00:00
|
|
|
PROVIDER_ORDER = []
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
PROVIDER_HOMES = {}
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-07-27 10:59:21 +00:00
|
|
|
NAMING_MULTI_EP = False
|
2014-09-28 09:20:42 +00:00
|
|
|
NAMING_ANIME_MULTI_EP = False
|
2014-03-10 05:18:05 +00:00
|
|
|
NAMING_PATTERN = None
|
|
|
|
NAMING_ABD_PATTERN = None
|
2014-07-27 10:59:21 +00:00
|
|
|
NAMING_CUSTOM_ABD = False
|
2014-04-28 09:15:29 +00:00
|
|
|
NAMING_SPORTS_PATTERN = None
|
2014-07-27 10:59:21 +00:00
|
|
|
NAMING_CUSTOM_SPORTS = False
|
2014-09-28 09:20:42 +00:00
|
|
|
NAMING_ANIME_PATTERN = None
|
|
|
|
NAMING_CUSTOM_ANIME = False
|
2014-03-10 05:18:05 +00:00
|
|
|
NAMING_FORCE_FOLDERS = False
|
2014-07-27 10:59:21 +00:00
|
|
|
NAMING_STRIP_YEAR = False
|
2014-05-26 06:29:22 +00:00
|
|
|
NAMING_ANIME = None
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-07-27 10:59:21 +00:00
|
|
|
USE_NZBS = False
|
|
|
|
USE_TORRENTS = False
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
NZB_METHOD = None
|
|
|
|
NZB_DIR = None
|
|
|
|
USENET_RETENTION = None
|
|
|
|
TORRENT_METHOD = None
|
|
|
|
TORRENT_DIR = None
|
2014-07-27 10:59:21 +00:00
|
|
|
DOWNLOAD_PROPERS = False
|
2014-05-14 22:23:59 +00:00
|
|
|
CHECK_PROPERS_INTERVAL = None
|
2017-02-15 12:27:21 +00:00
|
|
|
PROPERS_WEBDL_ONEGRP = True
|
2014-07-27 10:59:21 +00:00
|
|
|
ALLOW_HIGH_PRIORITY = False
|
2016-11-05 20:28:19 +00:00
|
|
|
NEWZNAB_DATA = ''
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-05-21 20:26:24 +00:00
|
|
|
AUTOPOSTPROCESSER_FREQUENCY = None
|
2016-11-05 20:28:19 +00:00
|
|
|
RECENTSEARCH_FREQUENCY = 0
|
2014-04-26 21:24:29 +00:00
|
|
|
UPDATE_FREQUENCY = None
|
2014-12-22 18:30:53 +00:00
|
|
|
RECENTSEARCH_STARTUP = False
|
2014-09-15 09:23:11 +00:00
|
|
|
BACKLOG_FREQUENCY = None
|
2016-10-26 00:36:13 +00:00
|
|
|
BACKLOG_NOFULL = False
|
2014-04-26 21:24:29 +00:00
|
|
|
|
2014-09-15 09:23:11 +00:00
|
|
|
DEFAULT_AUTOPOSTPROCESSER_FREQUENCY = 10
|
2014-12-22 18:30:53 +00:00
|
|
|
DEFAULT_RECENTSEARCH_FREQUENCY = 40
|
2014-09-15 09:23:11 +00:00
|
|
|
DEFAULT_BACKLOG_FREQUENCY = 21
|
|
|
|
DEFAULT_UPDATE_FREQUENCY = 1
|
|
|
|
|
2014-05-21 20:26:24 +00:00
|
|
|
MIN_AUTOPOSTPROCESSER_FREQUENCY = 1
|
2014-12-22 18:30:53 +00:00
|
|
|
MIN_RECENTSEARCH_FREQUENCY = 10
|
2016-09-04 20:00:44 +00:00
|
|
|
MIN_BACKLOG_FREQUENCY = 7
|
|
|
|
MAX_BACKLOG_FREQUENCY = 42
|
2014-04-27 12:22:48 +00:00
|
|
|
MIN_UPDATE_FREQUENCY = 1
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-09-15 08:57:50 +00:00
|
|
|
BACKLOG_DAYS = 7
|
2015-04-05 18:12:15 +00:00
|
|
|
SEARCH_UNAIRED = False
|
2016-09-04 20:00:44 +00:00
|
|
|
UNAIRED_RECENT_SEARCH_ONLY = True
|
2014-09-15 08:57:50 +00:00
|
|
|
|
2014-07-27 10:59:21 +00:00
|
|
|
ADD_SHOWS_WO_DIR = False
|
|
|
|
CREATE_MISSING_SHOW_DIRS = False
|
2014-03-10 05:18:05 +00:00
|
|
|
RENAME_EPISODES = False
|
2014-05-14 12:33:36 +00:00
|
|
|
AIRDATE_EPISODES = False
|
2014-03-10 05:18:05 +00:00
|
|
|
PROCESS_AUTOMATICALLY = False
|
|
|
|
KEEP_PROCESSED_DIR = False
|
|
|
|
PROCESS_METHOD = None
|
|
|
|
MOVE_ASSOCIATED_FILES = False
|
2014-09-07 10:45:19 +00:00
|
|
|
POSTPONE_IF_SYNC_FILES = True
|
2014-04-06 16:25:46 +00:00
|
|
|
NFO_RENAME = True
|
2014-03-10 05:18:05 +00:00
|
|
|
TV_DOWNLOAD_DIR = None
|
|
|
|
UNPACK = False
|
2014-05-17 22:14:31 +00:00
|
|
|
SKIP_REMOVED_FILES = False
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
SAB_USERNAME = None
|
|
|
|
SAB_PASSWORD = None
|
|
|
|
SAB_APIKEY = None
|
|
|
|
SAB_CATEGORY = None
|
|
|
|
SAB_HOST = ''
|
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
NZBGET_USERNAME = None
|
2014-03-10 05:18:05 +00:00
|
|
|
NZBGET_PASSWORD = None
|
|
|
|
NZBGET_CATEGORY = None
|
|
|
|
NZBGET_HOST = None
|
2014-05-05 22:48:28 +00:00
|
|
|
NZBGET_USE_HTTPS = False
|
2014-08-11 20:07:02 +00:00
|
|
|
NZBGET_PRIORITY = 100
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
TORRENT_USERNAME = None
|
|
|
|
TORRENT_PASSWORD = None
|
|
|
|
TORRENT_HOST = ''
|
|
|
|
TORRENT_PATH = ''
|
2014-05-12 07:05:16 +00:00
|
|
|
TORRENT_SEED_TIME = None
|
2014-03-10 05:18:05 +00:00
|
|
|
TORRENT_PAUSED = False
|
|
|
|
TORRENT_HIGH_BANDWIDTH = False
|
|
|
|
TORRENT_LABEL = ''
|
2014-07-27 10:59:21 +00:00
|
|
|
TORRENT_VERIFY_CERT = False
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-02-19 17:38:38 +00:00
|
|
|
USE_EMBY = False
|
|
|
|
EMBY_UPDATE_LIBRARY = False
|
|
|
|
EMBY_HOST = None
|
|
|
|
EMBY_APIKEY = None
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-02-25 12:33:40 +00:00
|
|
|
USE_KODI = False
|
|
|
|
KODI_ALWAYS_ON = True
|
|
|
|
KODI_NOTIFY_ONSNATCH = False
|
|
|
|
KODI_NOTIFY_ONDOWNLOAD = False
|
|
|
|
KODI_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
KODI_UPDATE_LIBRARY = False
|
|
|
|
KODI_UPDATE_FULL = False
|
|
|
|
KODI_UPDATE_ONLYFIRST = False
|
|
|
|
KODI_HOST = ''
|
|
|
|
KODI_USERNAME = None
|
|
|
|
KODI_PASSWORD = None
|
|
|
|
|
2016-02-19 17:38:38 +00:00
|
|
|
USE_XBMC = False
|
|
|
|
XBMC_ALWAYS_ON = True
|
|
|
|
XBMC_NOTIFY_ONSNATCH = False
|
|
|
|
XBMC_NOTIFY_ONDOWNLOAD = False
|
|
|
|
XBMC_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
XBMC_UPDATE_LIBRARY = False
|
|
|
|
XBMC_UPDATE_FULL = False
|
|
|
|
XBMC_UPDATE_ONLYFIRST = False
|
|
|
|
XBMC_HOST = ''
|
|
|
|
XBMC_USERNAME = None
|
|
|
|
XBMC_PASSWORD = None
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
USE_PLEX = False
|
|
|
|
PLEX_NOTIFY_ONSNATCH = False
|
|
|
|
PLEX_NOTIFY_ONDOWNLOAD = False
|
|
|
|
PLEX_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
PLEX_UPDATE_LIBRARY = False
|
|
|
|
PLEX_SERVER_HOST = None
|
|
|
|
PLEX_HOST = None
|
|
|
|
PLEX_USERNAME = None
|
|
|
|
PLEX_PASSWORD = None
|
|
|
|
|
|
|
|
USE_GROWL = False
|
|
|
|
GROWL_NOTIFY_ONSNATCH = False
|
|
|
|
GROWL_NOTIFY_ONDOWNLOAD = False
|
|
|
|
GROWL_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
GROWL_HOST = ''
|
|
|
|
GROWL_PASSWORD = None
|
|
|
|
|
|
|
|
USE_PROWL = False
|
|
|
|
PROWL_NOTIFY_ONSNATCH = False
|
|
|
|
PROWL_NOTIFY_ONDOWNLOAD = False
|
|
|
|
PROWL_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
PROWL_API = None
|
|
|
|
PROWL_PRIORITY = 0
|
|
|
|
|
|
|
|
USE_TWITTER = False
|
|
|
|
TWITTER_NOTIFY_ONSNATCH = False
|
|
|
|
TWITTER_NOTIFY_ONDOWNLOAD = False
|
|
|
|
TWITTER_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
TWITTER_USERNAME = None
|
|
|
|
TWITTER_PASSWORD = None
|
|
|
|
TWITTER_PREFIX = None
|
|
|
|
|
2014-05-07 14:23:06 +00:00
|
|
|
USE_BOXCAR2 = False
|
|
|
|
BOXCAR2_NOTIFY_ONSNATCH = False
|
|
|
|
BOXCAR2_NOTIFY_ONDOWNLOAD = False
|
|
|
|
BOXCAR2_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
BOXCAR2_ACCESSTOKEN = None
|
2015-02-13 05:28:03 +00:00
|
|
|
BOXCAR2_SOUND = None
|
2014-05-07 14:23:06 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
USE_PUSHOVER = False
|
|
|
|
PUSHOVER_NOTIFY_ONSNATCH = False
|
|
|
|
PUSHOVER_NOTIFY_ONDOWNLOAD = False
|
|
|
|
PUSHOVER_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
PUSHOVER_USERKEY = None
|
2014-06-17 20:37:09 +00:00
|
|
|
PUSHOVER_APIKEY = None
|
2015-02-25 11:30:52 +00:00
|
|
|
PUSHOVER_PRIORITY = 0
|
|
|
|
PUSHOVER_DEVICE = None
|
|
|
|
PUSHOVER_SOUND = None
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_LIBNOTIFY = False
|
|
|
|
LIBNOTIFY_NOTIFY_ONSNATCH = False
|
|
|
|
LIBNOTIFY_NOTIFY_ONDOWNLOAD = False
|
|
|
|
LIBNOTIFY_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
|
|
|
|
USE_NMJ = False
|
|
|
|
NMJ_HOST = None
|
|
|
|
NMJ_DATABASE = None
|
|
|
|
NMJ_MOUNT = None
|
|
|
|
|
2014-05-26 06:29:22 +00:00
|
|
|
USE_ANIDB = False
|
|
|
|
ANIDB_USERNAME = None
|
|
|
|
ANIDB_PASSWORD = None
|
2014-07-27 10:59:21 +00:00
|
|
|
ANIDB_USE_MYLIST = False
|
2014-05-26 06:29:22 +00:00
|
|
|
ADBA_CONNECTION = None
|
2014-11-17 09:32:57 +00:00
|
|
|
ANIME_TREAT_AS_HDTV = False
|
2014-05-26 06:29:22 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
USE_SYNOINDEX = False
|
|
|
|
|
|
|
|
USE_NMJv2 = False
|
|
|
|
NMJv2_HOST = None
|
|
|
|
NMJv2_DATABASE = None
|
|
|
|
NMJv2_DBLOC = None
|
|
|
|
|
|
|
|
USE_SYNOLOGYNOTIFIER = False
|
|
|
|
SYNOLOGYNOTIFIER_NOTIFY_ONSNATCH = False
|
|
|
|
SYNOLOGYNOTIFIER_NOTIFY_ONDOWNLOAD = False
|
|
|
|
SYNOLOGYNOTIFIER_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
|
|
|
|
USE_TRAKT = False
|
|
|
|
TRAKT_REMOVE_WATCHLIST = False
|
2014-08-08 23:07:17 +00:00
|
|
|
TRAKT_REMOVE_SERIESLIST = False
|
2014-03-10 05:18:05 +00:00
|
|
|
TRAKT_USE_WATCHLIST = False
|
|
|
|
TRAKT_METHOD_ADD = 0
|
|
|
|
TRAKT_START_PAUSED = False
|
2014-06-29 05:54:29 +00:00
|
|
|
TRAKT_SYNC = False
|
2014-07-24 04:44:11 +00:00
|
|
|
TRAKT_DEFAULT_INDEXER = None
|
2015-11-19 22:05:19 +00:00
|
|
|
TRAKT_UPDATE_COLLECTION = {}
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_PYTIVO = False
|
|
|
|
PYTIVO_NOTIFY_ONSNATCH = False
|
|
|
|
PYTIVO_NOTIFY_ONDOWNLOAD = False
|
|
|
|
PYTIVO_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
PYTIVO_UPDATE_LIBRARY = False
|
|
|
|
PYTIVO_HOST = ''
|
|
|
|
PYTIVO_SHARE_NAME = ''
|
|
|
|
PYTIVO_TIVO_NAME = ''
|
|
|
|
|
|
|
|
USE_NMA = False
|
|
|
|
NMA_NOTIFY_ONSNATCH = False
|
|
|
|
NMA_NOTIFY_ONDOWNLOAD = False
|
|
|
|
NMA_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
NMA_API = None
|
|
|
|
NMA_PRIORITY = 0
|
|
|
|
|
|
|
|
USE_PUSHALOT = False
|
|
|
|
PUSHALOT_NOTIFY_ONSNATCH = False
|
|
|
|
PUSHALOT_NOTIFY_ONDOWNLOAD = False
|
|
|
|
PUSHALOT_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
PUSHALOT_AUTHORIZATIONTOKEN = None
|
|
|
|
|
|
|
|
USE_PUSHBULLET = False
|
|
|
|
PUSHBULLET_NOTIFY_ONSNATCH = False
|
|
|
|
PUSHBULLET_NOTIFY_ONDOWNLOAD = False
|
|
|
|
PUSHBULLET_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
2015-02-17 06:39:35 +00:00
|
|
|
PUSHBULLET_ACCESS_TOKEN = None
|
|
|
|
PUSHBULLET_DEVICE_IDEN = None
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_EMAIL = False
|
2016-01-17 18:50:26 +00:00
|
|
|
EMAIL_OLD_SUBJECTS = None
|
2014-03-10 05:18:05 +00:00
|
|
|
EMAIL_NOTIFY_ONSNATCH = False
|
|
|
|
EMAIL_NOTIFY_ONDOWNLOAD = False
|
|
|
|
EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD = False
|
|
|
|
EMAIL_HOST = None
|
|
|
|
EMAIL_PORT = 25
|
|
|
|
EMAIL_TLS = False
|
|
|
|
EMAIL_USER = None
|
|
|
|
EMAIL_PASSWORD = None
|
|
|
|
EMAIL_FROM = None
|
|
|
|
EMAIL_LIST = None
|
|
|
|
|
|
|
|
GUI_NAME = None
|
2015-02-25 00:34:26 +00:00
|
|
|
DEFAULT_HOME = None
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
FANART_LIMIT = None
|
|
|
|
FANART_PANEL = None
|
|
|
|
FANART_RATINGS = {}
|
2014-03-10 05:18:05 +00:00
|
|
|
HOME_LAYOUT = None
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
POSTER_SORTBY = None
|
|
|
|
POSTER_SORTDIR = None
|
|
|
|
DISPLAY_SHOW_VIEWMODE = 0
|
|
|
|
DISPLAY_SHOW_BACKGROUND = False
|
|
|
|
DISPLAY_SHOW_BACKGROUND_TRANSLUCENT = False
|
|
|
|
DISPLAY_SHOW_VIEWART = 0
|
|
|
|
DISPLAY_SHOW_MINIMUM = True
|
2014-07-27 10:59:21 +00:00
|
|
|
DISPLAY_SHOW_SPECIALS = False
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
EPISODE_VIEW_VIEWMODE = 0
|
|
|
|
EPISODE_VIEW_BACKGROUND = False
|
|
|
|
EPISODE_VIEW_BACKGROUND_TRANSLUCENT = False
|
2014-12-16 14:14:54 +00:00
|
|
|
EPISODE_VIEW_LAYOUT = None
|
|
|
|
EPISODE_VIEW_SORT = None
|
|
|
|
EPISODE_VIEW_DISPLAY_PAUSED = False
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
EPISODE_VIEW_POSTERS = True
|
2014-12-16 14:14:54 +00:00
|
|
|
EPISODE_VIEW_MISSED_RANGE = None
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
HISTORY_LAYOUT = None
|
|
|
|
|
2014-05-23 15:20:44 +00:00
|
|
|
FUZZY_DATING = False
|
|
|
|
TRIM_ZERO = False
|
2014-03-10 05:18:05 +00:00
|
|
|
DATE_PRESET = None
|
|
|
|
TIME_PRESET = None
|
|
|
|
TIME_PRESET_W_SECONDS = None
|
2014-05-17 07:30:21 +00:00
|
|
|
TIMEZONE_DISPLAY = None
|
2014-10-08 06:00:48 +00:00
|
|
|
THEME_NAME = None
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_SUBTITLES = False
|
2014-06-30 13:18:02 +00:00
|
|
|
SUBTITLES_LANGUAGES = []
|
2014-03-10 05:18:05 +00:00
|
|
|
SUBTITLES_DIR = ''
|
2014-06-30 13:18:02 +00:00
|
|
|
SUBTITLES_SERVICES_LIST = []
|
|
|
|
SUBTITLES_SERVICES_ENABLED = []
|
2014-03-10 05:18:05 +00:00
|
|
|
SUBTITLES_HISTORY = False
|
|
|
|
SUBTITLES_FINDER_FREQUENCY = 1
|
|
|
|
|
|
|
|
USE_FAILED_DOWNLOADS = False
|
|
|
|
DELETE_FAILED = False
|
|
|
|
|
2014-06-30 13:18:02 +00:00
|
|
|
EXTRA_SCRIPTS = []
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
GIT_PATH = None
|
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
IGNORE_WORDS = 'core2hd, hevc, MrLss, reenc, x265, danish, deutsch, dutch, flemish, french, ' + \
|
|
|
|
'german, italian, nordic, norwegian, portuguese, spanish, swedish, turkish'
|
2015-06-07 22:02:01 +00:00
|
|
|
REQUIRE_WORDS = ''
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
CALENDAR_UNPROTECTED = False
|
|
|
|
|
2014-03-13 12:20:45 +00:00
|
|
|
TMDB_API_KEY = 'edc5f123313769de83a71e157758030b'
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
FANART_API_KEY = '3728ca1a2a937ba0c93b6e63cc86cecb'
|
2015-09-21 15:46:04 +00:00
|
|
|
|
|
|
|
# to switch between staging and production TRAKT environment
|
|
|
|
TRAKT_STAGING = False
|
|
|
|
|
|
|
|
TRAKT_TIMEOUT = 60
|
|
|
|
TRAKT_VERIFY = True
|
|
|
|
TRAKT_CONNECTED_ACCOUNT = None
|
2015-11-19 22:05:19 +00:00
|
|
|
TRAKT_ACCOUNTS = {}
|
2016-01-08 20:57:07 +00:00
|
|
|
TRAKT_MRU = ''
|
2015-09-21 15:46:04 +00:00
|
|
|
|
|
|
|
if TRAKT_STAGING:
|
|
|
|
# staging trakt values:
|
|
|
|
TRAKT_CLIENT_ID = '2aae3052f90b14235d184cc8f709b12b4fd8ae35f339a060a890c70db92be87a'
|
|
|
|
TRAKT_CLIENT_SECRET = '900e03471220503843d4a856bfbef17080cddb630f2b7df6a825e96e3ff3c39e'
|
|
|
|
TRAKT_PIN_URL = 'https://staging.trakt.tv/pin/638'
|
|
|
|
TRAKT_BASE_URL = 'http://api.staging.trakt.tv/'
|
|
|
|
else:
|
|
|
|
# production trakt values:
|
|
|
|
TRAKT_CLIENT_ID = 'f1c453c67d81f1307f9118172c408a883eb186b094d5ea33080d59ddedb7fc7c'
|
|
|
|
TRAKT_CLIENT_SECRET = '12efb6fb6e863a08934d9904032a90008325df7e23514650cade55e7e7c118c5'
|
|
|
|
TRAKT_PIN_URL = 'https://trakt.tv/pin/6314'
|
2016-06-30 19:15:09 +00:00
|
|
|
TRAKT_BASE_URL = 'https://api.trakt.tv/'
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-02-06 11:39:10 +00:00
|
|
|
COOKIE_SECRET = base64.b64encode(uuid.uuid4().bytes + uuid.uuid4().bytes)
|
|
|
|
|
2016-10-04 14:05:14 +00:00
|
|
|
CACHE_IMAGE_URL_LIST = classes.ImageUrlList()
|
|
|
|
|
2014-06-30 13:18:02 +00:00
|
|
|
__INITIALIZED__ = False
|
2014-07-27 10:59:21 +00:00
|
|
|
|
2015-07-13 09:39:20 +00:00
|
|
|
|
2014-09-15 09:23:11 +00:00
|
|
|
def get_backlog_cycle_time():
|
2014-12-22 18:30:53 +00:00
|
|
|
cycletime = RECENTSEARCH_FREQUENCY * 2 + 7
|
2014-09-15 09:23:11 +00:00
|
|
|
return max([cycletime, 720])
|
2014-07-27 10:59:21 +00:00
|
|
|
|
2015-07-13 09:39:20 +00:00
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
def initialize(console_logging=True):
|
2014-03-10 05:18:05 +00:00
|
|
|
with INIT_LOCK:
|
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
# Misc
|
|
|
|
global __INITIALIZED__, showList, providerList, newznabProviderList, torrentRssProviderList, \
|
|
|
|
WEB_HOST, WEB_ROOT, ACTUAL_CACHE_DIR, CACHE_DIR, ZONEINFO_DIR, ADD_SHOWS_WO_DIR, CREATE_MISSING_SHOW_DIRS, \
|
2017-02-20 17:24:33 +00:00
|
|
|
RECENTSEARCH_STARTUP, NAMING_FORCE_FOLDERS, SOCKET_TIMEOUT, DEBUG, INDEXER_DEFAULT, CONFIG_FILE, \
|
|
|
|
REMOVE_FILENAME_CHARS, IMPORT_DEFAULT_CHECKED_SHOWS
|
2016-11-05 20:28:19 +00:00
|
|
|
# Schedulers
|
|
|
|
# global traktCheckerScheduler
|
|
|
|
global recentSearchScheduler, backlogSearchScheduler, showUpdateScheduler, \
|
|
|
|
versionCheckScheduler, showQueueScheduler, searchQueueScheduler, \
|
|
|
|
properFinderScheduler, autoPostProcesserScheduler, subtitlesFinderScheduler, background_mapping_task
|
|
|
|
# Add Show Defaults
|
|
|
|
global STATUS_DEFAULT, QUALITY_DEFAULT, SHOW_TAG_DEFAULT, FLATTEN_FOLDERS_DEFAULT, SUBTITLES_DEFAULT, \
|
|
|
|
WANTED_BEGIN_DEFAULT, WANTED_LATEST_DEFAULT, SCENE_DEFAULT, ANIME_DEFAULT
|
|
|
|
# Post processing
|
|
|
|
global KEEP_PROCESSED_DIR
|
|
|
|
# Views
|
|
|
|
global GUI_NAME, HOME_LAYOUT, POSTER_SORTBY, POSTER_SORTDIR, DISPLAY_SHOW_SPECIALS, \
|
|
|
|
EPISODE_VIEW_LAYOUT, EPISODE_VIEW_SORT, EPISODE_VIEW_DISPLAY_PAUSED, \
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
EPISODE_VIEW_MISSED_RANGE, EPISODE_VIEW_POSTERS, FANART_PANEL, FANART_RATINGS, \
|
|
|
|
EPISODE_VIEW_VIEWMODE, EPISODE_VIEW_BACKGROUND, EPISODE_VIEW_BACKGROUND_TRANSLUCENT, \
|
|
|
|
DISPLAY_SHOW_VIEWMODE, DISPLAY_SHOW_BACKGROUND, DISPLAY_SHOW_BACKGROUND_TRANSLUCENT, \
|
|
|
|
DISPLAY_SHOW_VIEWART, DISPLAY_SHOW_MINIMUM, DISPLAY_SHOW_SPECIALS, HISTORY_LAYOUT
|
2016-11-05 20:28:19 +00:00
|
|
|
# Gen Config/Misc
|
|
|
|
global LAUNCH_BROWSER, UPDATE_SHOWS_ON_START, SHOW_UPDATE_HOUR, \
|
|
|
|
TRASH_REMOVE_SHOW, TRASH_ROTATE_LOGS, ACTUAL_LOG_DIR, LOG_DIR, INDEXER_TIMEOUT, ROOT_DIRS, \
|
|
|
|
VERSION_NOTIFY, AUTO_UPDATE, UPDATE_FREQUENCY, NOTIFY_ON_UPDATE
|
|
|
|
# Gen Config/Interface
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
global THEME_NAME, DEFAULT_HOME, FANART_LIMIT, SHOWLIST_TAGVIEW, SHOW_TAGS, \
|
2016-11-05 20:28:19 +00:00
|
|
|
HOME_SEARCH_FOCUS, USE_IMDB_INFO, IMDB_ACCOUNTS, SORT_ARTICLE, FUZZY_DATING, TRIM_ZERO, \
|
|
|
|
DATE_PRESET, TIME_PRESET, TIME_PRESET_W_SECONDS, TIMEZONE_DISPLAY, \
|
|
|
|
WEB_USERNAME, WEB_PASSWORD, CALENDAR_UNPROTECTED, USE_API, API_KEY, WEB_PORT, WEB_LOG, \
|
2017-02-06 13:43:06 +00:00
|
|
|
ENABLE_HTTPS, HTTPS_CERT, HTTPS_KEY, WEB_IPV6, WEB_IPV64, HANDLE_REVERSE_PROXY
|
2016-11-05 20:28:19 +00:00
|
|
|
# Gen Config/Advanced
|
|
|
|
global BRANCH, CUR_COMMIT_BRANCH, GIT_REMOTE, CUR_COMMIT_HASH, GIT_PATH, CPU_PRESET, ANON_REDIRECT, \
|
|
|
|
ENCRYPTION_VERSION, PROXY_SETTING, PROXY_INDEXERS, FILE_LOGGING_PRESET
|
|
|
|
# Search Settings/Episode
|
2017-02-15 12:27:21 +00:00
|
|
|
global DOWNLOAD_PROPERS, PROPERS_WEBDL_ONEGRP, CHECK_PROPERS_INTERVAL, RECENTSEARCH_FREQUENCY, \
|
2016-11-05 20:28:19 +00:00
|
|
|
BACKLOG_DAYS, BACKLOG_NOFULL, BACKLOG_FREQUENCY, USENET_RETENTION, IGNORE_WORDS, REQUIRE_WORDS, \
|
|
|
|
ALLOW_HIGH_PRIORITY, SEARCH_UNAIRED, UNAIRED_RECENT_SEARCH_ONLY
|
|
|
|
# Search Settings/NZB search
|
|
|
|
global USE_NZBS, NZB_METHOD, NZB_DIR, SAB_HOST, SAB_USERNAME, SAB_PASSWORD, SAB_APIKEY, SAB_CATEGORY, \
|
|
|
|
NZBGET_USE_HTTPS, NZBGET_HOST, NZBGET_USERNAME, NZBGET_PASSWORD, NZBGET_CATEGORY, NZBGET_PRIORITY
|
|
|
|
# Search Settings/Torrent search
|
|
|
|
global USE_TORRENTS, TORRENT_METHOD, TORRENT_DIR, TORRENT_HOST, TORRENT_USERNAME, TORRENT_PASSWORD, \
|
|
|
|
TORRENT_LABEL, TORRENT_PATH, TORRENT_SEED_TIME, TORRENT_PAUSED, TORRENT_HIGH_BANDWIDTH, TORRENT_VERIFY_CERT
|
2016-12-18 20:24:18 +00:00
|
|
|
# Media Providers
|
2016-11-05 20:28:19 +00:00
|
|
|
global PROVIDER_ORDER, NEWZNAB_DATA, PROVIDER_HOMES
|
|
|
|
# Subtitles
|
|
|
|
global USE_SUBTITLES, SUBTITLES_LANGUAGES, SUBTITLES_DIR, SUBTITLES_FINDER_FREQUENCY, \
|
|
|
|
SUBTITLES_HISTORY, SUBTITLES_SERVICES_ENABLED, SUBTITLES_SERVICES_LIST
|
|
|
|
# Post Processing/Post-Processing
|
|
|
|
global TV_DOWNLOAD_DIR, PROCESS_METHOD, PROCESS_AUTOMATICALLY, AUTOPOSTPROCESSER_FREQUENCY, \
|
|
|
|
POSTPONE_IF_SYNC_FILES, EXTRA_SCRIPTS, \
|
|
|
|
DEFAULT_AUTOPOSTPROCESSER_FREQUENCY, MIN_AUTOPOSTPROCESSER_FREQUENCY, \
|
|
|
|
UNPACK, SKIP_REMOVED_FILES, MOVE_ASSOCIATED_FILES, NFO_RENAME, RENAME_EPISODES, AIRDATE_EPISODES, \
|
|
|
|
USE_FAILED_DOWNLOADS, DELETE_FAILED
|
|
|
|
# Post Processing/Episode Naming
|
|
|
|
global NAMING_PATTERN, NAMING_MULTI_EP, NAMING_STRIP_YEAR, NAMING_CUSTOM_ABD, NAMING_ABD_PATTERN, \
|
|
|
|
NAMING_CUSTOM_SPORTS, NAMING_SPORTS_PATTERN, \
|
|
|
|
NAMING_CUSTOM_ANIME, NAMING_ANIME_PATTERN, NAMING_ANIME_MULTI_EP, NAMING_ANIME
|
|
|
|
# Post Processing/Metadata
|
|
|
|
global metadata_provider_dict, METADATA_KODI, METADATA_MEDE8ER, METADATA_XBMC, METADATA_MEDIABROWSER, \
|
|
|
|
METADATA_PS3, METADATA_TIVO, METADATA_WDTV, METADATA_XBMC_12PLUS
|
|
|
|
# Notification Settings/HT and NAS
|
|
|
|
global USE_EMBY, EMBY_UPDATE_LIBRARY, EMBY_HOST, EMBY_APIKEY, \
|
|
|
|
USE_KODI, KODI_ALWAYS_ON, KODI_UPDATE_LIBRARY, KODI_UPDATE_FULL, KODI_UPDATE_ONLYFIRST, \
|
|
|
|
KODI_HOST, KODI_USERNAME, KODI_PASSWORD, KODI_NOTIFY_ONSNATCH, \
|
|
|
|
KODI_NOTIFY_ONDOWNLOAD, KODI_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
USE_XBMC, XBMC_ALWAYS_ON, XBMC_NOTIFY_ONSNATCH, XBMC_NOTIFY_ONDOWNLOAD, XBMC_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
XBMC_UPDATE_LIBRARY, XBMC_UPDATE_FULL, XBMC_UPDATE_ONLYFIRST, XBMC_HOST, XBMC_USERNAME, XBMC_PASSWORD, \
|
|
|
|
USE_PLEX, PLEX_USERNAME, PLEX_PASSWORD, PLEX_UPDATE_LIBRARY, PLEX_SERVER_HOST, \
|
|
|
|
PLEX_NOTIFY_ONSNATCH, PLEX_NOTIFY_ONDOWNLOAD, PLEX_NOTIFY_ONSUBTITLEDOWNLOAD, PLEX_HOST, \
|
|
|
|
USE_NMJ, NMJ_HOST, NMJ_DATABASE, NMJ_MOUNT, \
|
|
|
|
USE_NMJv2, NMJv2_HOST, NMJv2_DATABASE, NMJv2_DBLOC, \
|
|
|
|
USE_SYNOINDEX, \
|
|
|
|
USE_SYNOLOGYNOTIFIER, SYNOLOGYNOTIFIER_NOTIFY_ONSNATCH, \
|
|
|
|
SYNOLOGYNOTIFIER_NOTIFY_ONDOWNLOAD, SYNOLOGYNOTIFIER_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
USE_PYTIVO, PYTIVO_HOST, PYTIVO_SHARE_NAME, PYTIVO_TIVO_NAME, \
|
|
|
|
PYTIVO_NOTIFY_ONSNATCH, PYTIVO_NOTIFY_ONDOWNLOAD, PYTIVO_NOTIFY_ONSUBTITLEDOWNLOAD, PYTIVO_UPDATE_LIBRARY
|
|
|
|
# Notification Settings/Devices
|
|
|
|
global USE_GROWL, GROWL_NOTIFY_ONSNATCH, GROWL_NOTIFY_ONDOWNLOAD, GROWL_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
GROWL_HOST, GROWL_PASSWORD, \
|
|
|
|
USE_PROWL, PROWL_NOTIFY_ONSNATCH, PROWL_NOTIFY_ONDOWNLOAD, PROWL_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
PROWL_API, PROWL_PRIORITY, \
|
|
|
|
USE_LIBNOTIFY, LIBNOTIFY_NOTIFY_ONSNATCH, LIBNOTIFY_NOTIFY_ONDOWNLOAD, \
|
|
|
|
LIBNOTIFY_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
USE_PUSHOVER, PUSHOVER_NOTIFY_ONSNATCH, PUSHOVER_NOTIFY_ONDOWNLOAD, PUSHOVER_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
PUSHOVER_USERKEY, PUSHOVER_APIKEY, PUSHOVER_PRIORITY, PUSHOVER_DEVICE, PUSHOVER_SOUND, \
|
|
|
|
USE_BOXCAR2, BOXCAR2_NOTIFY_ONSNATCH, BOXCAR2_NOTIFY_ONDOWNLOAD, BOXCAR2_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
BOXCAR2_ACCESSTOKEN, BOXCAR2_SOUND, \
|
2014-03-25 05:57:24 +00:00
|
|
|
USE_NMA, NMA_NOTIFY_ONSNATCH, NMA_NOTIFY_ONDOWNLOAD, NMA_NOTIFY_ONSUBTITLEDOWNLOAD, NMA_API, NMA_PRIORITY, \
|
2016-11-05 20:28:19 +00:00
|
|
|
USE_PUSHALOT, PUSHALOT_NOTIFY_ONSNATCH, PUSHALOT_NOTIFY_ONDOWNLOAD, \
|
|
|
|
PUSHALOT_NOTIFY_ONSUBTITLEDOWNLOAD, PUSHALOT_AUTHORIZATIONTOKEN, \
|
|
|
|
USE_PUSHBULLET, PUSHBULLET_NOTIFY_ONSNATCH, PUSHBULLET_NOTIFY_ONDOWNLOAD, \
|
|
|
|
PUSHBULLET_NOTIFY_ONSUBTITLEDOWNLOAD, PUSHBULLET_ACCESS_TOKEN, PUSHBULLET_DEVICE_IDEN
|
|
|
|
# Notification Settings/Social
|
|
|
|
global USE_TWITTER, TWITTER_NOTIFY_ONSNATCH, TWITTER_NOTIFY_ONDOWNLOAD, TWITTER_NOTIFY_ONSUBTITLEDOWNLOAD, \
|
|
|
|
TWITTER_USERNAME, TWITTER_PASSWORD, TWITTER_PREFIX, \
|
|
|
|
USE_TRAKT, TRAKT_CONNECTED_ACCOUNT, TRAKT_ACCOUNTS, TRAKT_MRU, TRAKT_VERIFY, \
|
|
|
|
TRAKT_USE_WATCHLIST, TRAKT_REMOVE_WATCHLIST, TRAKT_TIMEOUT, TRAKT_METHOD_ADD, TRAKT_START_PAUSED, \
|
|
|
|
TRAKT_SYNC, TRAKT_DEFAULT_INDEXER, TRAKT_REMOVE_SERIESLIST, TRAKT_UPDATE_COLLECTION, \
|
|
|
|
USE_EMAIL, EMAIL_NOTIFY_ONSNATCH, EMAIL_NOTIFY_ONDOWNLOAD, EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD, EMAIL_FROM, \
|
|
|
|
EMAIL_HOST, EMAIL_PORT, EMAIL_TLS, EMAIL_USER, EMAIL_PASSWORD, EMAIL_LIST, EMAIL_OLD_SUBJECTS
|
|
|
|
# Anime Settings
|
|
|
|
global ANIME_TREAT_AS_HDTV, USE_ANIDB, ANIDB_USERNAME, ANIDB_PASSWORD, ANIDB_USE_MYLIST
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
if __INITIALIZED__:
|
|
|
|
return False
|
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
for stanza in ('General', 'Blackhole', 'SABnzbd', 'NZBget', 'Emby', 'Kodi', 'XBMC', 'PLEX',
|
|
|
|
'Growl', 'Prowl', 'Twitter', 'Boxcar2', 'NMJ', 'NMJv2', 'Synology', 'SynologyNotifier',
|
|
|
|
'pyTivo', 'NMA', 'Pushalot', 'Pushbullet', 'Subtitles'):
|
|
|
|
CheckSection(CFG, stanza)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
update_config = False
|
|
|
|
|
2014-08-18 00:15:02 +00:00
|
|
|
# wanted branch
|
2014-07-29 00:11:16 +00:00
|
|
|
BRANCH = check_setting_str(CFG, 'General', 'branch', '')
|
|
|
|
|
2014-10-27 00:29:12 +00:00
|
|
|
# git_remote
|
|
|
|
GIT_REMOTE = check_setting_str(CFG, 'General', 'git_remote', 'origin')
|
|
|
|
|
2014-08-15 06:54:22 +00:00
|
|
|
# current commit hash
|
|
|
|
CUR_COMMIT_HASH = check_setting_str(CFG, 'General', 'cur_commit_hash', '')
|
|
|
|
|
2014-08-18 00:15:02 +00:00
|
|
|
# current commit branch
|
|
|
|
CUR_COMMIT_BRANCH = check_setting_str(CFG, 'General', 'cur_commit_branch', '')
|
|
|
|
|
2014-07-15 02:00:53 +00:00
|
|
|
ACTUAL_CACHE_DIR = check_setting_str(CFG, 'General', 'cache_dir', 'cache')
|
2014-08-18 00:15:02 +00:00
|
|
|
|
2014-07-15 02:00:53 +00:00
|
|
|
# unless they specify, put the cache dir inside the data dir
|
|
|
|
if not os.path.isabs(ACTUAL_CACHE_DIR):
|
|
|
|
CACHE_DIR = os.path.join(DATA_DIR, ACTUAL_CACHE_DIR)
|
|
|
|
else:
|
|
|
|
CACHE_DIR = ACTUAL_CACHE_DIR
|
|
|
|
|
|
|
|
if not helpers.makeDir(CACHE_DIR):
|
2015-07-13 09:39:20 +00:00
|
|
|
logger.log(u'!!! Creating local cache dir failed, using system default', logger.ERROR)
|
2014-07-15 02:00:53 +00:00
|
|
|
CACHE_DIR = None
|
|
|
|
|
2014-07-27 11:58:14 +00:00
|
|
|
# clean cache folders
|
|
|
|
if CACHE_DIR:
|
|
|
|
helpers.clearCache()
|
2016-02-06 18:57:19 +00:00
|
|
|
ZONEINFO_DIR = ek.ek(os.path.join, CACHE_DIR, 'zoneinfo')
|
|
|
|
if not ek.ek(os.path.isdir, ZONEINFO_DIR) and not helpers.make_dirs(ZONEINFO_DIR):
|
|
|
|
logger.log(u'!!! Creating local zoneinfo dir failed', logger.ERROR)
|
2014-07-27 11:58:14 +00:00
|
|
|
|
2015-03-14 02:48:38 +00:00
|
|
|
THEME_NAME = check_setting_str(CFG, 'GUI', 'theme_name', 'dark')
|
2014-06-11 08:34:28 +00:00
|
|
|
GUI_NAME = check_setting_str(CFG, 'GUI', 'gui_name', 'slick')
|
2015-02-25 00:34:26 +00:00
|
|
|
DEFAULT_HOME = check_setting_str(CFG, 'GUI', 'default_home', 'home')
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
FANART_LIMIT = check_setting_int(CFG, 'GUI', 'fanart_limit', 3)
|
|
|
|
FANART_PANEL = check_setting_str(CFG, 'GUI', 'fanart_panel', 'highlight2')
|
|
|
|
FANART_RATINGS = check_setting_str(CFG, 'GUI', 'fanart_ratings', None)
|
|
|
|
if None is not FANART_RATINGS:
|
|
|
|
FANART_RATINGS = ast.literal_eval(FANART_RATINGS or '{}')
|
|
|
|
else:
|
|
|
|
FANART_RATINGS = ast.literal_eval(check_setting_str(CFG, 'GUI', 'backart_ratings', None) or '{}')
|
|
|
|
update_config |= image_cache.ImageCache().clean_fanart()
|
2015-03-14 02:48:38 +00:00
|
|
|
USE_IMDB_INFO = bool(check_setting_int(CFG, 'GUI', 'use_imdb_info', 1))
|
2016-04-19 22:28:44 +00:00
|
|
|
IMDB_ACCOUNTS = CFG.get('GUI', []).get('imdb_accounts', [IMDB_DEFAULT_LIST_ID, IMDB_DEFAULT_LIST_NAME])
|
2015-03-14 02:48:38 +00:00
|
|
|
HOME_SEARCH_FOCUS = bool(check_setting_int(CFG, 'General', 'home_search_focus', HOME_SEARCH_FOCUS))
|
|
|
|
SORT_ARTICLE = bool(check_setting_int(CFG, 'General', 'sort_article', 0))
|
|
|
|
FUZZY_DATING = bool(check_setting_int(CFG, 'GUI', 'fuzzy_dating', 0))
|
|
|
|
TRIM_ZERO = bool(check_setting_int(CFG, 'GUI', 'trim_zero', 0))
|
|
|
|
DATE_PRESET = check_setting_str(CFG, 'GUI', 'date_preset', '%x')
|
|
|
|
TIME_PRESET_W_SECONDS = check_setting_str(CFG, 'GUI', 'time_preset', '%I:%M:%S %p')
|
2015-07-13 09:39:20 +00:00
|
|
|
TIME_PRESET = TIME_PRESET_W_SECONDS.replace(u':%S', u'')
|
2015-03-14 02:48:38 +00:00
|
|
|
TIMEZONE_DISPLAY = check_setting_str(CFG, 'GUI', 'timezone_display', 'network')
|
2015-04-07 03:10:50 +00:00
|
|
|
SHOW_TAGS = check_setting_str(CFG, 'GUI', 'show_tags', 'Show List').split(',')
|
2016-11-05 20:28:19 +00:00
|
|
|
SHOW_TAG_DEFAULT = check_setting_str(CFG, 'GUI', 'show_tag_default',
|
|
|
|
check_setting_str(CFG, 'GUI', 'default_show_tag', 'Show List'))
|
2015-04-07 03:10:50 +00:00
|
|
|
SHOWLIST_TAGVIEW = check_setting_str(CFG, 'GUI', 'showlist_tagview', 'standard')
|
2014-10-08 06:00:48 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
ACTUAL_LOG_DIR = check_setting_str(CFG, 'General', 'log_dir', 'Logs')
|
|
|
|
# put the log dir inside the data dir, unless an absolute path
|
|
|
|
LOG_DIR = os.path.normpath(os.path.join(DATA_DIR, ACTUAL_LOG_DIR))
|
2014-03-25 05:57:24 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
if not helpers.makeDir(LOG_DIR):
|
2015-07-13 09:39:20 +00:00
|
|
|
logger.log(u'!!! No log folder, logging to screen only!', logger.ERROR)
|
2014-03-25 05:57:24 +00:00
|
|
|
|
2015-03-24 20:52:23 +00:00
|
|
|
FILE_LOGGING_PRESET = check_setting_str(CFG, 'General', 'file_logging_preset', 'DB')
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
SOCKET_TIMEOUT = check_setting_int(CFG, 'General', 'socket_timeout', 30)
|
|
|
|
socket.setdefaulttimeout(SOCKET_TIMEOUT)
|
2014-03-25 05:57:24 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
WEB_HOST = check_setting_str(CFG, 'General', 'web_host', '0.0.0.0')
|
2016-11-05 20:28:19 +00:00
|
|
|
WEB_PORT = minimax(check_setting_int(CFG, 'General', 'web_port', 8081), 8081, 21, 65535)
|
2015-07-13 09:39:20 +00:00
|
|
|
WEB_ROOT = check_setting_str(CFG, 'General', 'web_root', '').rstrip('/')
|
2016-11-05 20:28:19 +00:00
|
|
|
WEB_IPV6 = bool(check_setting_int(CFG, 'General', 'web_ipv6', 0))
|
2017-02-06 13:43:06 +00:00
|
|
|
WEB_IPV64 = bool(check_setting_int(CFG, 'General', 'web_ipv64', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
WEB_LOG = bool(check_setting_int(CFG, 'General', 'web_log', 0))
|
|
|
|
ENCRYPTION_VERSION = check_setting_int(CFG, 'General', 'encryption_version', 0)
|
|
|
|
WEB_USERNAME = check_setting_str(CFG, 'General', 'web_username', '')
|
|
|
|
WEB_PASSWORD = check_setting_str(CFG, 'General', 'web_password', '')
|
|
|
|
LAUNCH_BROWSER = bool(check_setting_int(CFG, 'General', 'launch_browser', 1))
|
2014-03-25 05:57:24 +00:00
|
|
|
|
2016-06-16 23:44:27 +00:00
|
|
|
CPU_PRESET = check_setting_str(CFG, 'General', 'cpu_preset', 'DISABLED')
|
2014-05-17 11:40:26 +00:00
|
|
|
|
2015-09-07 00:38:21 +00:00
|
|
|
ANON_REDIRECT = check_setting_str(CFG, 'General', 'anon_redirect', '')
|
2014-04-24 17:08:24 +00:00
|
|
|
PROXY_SETTING = check_setting_str(CFG, 'General', 'proxy_setting', '')
|
2014-10-24 10:09:09 +00:00
|
|
|
PROXY_INDEXERS = bool(check_setting_int(CFG, 'General', 'proxy_indexers', 1))
|
2015-02-15 14:54:08 +00:00
|
|
|
# attempt to help prevent users from breaking links by using a bad url
|
2014-03-10 05:18:05 +00:00
|
|
|
if not ANON_REDIRECT.endswith('?'):
|
|
|
|
ANON_REDIRECT = ''
|
|
|
|
|
|
|
|
UPDATE_SHOWS_ON_START = bool(check_setting_int(CFG, 'General', 'update_shows_on_start', 0))
|
2015-02-15 14:54:08 +00:00
|
|
|
SHOW_UPDATE_HOUR = check_setting_int(CFG, 'General', 'show_update_hour', 3)
|
|
|
|
SHOW_UPDATE_HOUR = minimax(SHOW_UPDATE_HOUR, 3, 0, 23)
|
2015-06-04 12:08:16 +00:00
|
|
|
|
2014-11-05 05:36:16 +00:00
|
|
|
TRASH_REMOVE_SHOW = bool(check_setting_int(CFG, 'General', 'trash_remove_show', 0))
|
|
|
|
TRASH_ROTATE_LOGS = bool(check_setting_int(CFG, 'General', 'trash_rotate_logs', 0))
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
USE_API = bool(check_setting_int(CFG, 'General', 'use_api', 0))
|
|
|
|
API_KEY = check_setting_str(CFG, 'General', 'api_key', '')
|
|
|
|
|
2014-04-28 22:22:44 +00:00
|
|
|
DEBUG = bool(check_setting_int(CFG, 'General', 'debug', 0))
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
ENABLE_HTTPS = bool(check_setting_int(CFG, 'General', 'enable_https', 0))
|
|
|
|
|
|
|
|
HTTPS_CERT = check_setting_str(CFG, 'General', 'https_cert', 'server.crt')
|
|
|
|
HTTPS_KEY = check_setting_str(CFG, 'General', 'https_key', 'server.key')
|
|
|
|
|
2014-05-04 18:47:09 +00:00
|
|
|
HANDLE_REVERSE_PROXY = bool(check_setting_int(CFG, 'General', 'handle_reverse_proxy', 0))
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
ROOT_DIRS = check_setting_str(CFG, 'General', 'root_dirs', '')
|
|
|
|
if not re.match(r'\d+\|[^|]+(?:\|[^|]+)*', ROOT_DIRS):
|
|
|
|
ROOT_DIRS = ''
|
|
|
|
|
|
|
|
QUALITY_DEFAULT = check_setting_int(CFG, 'General', 'quality_default', SD)
|
|
|
|
STATUS_DEFAULT = check_setting_int(CFG, 'General', 'status_default', SKIPPED)
|
2015-03-10 00:13:58 +00:00
|
|
|
WANTED_BEGIN_DEFAULT = check_setting_int(CFG, 'General', 'wanted_begin_default', 0)
|
|
|
|
WANTED_LATEST_DEFAULT = check_setting_int(CFG, 'General', 'wanted_latest_default', 0)
|
2014-07-27 10:59:21 +00:00
|
|
|
VERSION_NOTIFY = bool(check_setting_int(CFG, 'General', 'version_notify', 1))
|
|
|
|
AUTO_UPDATE = bool(check_setting_int(CFG, 'General', 'auto_update', 0))
|
|
|
|
NOTIFY_ON_UPDATE = bool(check_setting_int(CFG, 'General', 'notify_on_update', 1))
|
2014-03-10 05:18:05 +00:00
|
|
|
FLATTEN_FOLDERS_DEFAULT = bool(check_setting_int(CFG, 'General', 'flatten_folders_default', 0))
|
2014-05-02 00:57:51 +00:00
|
|
|
INDEXER_DEFAULT = check_setting_int(CFG, 'General', 'indexer_default', 0)
|
2015-12-16 23:35:39 +00:00
|
|
|
if INDEXER_DEFAULT and not indexerApi(INDEXER_DEFAULT).config['active']:
|
|
|
|
INDEXER_DEFAULT = INDEXER_TVDB
|
2014-07-12 03:45:31 +00:00
|
|
|
INDEXER_TIMEOUT = check_setting_int(CFG, 'General', 'indexer_timeout', 20)
|
2014-05-26 06:29:22 +00:00
|
|
|
ANIME_DEFAULT = bool(check_setting_int(CFG, 'General', 'anime_default', 0))
|
2014-06-02 03:43:37 +00:00
|
|
|
SCENE_DEFAULT = bool(check_setting_int(CFG, 'General', 'scene_default', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
PROVIDER_ORDER = check_setting_str(CFG, 'General', 'provider_order', '').split()
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
PROVIDER_HOMES = ast.literal_eval(check_setting_str(CFG, 'General', 'provider_homes', None) or '{}')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
NAMING_PATTERN = check_setting_str(CFG, 'General', 'naming_pattern', 'Season %0S/%SN - S%0SE%0E - %EN')
|
2014-07-12 03:45:31 +00:00
|
|
|
NAMING_ABD_PATTERN = check_setting_str(CFG, 'General', 'naming_abd_pattern', '%SN - %A.D - %EN')
|
2014-07-27 10:59:21 +00:00
|
|
|
NAMING_CUSTOM_ABD = bool(check_setting_int(CFG, 'General', 'naming_custom_abd', 0))
|
2014-07-12 03:45:31 +00:00
|
|
|
NAMING_SPORTS_PATTERN = check_setting_str(CFG, 'General', 'naming_sports_pattern', '%SN - %A-D - %EN')
|
2016-09-04 20:00:44 +00:00
|
|
|
NAMING_ANIME_PATTERN = check_setting_str(CFG, 'General', 'naming_anime_pattern',
|
|
|
|
'Season %0S/%SN - S%0SE%0E - %EN')
|
2014-06-07 08:17:12 +00:00
|
|
|
NAMING_ANIME = check_setting_int(CFG, 'General', 'naming_anime', 3)
|
2014-07-27 10:59:21 +00:00
|
|
|
NAMING_CUSTOM_SPORTS = bool(check_setting_int(CFG, 'General', 'naming_custom_sports', 0))
|
2014-09-28 09:20:42 +00:00
|
|
|
NAMING_CUSTOM_ANIME = bool(check_setting_int(CFG, 'General', 'naming_custom_anime', 0))
|
2014-08-17 09:30:03 +00:00
|
|
|
NAMING_MULTI_EP = check_setting_int(CFG, 'General', 'naming_multi_ep', 1)
|
2014-09-28 09:20:42 +00:00
|
|
|
NAMING_ANIME_MULTI_EP = check_setting_int(CFG, 'General', 'naming_anime_multi_ep', 1)
|
2014-03-10 05:18:05 +00:00
|
|
|
NAMING_FORCE_FOLDERS = naming.check_force_season_folders()
|
|
|
|
NAMING_STRIP_YEAR = bool(check_setting_int(CFG, 'General', 'naming_strip_year', 0))
|
|
|
|
|
|
|
|
USE_NZBS = bool(check_setting_int(CFG, 'General', 'use_nzbs', 0))
|
|
|
|
USE_TORRENTS = bool(check_setting_int(CFG, 'General', 'use_torrents', 1))
|
|
|
|
|
|
|
|
NZB_METHOD = check_setting_str(CFG, 'General', 'nzb_method', 'blackhole')
|
|
|
|
if NZB_METHOD not in ('blackhole', 'sabnzbd', 'nzbget'):
|
|
|
|
NZB_METHOD = 'blackhole'
|
|
|
|
|
|
|
|
TORRENT_METHOD = check_setting_str(CFG, 'General', 'torrent_method', 'blackhole')
|
2016-06-23 19:58:26 +00:00
|
|
|
if TORRENT_METHOD not in ('blackhole', 'deluge', 'download_station', 'qbittorrent',
|
|
|
|
'rtorrent', 'transmission', 'utorrent'):
|
2014-03-10 05:18:05 +00:00
|
|
|
TORRENT_METHOD = 'blackhole'
|
|
|
|
|
|
|
|
DOWNLOAD_PROPERS = bool(check_setting_int(CFG, 'General', 'download_propers', 1))
|
2017-02-15 12:27:21 +00:00
|
|
|
PROPERS_WEBDL_ONEGRP = bool(check_setting_int(CFG, 'General', 'propers_webdl_onegrp', 1))
|
2014-05-14 22:23:59 +00:00
|
|
|
CHECK_PROPERS_INTERVAL = check_setting_str(CFG, 'General', 'check_propers_interval', '')
|
|
|
|
if CHECK_PROPERS_INTERVAL not in ('15m', '45m', '90m', '4h', 'daily'):
|
|
|
|
CHECK_PROPERS_INTERVAL = 'daily'
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
ALLOW_HIGH_PRIORITY = bool(check_setting_int(CFG, 'General', 'allow_high_priority', 1))
|
|
|
|
|
2015-01-04 02:26:55 +00:00
|
|
|
RECENTSEARCH_STARTUP = bool(check_setting_int(CFG, 'General', 'recentsearch_startup', 0))
|
2016-10-26 00:36:13 +00:00
|
|
|
BACKLOG_NOFULL = bool(check_setting_int(CFG, 'General', 'backlog_nofull', 0))
|
2015-03-17 13:59:03 +00:00
|
|
|
SKIP_REMOVED_FILES = check_setting_int(CFG, 'General', 'skip_removed_files', 0)
|
2014-05-06 22:27:44 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
USENET_RETENTION = check_setting_int(CFG, 'General', 'usenet_retention', 500)
|
|
|
|
|
2014-08-11 10:19:48 +00:00
|
|
|
AUTOPOSTPROCESSER_FREQUENCY = check_setting_int(CFG, 'General', 'autopostprocesser_frequency',
|
2014-05-21 20:26:24 +00:00
|
|
|
DEFAULT_AUTOPOSTPROCESSER_FREQUENCY)
|
|
|
|
if AUTOPOSTPROCESSER_FREQUENCY < MIN_AUTOPOSTPROCESSER_FREQUENCY:
|
|
|
|
AUTOPOSTPROCESSER_FREQUENCY = MIN_AUTOPOSTPROCESSER_FREQUENCY
|
|
|
|
|
2014-12-25 01:57:51 +00:00
|
|
|
RECENTSEARCH_FREQUENCY = check_setting_int(CFG, 'General', 'recentsearch_frequency',
|
|
|
|
DEFAULT_RECENTSEARCH_FREQUENCY)
|
2014-12-22 18:30:53 +00:00
|
|
|
if RECENTSEARCH_FREQUENCY < MIN_RECENTSEARCH_FREQUENCY:
|
|
|
|
RECENTSEARCH_FREQUENCY = MIN_RECENTSEARCH_FREQUENCY
|
2014-05-15 04:16:46 +00:00
|
|
|
|
2014-05-17 16:18:50 +00:00
|
|
|
BACKLOG_FREQUENCY = check_setting_int(CFG, 'General', 'backlog_frequency', DEFAULT_BACKLOG_FREQUENCY)
|
2016-09-04 20:00:44 +00:00
|
|
|
BACKLOG_FREQUENCY = minimax(BACKLOG_FREQUENCY, DEFAULT_BACKLOG_FREQUENCY,
|
|
|
|
MIN_BACKLOG_FREQUENCY, MAX_BACKLOG_FREQUENCY)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-05-15 04:16:46 +00:00
|
|
|
UPDATE_FREQUENCY = check_setting_int(CFG, 'General', 'update_frequency', DEFAULT_UPDATE_FREQUENCY)
|
2014-04-27 12:22:48 +00:00
|
|
|
if UPDATE_FREQUENCY < MIN_UPDATE_FREQUENCY:
|
|
|
|
UPDATE_FREQUENCY = MIN_UPDATE_FREQUENCY
|
2014-04-27 12:13:46 +00:00
|
|
|
|
2014-09-15 08:57:50 +00:00
|
|
|
BACKLOG_DAYS = check_setting_int(CFG, 'General', 'backlog_days', 7)
|
2015-04-05 18:12:15 +00:00
|
|
|
SEARCH_UNAIRED = bool(check_setting_int(CFG, 'General', 'search_unaired', 0))
|
2016-09-04 20:00:44 +00:00
|
|
|
UNAIRED_RECENT_SEARCH_ONLY = bool(check_setting_int(CFG, 'General', 'unaired_recent_search_only', 1))
|
2014-09-15 08:57:50 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
NZB_DIR = check_setting_str(CFG, 'Blackhole', 'nzb_dir', '')
|
|
|
|
TORRENT_DIR = check_setting_str(CFG, 'Blackhole', 'torrent_dir', '')
|
|
|
|
|
|
|
|
TV_DOWNLOAD_DIR = check_setting_str(CFG, 'General', 'tv_download_dir', '')
|
2014-07-27 10:59:21 +00:00
|
|
|
PROCESS_AUTOMATICALLY = bool(check_setting_int(CFG, 'General', 'process_automatically', 0))
|
|
|
|
UNPACK = bool(check_setting_int(CFG, 'General', 'unpack', 0))
|
|
|
|
RENAME_EPISODES = bool(check_setting_int(CFG, 'General', 'rename_episodes', 1))
|
|
|
|
AIRDATE_EPISODES = bool(check_setting_int(CFG, 'General', 'airdate_episodes', 0))
|
|
|
|
KEEP_PROCESSED_DIR = bool(check_setting_int(CFG, 'General', 'keep_processed_dir', 1))
|
2014-03-10 05:18:05 +00:00
|
|
|
PROCESS_METHOD = check_setting_str(CFG, 'General', 'process_method', 'copy' if KEEP_PROCESSED_DIR else 'move')
|
2014-07-27 10:59:21 +00:00
|
|
|
MOVE_ASSOCIATED_FILES = bool(check_setting_int(CFG, 'General', 'move_associated_files', 0))
|
2014-09-07 10:57:48 +00:00
|
|
|
POSTPONE_IF_SYNC_FILES = bool(check_setting_int(CFG, 'General', 'postpone_if_sync_files', 1))
|
2014-07-27 10:59:21 +00:00
|
|
|
NFO_RENAME = bool(check_setting_int(CFG, 'General', 'nfo_rename', 1))
|
|
|
|
CREATE_MISSING_SHOW_DIRS = bool(check_setting_int(CFG, 'General', 'create_missing_show_dirs', 0))
|
|
|
|
ADD_SHOWS_WO_DIR = bool(check_setting_int(CFG, 'General', 'add_shows_wo_dir', 0))
|
2016-06-14 22:09:30 +00:00
|
|
|
REMOVE_FILENAME_CHARS = check_setting_str(CFG, 'General', 'remove_filename_chars', '')
|
2017-02-20 17:24:33 +00:00
|
|
|
IMPORT_DEFAULT_CHECKED_SHOWS = bool(check_setting_int(CFG, 'General', 'import_default_checked_shows', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
SAB_USERNAME = check_setting_str(CFG, 'SABnzbd', 'sab_username', '')
|
|
|
|
SAB_PASSWORD = check_setting_str(CFG, 'SABnzbd', 'sab_password', '')
|
|
|
|
SAB_APIKEY = check_setting_str(CFG, 'SABnzbd', 'sab_apikey', '')
|
|
|
|
SAB_CATEGORY = check_setting_str(CFG, 'SABnzbd', 'sab_category', 'tv')
|
|
|
|
SAB_HOST = check_setting_str(CFG, 'SABnzbd', 'sab_host', '')
|
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
NZBGET_USERNAME = check_setting_str(CFG, 'NZBget', 'nzbget_username', 'nzbget')
|
2014-03-10 05:18:05 +00:00
|
|
|
NZBGET_PASSWORD = check_setting_str(CFG, 'NZBget', 'nzbget_password', 'tegbzn6789')
|
|
|
|
NZBGET_CATEGORY = check_setting_str(CFG, 'NZBget', 'nzbget_category', 'tv')
|
|
|
|
NZBGET_HOST = check_setting_str(CFG, 'NZBget', 'nzbget_host', '')
|
2014-05-05 22:48:28 +00:00
|
|
|
NZBGET_USE_HTTPS = bool(check_setting_int(CFG, 'NZBget', 'nzbget_use_https', 0))
|
2014-08-11 20:07:02 +00:00
|
|
|
NZBGET_PRIORITY = check_setting_int(CFG, 'NZBget', 'nzbget_priority', 100)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
TORRENT_USERNAME = check_setting_str(CFG, 'TORRENT', 'torrent_username', '')
|
|
|
|
TORRENT_PASSWORD = check_setting_str(CFG, 'TORRENT', 'torrent_password', '')
|
|
|
|
TORRENT_HOST = check_setting_str(CFG, 'TORRENT', 'torrent_host', '')
|
|
|
|
TORRENT_PATH = check_setting_str(CFG, 'TORRENT', 'torrent_path', '')
|
2014-05-12 07:05:16 +00:00
|
|
|
TORRENT_SEED_TIME = check_setting_int(CFG, 'TORRENT', 'torrent_seed_time', 0)
|
2014-03-10 05:18:05 +00:00
|
|
|
TORRENT_PAUSED = bool(check_setting_int(CFG, 'TORRENT', 'torrent_paused', 0))
|
|
|
|
TORRENT_HIGH_BANDWIDTH = bool(check_setting_int(CFG, 'TORRENT', 'torrent_high_bandwidth', 0))
|
|
|
|
TORRENT_LABEL = check_setting_str(CFG, 'TORRENT', 'torrent_label', '')
|
2014-05-11 07:31:38 +00:00
|
|
|
TORRENT_VERIFY_CERT = bool(check_setting_int(CFG, 'TORRENT', 'torrent_verify_cert', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-02-19 17:38:38 +00:00
|
|
|
USE_EMBY = bool(check_setting_int(CFG, 'Emby', 'use_emby', 0))
|
|
|
|
EMBY_UPDATE_LIBRARY = bool(check_setting_int(CFG, 'Emby', 'emby_update_library', 0))
|
|
|
|
EMBY_HOST = check_setting_str(CFG, 'Emby', 'emby_host', '')
|
|
|
|
EMBY_APIKEY = check_setting_str(CFG, 'Emby', 'emby_apikey', '')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-02-25 12:33:40 +00:00
|
|
|
USE_KODI = bool(check_setting_int(CFG, 'Kodi', 'use_kodi', 0))
|
|
|
|
KODI_ALWAYS_ON = bool(check_setting_int(CFG, 'Kodi', 'kodi_always_on', 1))
|
|
|
|
KODI_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Kodi', 'kodi_notify_onsnatch', 0))
|
|
|
|
KODI_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Kodi', 'kodi_notify_ondownload', 0))
|
|
|
|
KODI_NOTIFY_ONSUBTITLEDOWNLOAD = bool(check_setting_int(CFG, 'Kodi', 'kodi_notify_onsubtitledownload', 0))
|
|
|
|
KODI_UPDATE_LIBRARY = bool(check_setting_int(CFG, 'Kodi', 'kodi_update_library', 0))
|
|
|
|
KODI_UPDATE_FULL = bool(check_setting_int(CFG, 'Kodi', 'kodi_update_full', 0))
|
|
|
|
KODI_UPDATE_ONLYFIRST = bool(check_setting_int(CFG, 'Kodi', 'kodi_update_onlyfirst', 0))
|
|
|
|
KODI_HOST = check_setting_str(CFG, 'Kodi', 'kodi_host', '')
|
|
|
|
KODI_USERNAME = check_setting_str(CFG, 'Kodi', 'kodi_username', '')
|
|
|
|
KODI_PASSWORD = check_setting_str(CFG, 'Kodi', 'kodi_password', '')
|
|
|
|
|
2016-02-19 17:38:38 +00:00
|
|
|
USE_XBMC = bool(check_setting_int(CFG, 'XBMC', 'use_xbmc', 0))
|
|
|
|
XBMC_ALWAYS_ON = bool(check_setting_int(CFG, 'XBMC', 'xbmc_always_on', 1))
|
|
|
|
XBMC_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'XBMC', 'xbmc_notify_onsnatch', 0))
|
|
|
|
XBMC_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'XBMC', 'xbmc_notify_ondownload', 0))
|
|
|
|
XBMC_NOTIFY_ONSUBTITLEDOWNLOAD = bool(check_setting_int(CFG, 'XBMC', 'xbmc_notify_onsubtitledownload', 0))
|
|
|
|
XBMC_UPDATE_LIBRARY = bool(check_setting_int(CFG, 'XBMC', 'xbmc_update_library', 0))
|
|
|
|
XBMC_UPDATE_FULL = bool(check_setting_int(CFG, 'XBMC', 'xbmc_update_full', 0))
|
|
|
|
XBMC_UPDATE_ONLYFIRST = bool(check_setting_int(CFG, 'XBMC', 'xbmc_update_onlyfirst', 0))
|
|
|
|
XBMC_HOST = check_setting_str(CFG, 'XBMC', 'xbmc_host', '')
|
|
|
|
XBMC_USERNAME = check_setting_str(CFG, 'XBMC', 'xbmc_username', '')
|
|
|
|
XBMC_PASSWORD = check_setting_str(CFG, 'XBMC', 'xbmc_password', '')
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
USE_PLEX = bool(check_setting_int(CFG, 'Plex', 'use_plex', 0))
|
|
|
|
PLEX_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Plex', 'plex_notify_onsnatch', 0))
|
|
|
|
PLEX_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Plex', 'plex_notify_ondownload', 0))
|
|
|
|
PLEX_NOTIFY_ONSUBTITLEDOWNLOAD = bool(check_setting_int(CFG, 'Plex', 'plex_notify_onsubtitledownload', 0))
|
|
|
|
PLEX_UPDATE_LIBRARY = bool(check_setting_int(CFG, 'Plex', 'plex_update_library', 0))
|
|
|
|
PLEX_SERVER_HOST = check_setting_str(CFG, 'Plex', 'plex_server_host', '')
|
|
|
|
PLEX_HOST = check_setting_str(CFG, 'Plex', 'plex_host', '')
|
|
|
|
PLEX_USERNAME = check_setting_str(CFG, 'Plex', 'plex_username', '')
|
|
|
|
PLEX_PASSWORD = check_setting_str(CFG, 'Plex', 'plex_password', '')
|
|
|
|
|
|
|
|
USE_GROWL = bool(check_setting_int(CFG, 'Growl', 'use_growl', 0))
|
|
|
|
GROWL_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Growl', 'growl_notify_onsnatch', 0))
|
|
|
|
GROWL_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Growl', 'growl_notify_ondownload', 0))
|
|
|
|
GROWL_NOTIFY_ONSUBTITLEDOWNLOAD = bool(check_setting_int(CFG, 'Growl', 'growl_notify_onsubtitledownload', 0))
|
|
|
|
GROWL_HOST = check_setting_str(CFG, 'Growl', 'growl_host', '')
|
|
|
|
GROWL_PASSWORD = check_setting_str(CFG, 'Growl', 'growl_password', '')
|
|
|
|
|
|
|
|
USE_PROWL = bool(check_setting_int(CFG, 'Prowl', 'use_prowl', 0))
|
|
|
|
PROWL_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Prowl', 'prowl_notify_onsnatch', 0))
|
|
|
|
PROWL_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Prowl', 'prowl_notify_ondownload', 0))
|
|
|
|
PROWL_NOTIFY_ONSUBTITLEDOWNLOAD = bool(check_setting_int(CFG, 'Prowl', 'prowl_notify_onsubtitledownload', 0))
|
|
|
|
PROWL_API = check_setting_str(CFG, 'Prowl', 'prowl_api', '')
|
2015-07-13 09:39:20 +00:00
|
|
|
PROWL_PRIORITY = check_setting_str(CFG, 'Prowl', 'prowl_priority', '0')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_TWITTER = bool(check_setting_int(CFG, 'Twitter', 'use_twitter', 0))
|
|
|
|
TWITTER_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Twitter', 'twitter_notify_onsnatch', 0))
|
|
|
|
TWITTER_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Twitter', 'twitter_notify_ondownload', 0))
|
2014-03-25 05:57:24 +00:00
|
|
|
TWITTER_NOTIFY_ONSUBTITLEDOWNLOAD = bool(
|
|
|
|
check_setting_int(CFG, 'Twitter', 'twitter_notify_onsubtitledownload', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
TWITTER_USERNAME = check_setting_str(CFG, 'Twitter', 'twitter_username', '')
|
|
|
|
TWITTER_PASSWORD = check_setting_str(CFG, 'Twitter', 'twitter_password', '')
|
2014-11-12 16:43:14 +00:00
|
|
|
TWITTER_PREFIX = check_setting_str(CFG, 'Twitter', 'twitter_prefix', 'SickGear')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-05-07 14:23:06 +00:00
|
|
|
USE_BOXCAR2 = bool(check_setting_int(CFG, 'Boxcar2', 'use_boxcar2', 0))
|
2014-05-07 14:31:23 +00:00
|
|
|
BOXCAR2_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Boxcar2', 'boxcar2_notify_onsnatch', 0))
|
|
|
|
BOXCAR2_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Boxcar2', 'boxcar2_notify_ondownload', 0))
|
2014-05-13 05:48:00 +00:00
|
|
|
BOXCAR2_NOTIFY_ONSUBTITLEDOWNLOAD = bool(
|
|
|
|
check_setting_int(CFG, 'Boxcar2', 'boxcar2_notify_onsubtitledownload', 0))
|
2014-05-07 14:23:06 +00:00
|
|
|
BOXCAR2_ACCESSTOKEN = check_setting_str(CFG, 'Boxcar2', 'boxcar2_accesstoken', '')
|
2015-02-13 05:28:03 +00:00
|
|
|
BOXCAR2_SOUND = check_setting_str(CFG, 'Boxcar2', 'boxcar2_sound', 'default')
|
2014-05-07 14:23:06 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
USE_PUSHOVER = bool(check_setting_int(CFG, 'Pushover', 'use_pushover', 0))
|
|
|
|
PUSHOVER_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Pushover', 'pushover_notify_onsnatch', 0))
|
|
|
|
PUSHOVER_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Pushover', 'pushover_notify_ondownload', 0))
|
2014-07-27 10:59:21 +00:00
|
|
|
PUSHOVER_NOTIFY_ONSUBTITLEDOWNLOAD = bool(
|
|
|
|
check_setting_int(CFG, 'Pushover', 'pushover_notify_onsubtitledownload', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
PUSHOVER_USERKEY = check_setting_str(CFG, 'Pushover', 'pushover_userkey', '')
|
2014-06-29 10:05:33 +00:00
|
|
|
PUSHOVER_APIKEY = check_setting_str(CFG, 'Pushover', 'pushover_apikey', '')
|
2015-02-25 11:30:52 +00:00
|
|
|
PUSHOVER_PRIORITY = check_setting_int(CFG, 'Pushover', 'pushover_priority', 0)
|
|
|
|
PUSHOVER_DEVICE = check_setting_str(CFG, 'Pushover', 'pushover_device', 'all')
|
|
|
|
PUSHOVER_SOUND = check_setting_str(CFG, 'Pushover', 'pushover_sound', 'pushover')
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
USE_LIBNOTIFY = bool(check_setting_int(CFG, 'Libnotify', 'use_libnotify', 0))
|
|
|
|
LIBNOTIFY_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Libnotify', 'libnotify_notify_onsnatch', 0))
|
|
|
|
LIBNOTIFY_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Libnotify', 'libnotify_notify_ondownload', 0))
|
2014-03-25 05:57:24 +00:00
|
|
|
LIBNOTIFY_NOTIFY_ONSUBTITLEDOWNLOAD = bool(
|
|
|
|
check_setting_int(CFG, 'Libnotify', 'libnotify_notify_onsubtitledownload', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_NMJ = bool(check_setting_int(CFG, 'NMJ', 'use_nmj', 0))
|
|
|
|
NMJ_HOST = check_setting_str(CFG, 'NMJ', 'nmj_host', '')
|
|
|
|
NMJ_DATABASE = check_setting_str(CFG, 'NMJ', 'nmj_database', '')
|
|
|
|
NMJ_MOUNT = check_setting_str(CFG, 'NMJ', 'nmj_mount', '')
|
|
|
|
|
|
|
|
USE_NMJv2 = bool(check_setting_int(CFG, 'NMJv2', 'use_nmjv2', 0))
|
|
|
|
NMJv2_HOST = check_setting_str(CFG, 'NMJv2', 'nmjv2_host', '')
|
|
|
|
NMJv2_DATABASE = check_setting_str(CFG, 'NMJv2', 'nmjv2_database', '')
|
|
|
|
NMJv2_DBLOC = check_setting_str(CFG, 'NMJv2', 'nmjv2_dbloc', '')
|
|
|
|
|
|
|
|
USE_SYNOINDEX = bool(check_setting_int(CFG, 'Synology', 'use_synoindex', 0))
|
|
|
|
|
|
|
|
USE_SYNOLOGYNOTIFIER = bool(check_setting_int(CFG, 'SynologyNotifier', 'use_synologynotifier', 0))
|
2014-03-25 05:57:24 +00:00
|
|
|
SYNOLOGYNOTIFIER_NOTIFY_ONSNATCH = bool(
|
|
|
|
check_setting_int(CFG, 'SynologyNotifier', 'synologynotifier_notify_onsnatch', 0))
|
|
|
|
SYNOLOGYNOTIFIER_NOTIFY_ONDOWNLOAD = bool(
|
|
|
|
check_setting_int(CFG, 'SynologyNotifier', 'synologynotifier_notify_ondownload', 0))
|
|
|
|
SYNOLOGYNOTIFIER_NOTIFY_ONSUBTITLEDOWNLOAD = bool(
|
|
|
|
check_setting_int(CFG, 'SynologyNotifier', 'synologynotifier_notify_onsubtitledownload', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_TRAKT = bool(check_setting_int(CFG, 'Trakt', 'use_trakt', 0))
|
|
|
|
TRAKT_REMOVE_WATCHLIST = bool(check_setting_int(CFG, 'Trakt', 'trakt_remove_watchlist', 0))
|
2014-08-11 11:29:35 +00:00
|
|
|
TRAKT_REMOVE_SERIESLIST = bool(check_setting_int(CFG, 'Trakt', 'trakt_remove_serieslist', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
TRAKT_USE_WATCHLIST = bool(check_setting_int(CFG, 'Trakt', 'trakt_use_watchlist', 0))
|
2014-07-27 10:59:21 +00:00
|
|
|
TRAKT_METHOD_ADD = check_setting_int(CFG, 'Trakt', 'trakt_method_add', 0)
|
2014-03-10 05:18:05 +00:00
|
|
|
TRAKT_START_PAUSED = bool(check_setting_int(CFG, 'Trakt', 'trakt_start_paused', 0))
|
2014-06-29 05:54:29 +00:00
|
|
|
TRAKT_SYNC = bool(check_setting_int(CFG, 'Trakt', 'trakt_sync', 0))
|
2014-07-24 04:44:11 +00:00
|
|
|
TRAKT_DEFAULT_INDEXER = check_setting_int(CFG, 'Trakt', 'trakt_default_indexer', 1)
|
2016-09-04 20:00:44 +00:00
|
|
|
TRAKT_UPDATE_COLLECTION = trakt_helpers.read_config_string(
|
|
|
|
check_setting_str(CFG, 'Trakt', 'trakt_update_collection', ''))
|
2015-11-19 22:05:19 +00:00
|
|
|
TRAKT_ACCOUNTS = TraktAPI.read_config_string(check_setting_str(CFG, 'Trakt', 'trakt_accounts', ''))
|
2016-01-08 20:57:07 +00:00
|
|
|
TRAKT_MRU = check_setting_str(CFG, 'Trakt', 'trakt_mru', '')
|
2014-10-24 15:31:11 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
CheckSection(CFG, 'pyTivo')
|
|
|
|
USE_PYTIVO = bool(check_setting_int(CFG, 'pyTivo', 'use_pytivo', 0))
|
|
|
|
PYTIVO_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'pyTivo', 'pytivo_notify_onsnatch', 0))
|
|
|
|
PYTIVO_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'pyTivo', 'pytivo_notify_ondownload', 0))
|
|
|
|
PYTIVO_NOTIFY_ONSUBTITLEDOWNLOAD = bool(check_setting_int(CFG, 'pyTivo', 'pytivo_notify_onsubtitledownload', 0))
|
|
|
|
PYTIVO_UPDATE_LIBRARY = bool(check_setting_int(CFG, 'pyTivo', 'pyTivo_update_library', 0))
|
|
|
|
PYTIVO_HOST = check_setting_str(CFG, 'pyTivo', 'pytivo_host', '')
|
|
|
|
PYTIVO_SHARE_NAME = check_setting_str(CFG, 'pyTivo', 'pytivo_share_name', '')
|
|
|
|
PYTIVO_TIVO_NAME = check_setting_str(CFG, 'pyTivo', 'pytivo_tivo_name', '')
|
|
|
|
|
|
|
|
USE_NMA = bool(check_setting_int(CFG, 'NMA', 'use_nma', 0))
|
|
|
|
NMA_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'NMA', 'nma_notify_onsnatch', 0))
|
|
|
|
NMA_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'NMA', 'nma_notify_ondownload', 0))
|
|
|
|
NMA_NOTIFY_ONSUBTITLEDOWNLOAD = bool(check_setting_int(CFG, 'NMA', 'nma_notify_onsubtitledownload', 0))
|
|
|
|
NMA_API = check_setting_str(CFG, 'NMA', 'nma_api', '')
|
2015-07-13 09:39:20 +00:00
|
|
|
NMA_PRIORITY = check_setting_str(CFG, 'NMA', 'nma_priority', '0')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_PUSHALOT = bool(check_setting_int(CFG, 'Pushalot', 'use_pushalot', 0))
|
|
|
|
PUSHALOT_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Pushalot', 'pushalot_notify_onsnatch', 0))
|
|
|
|
PUSHALOT_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Pushalot', 'pushalot_notify_ondownload', 0))
|
2014-03-25 05:57:24 +00:00
|
|
|
PUSHALOT_NOTIFY_ONSUBTITLEDOWNLOAD = bool(
|
|
|
|
check_setting_int(CFG, 'Pushalot', 'pushalot_notify_onsubtitledownload', 0))
|
2014-03-10 05:18:05 +00:00
|
|
|
PUSHALOT_AUTHORIZATIONTOKEN = check_setting_str(CFG, 'Pushalot', 'pushalot_authorizationtoken', '')
|
|
|
|
|
|
|
|
USE_PUSHBULLET = bool(check_setting_int(CFG, 'Pushbullet', 'use_pushbullet', 0))
|
|
|
|
PUSHBULLET_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Pushbullet', 'pushbullet_notify_onsnatch', 0))
|
|
|
|
PUSHBULLET_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Pushbullet', 'pushbullet_notify_ondownload', 0))
|
2014-03-25 05:57:24 +00:00
|
|
|
PUSHBULLET_NOTIFY_ONSUBTITLEDOWNLOAD = bool(
|
|
|
|
check_setting_int(CFG, 'Pushbullet', 'pushbullet_notify_onsubtitledownload', 0))
|
2015-02-17 06:39:35 +00:00
|
|
|
PUSHBULLET_ACCESS_TOKEN = check_setting_str(CFG, 'Pushbullet', 'pushbullet_access_token', '')
|
|
|
|
PUSHBULLET_DEVICE_IDEN = check_setting_str(CFG, 'Pushbullet', 'pushbullet_device_iden', '')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
USE_EMAIL = bool(check_setting_int(CFG, 'Email', 'use_email', 0))
|
2016-01-17 18:50:26 +00:00
|
|
|
EMAIL_OLD_SUBJECTS = bool(check_setting_int(CFG, 'Email', 'email_old_subjects',
|
|
|
|
None is not EMAIL_HOST and any(EMAIL_HOST)))
|
2014-03-10 05:18:05 +00:00
|
|
|
EMAIL_NOTIFY_ONSNATCH = bool(check_setting_int(CFG, 'Email', 'email_notify_onsnatch', 0))
|
|
|
|
EMAIL_NOTIFY_ONDOWNLOAD = bool(check_setting_int(CFG, 'Email', 'email_notify_ondownload', 0))
|
|
|
|
EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD = bool(check_setting_int(CFG, 'Email', 'email_notify_onsubtitledownload', 0))
|
|
|
|
EMAIL_HOST = check_setting_str(CFG, 'Email', 'email_host', '')
|
|
|
|
EMAIL_PORT = check_setting_int(CFG, 'Email', 'email_port', 25)
|
|
|
|
EMAIL_TLS = bool(check_setting_int(CFG, 'Email', 'email_tls', 0))
|
|
|
|
EMAIL_USER = check_setting_str(CFG, 'Email', 'email_user', '')
|
|
|
|
EMAIL_PASSWORD = check_setting_str(CFG, 'Email', 'email_password', '')
|
|
|
|
EMAIL_FROM = check_setting_str(CFG, 'Email', 'email_from', '')
|
|
|
|
EMAIL_LIST = check_setting_str(CFG, 'Email', 'email_list', '')
|
|
|
|
|
|
|
|
USE_SUBTITLES = bool(check_setting_int(CFG, 'Subtitles', 'use_subtitles', 0))
|
|
|
|
SUBTITLES_LANGUAGES = check_setting_str(CFG, 'Subtitles', 'subtitles_languages', '').split(',')
|
|
|
|
if SUBTITLES_LANGUAGES[0] == '':
|
|
|
|
SUBTITLES_LANGUAGES = []
|
|
|
|
SUBTITLES_DIR = check_setting_str(CFG, 'Subtitles', 'subtitles_dir', '')
|
|
|
|
SUBTITLES_SERVICES_LIST = check_setting_str(CFG, 'Subtitles', 'SUBTITLES_SERVICES_LIST', '').split(',')
|
2014-03-25 05:57:24 +00:00
|
|
|
SUBTITLES_SERVICES_ENABLED = [int(x) for x in
|
|
|
|
check_setting_str(CFG, 'Subtitles', 'SUBTITLES_SERVICES_ENABLED', '').split('|')
|
|
|
|
if x]
|
2014-03-10 05:18:05 +00:00
|
|
|
SUBTITLES_DEFAULT = bool(check_setting_int(CFG, 'Subtitles', 'subtitles_default', 0))
|
|
|
|
SUBTITLES_HISTORY = bool(check_setting_int(CFG, 'Subtitles', 'subtitles_history', 0))
|
|
|
|
SUBTITLES_FINDER_FREQUENCY = check_setting_int(CFG, 'Subtitles', 'subtitles_finder_frequency', 1)
|
|
|
|
|
|
|
|
USE_FAILED_DOWNLOADS = bool(check_setting_int(CFG, 'FailedDownloads', 'use_failed_downloads', 0))
|
|
|
|
DELETE_FAILED = bool(check_setting_int(CFG, 'FailedDownloads', 'delete_failed', 0))
|
|
|
|
|
|
|
|
GIT_PATH = check_setting_str(CFG, 'General', 'git_path', '')
|
|
|
|
|
|
|
|
IGNORE_WORDS = check_setting_str(CFG, 'General', 'ignore_words', IGNORE_WORDS)
|
2014-10-05 15:10:43 +00:00
|
|
|
REQUIRE_WORDS = check_setting_str(CFG, 'General', 'require_words', REQUIRE_WORDS)
|
2014-03-25 05:57:24 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
CALENDAR_UNPROTECTED = bool(check_setting_int(CFG, 'General', 'calendar_unprotected', 0))
|
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
EXTRA_SCRIPTS = [x.strip() for x in check_setting_str(CFG, 'General', 'extra_scripts', '').split('|') if
|
|
|
|
x.strip()]
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-07-27 10:59:21 +00:00
|
|
|
USE_ANIDB = bool(check_setting_int(CFG, 'ANIDB', 'use_anidb', 0))
|
2014-05-26 06:29:22 +00:00
|
|
|
ANIDB_USERNAME = check_setting_str(CFG, 'ANIDB', 'anidb_username', '')
|
|
|
|
ANIDB_PASSWORD = check_setting_str(CFG, 'ANIDB', 'anidb_password', '')
|
2014-07-07 11:23:59 +00:00
|
|
|
ANIDB_USE_MYLIST = bool(check_setting_int(CFG, 'ANIDB', 'anidb_use_mylist', 0))
|
2014-07-27 10:59:21 +00:00
|
|
|
|
2014-11-17 09:32:57 +00:00
|
|
|
ANIME_TREAT_AS_HDTV = bool(check_setting_int(CFG, 'ANIME', 'anime_treat_as_hdtv', 0))
|
2014-05-26 06:29:22 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
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')
|
|
|
|
METADATA_MEDIABROWSER = check_setting_str(CFG, 'General', 'metadata_mediabrowser', '0|0|0|0|0|0|0|0|0|0')
|
|
|
|
METADATA_PS3 = check_setting_str(CFG, 'General', 'metadata_ps3', '0|0|0|0|0|0|0|0|0|0')
|
|
|
|
METADATA_WDTV = check_setting_str(CFG, 'General', 'metadata_wdtv', '0|0|0|0|0|0|0|0|0|0')
|
|
|
|
METADATA_TIVO = check_setting_str(CFG, 'General', 'metadata_tivo', '0|0|0|0|0|0|0|0|0|0')
|
2014-05-11 23:15:24 +00:00
|
|
|
METADATA_MEDE8ER = check_setting_str(CFG, 'General', 'metadata_mede8er', '0|0|0|0|0|0|0|0|0|0')
|
2015-02-25 12:33:40 +00:00
|
|
|
METADATA_KODI = check_setting_str(CFG, 'General', 'metadata_kodi', '0|0|0|0|0|0|0|0|0|0')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
HOME_LAYOUT = check_setting_str(CFG, 'GUI', 'home_layout', 'poster')
|
2014-10-26 05:42:45 +00:00
|
|
|
POSTER_SORTBY = check_setting_str(CFG, 'GUI', 'poster_sortby', 'name')
|
|
|
|
POSTER_SORTDIR = check_setting_int(CFG, 'GUI', 'poster_sortdir', 1)
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
DISPLAY_SHOW_VIEWMODE = check_setting_int(CFG, 'GUI', 'display_show_viewmode', 0)
|
|
|
|
DISPLAY_SHOW_BACKGROUND = bool(check_setting_int(CFG, 'GUI', 'display_show_background', 0))
|
|
|
|
DISPLAY_SHOW_BACKGROUND_TRANSLUCENT = bool(check_setting_int(
|
|
|
|
CFG, 'GUI', 'display_show_background_translucent', 0))
|
|
|
|
DISPLAY_SHOW_VIEWART = check_setting_int(CFG, 'GUI', 'display_show_viewart', 0)
|
|
|
|
DISPLAY_SHOW_MINIMUM = bool(check_setting_int(CFG, 'GUI', 'display_show_minimum', 1))
|
|
|
|
DISPLAY_SHOW_SPECIALS = bool(check_setting_int(CFG, 'GUI', 'display_show_specials', 0))
|
|
|
|
|
|
|
|
EPISODE_VIEW_VIEWMODE = check_setting_int(CFG, 'GUI', 'episode_view_viewmode', 0)
|
|
|
|
EPISODE_VIEW_BACKGROUND = bool(check_setting_int(CFG, 'GUI', 'episode_view_background', 0))
|
|
|
|
EPISODE_VIEW_BACKGROUND_TRANSLUCENT = bool(check_setting_int(
|
|
|
|
CFG, 'GUI', 'episode_view_background_translucent', 0))
|
|
|
|
EPISODE_VIEW_LAYOUT = check_setting_str(CFG, 'GUI', 'episode_view_layout', 'daybyday')
|
|
|
|
EPISODE_VIEW_SORT = check_setting_str(CFG, 'GUI', 'episode_view_sort', 'time')
|
|
|
|
EPISODE_VIEW_DISPLAY_PAUSED = bool(check_setting_int(CFG, 'GUI', 'episode_view_display_paused', 1))
|
|
|
|
EPISODE_VIEW_POSTERS = bool(check_setting_int(CFG, 'GUI', 'episode_view_posters', 1))
|
|
|
|
EPISODE_VIEW_MISSED_RANGE = check_setting_int(CFG, 'GUI', 'episode_view_missed_range', 7)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
HISTORY_LAYOUT = check_setting_str(CFG, 'GUI', 'history_layout', 'detailed')
|
2014-07-27 10:59:21 +00:00
|
|
|
# initialize NZB and TORRENT providers
|
|
|
|
providerList = providers.makeProviderList()
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
NEWZNAB_DATA = check_setting_str(CFG, 'Newznab', 'newznab_data', '')
|
2014-03-25 05:57:24 +00:00
|
|
|
newznabProviderList = providers.getNewznabProviderList(NEWZNAB_DATA)
|
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
torrentrss_data = check_setting_str(CFG, 'TorrentRss', 'torrentrss_data', '')
|
|
|
|
torrentRssProviderList = providers.getTorrentRssProviderList(torrentrss_data)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-07-27 10:59:21 +00:00
|
|
|
# dynamically load provider settings
|
2015-07-13 09:39:20 +00:00
|
|
|
for torrent_prov in [curProvider for curProvider in providers.sortedProviderList()
|
|
|
|
if GenericProvider.TORRENT == curProvider.providerType]:
|
|
|
|
prov_id = torrent_prov.get_id()
|
|
|
|
prov_id_uc = torrent_prov.get_id().upper()
|
|
|
|
torrent_prov.enabled = bool(check_setting_int(CFG, prov_id_uc, prov_id, 0))
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
if getattr(torrent_prov, 'url_edit', None):
|
|
|
|
torrent_prov.url_home = check_setting_str(CFG, prov_id_uc, prov_id + '_url_home', [])
|
2015-07-13 09:39:20 +00:00
|
|
|
if hasattr(torrent_prov, 'api_key'):
|
|
|
|
torrent_prov.api_key = check_setting_str(CFG, prov_id_uc, prov_id + '_api_key', '')
|
|
|
|
if hasattr(torrent_prov, 'hash'):
|
|
|
|
torrent_prov.hash = check_setting_str(CFG, prov_id_uc, prov_id + '_hash', '')
|
|
|
|
if hasattr(torrent_prov, 'digest'):
|
|
|
|
torrent_prov.digest = check_setting_str(CFG, prov_id_uc, prov_id + '_digest', '')
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
for user_type in ['username', 'uid']:
|
|
|
|
if hasattr(torrent_prov, user_type):
|
|
|
|
setattr(torrent_prov, user_type,
|
|
|
|
check_setting_str(CFG, prov_id_uc, '%s_%s' % (prov_id, user_type), ''))
|
2015-07-13 09:39:20 +00:00
|
|
|
if hasattr(torrent_prov, 'password'):
|
|
|
|
torrent_prov.password = check_setting_str(CFG, prov_id_uc, prov_id + '_password', '')
|
|
|
|
if hasattr(torrent_prov, 'passkey'):
|
|
|
|
torrent_prov.passkey = check_setting_str(CFG, prov_id_uc, prov_id + '_passkey', '')
|
|
|
|
if hasattr(torrent_prov, 'confirmed'):
|
|
|
|
torrent_prov.confirmed = bool(check_setting_int(CFG, prov_id_uc, prov_id + '_confirmed', 0))
|
|
|
|
if hasattr(torrent_prov, 'options'):
|
|
|
|
torrent_prov.options = check_setting_str(CFG, prov_id_uc, prov_id + '_options', '')
|
2015-08-24 23:55:23 +00:00
|
|
|
if hasattr(torrent_prov, '_seed_ratio'):
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
torrent_prov._seed_ratio = check_setting_str(CFG, prov_id_uc, prov_id + '_seed_ratio', '')
|
2015-09-12 17:06:54 +00:00
|
|
|
if hasattr(torrent_prov, 'seed_time'):
|
|
|
|
torrent_prov.seed_time = check_setting_int(CFG, prov_id_uc, prov_id + '_seed_time', '')
|
2015-07-13 09:39:20 +00:00
|
|
|
if hasattr(torrent_prov, 'minseed'):
|
|
|
|
torrent_prov.minseed = check_setting_int(CFG, prov_id_uc, prov_id + '_minseed', 0)
|
|
|
|
if hasattr(torrent_prov, 'minleech'):
|
|
|
|
torrent_prov.minleech = check_setting_int(CFG, prov_id_uc, prov_id + '_minleech', 0)
|
|
|
|
if hasattr(torrent_prov, 'freeleech'):
|
|
|
|
torrent_prov.freeleech = bool(check_setting_int(CFG, prov_id_uc, prov_id + '_freeleech', 0))
|
2015-09-18 00:06:34 +00:00
|
|
|
if hasattr(torrent_prov, 'reject_m2ts'):
|
|
|
|
torrent_prov.reject_m2ts = bool(check_setting_int(CFG, prov_id_uc, prov_id + '_reject_m2ts', 0))
|
2015-07-13 09:39:20 +00:00
|
|
|
if hasattr(torrent_prov, 'enable_recentsearch'):
|
|
|
|
torrent_prov.enable_recentsearch = bool(check_setting_int(CFG, prov_id_uc,
|
2016-09-25 23:46:36 +00:00
|
|
|
prov_id + '_enable_recentsearch', 1)) or \
|
2016-11-05 20:28:19 +00:00
|
|
|
not getattr(torrent_prov, 'supports_backlog')
|
2015-07-13 09:39:20 +00:00
|
|
|
if hasattr(torrent_prov, 'enable_backlog'):
|
|
|
|
torrent_prov.enable_backlog = bool(check_setting_int(CFG, prov_id_uc, prov_id + '_enable_backlog', 1))
|
2017-01-01 20:24:41 +00:00
|
|
|
if hasattr(torrent_prov, 'enable_scheduled_backlog'):
|
2017-02-20 17:24:33 +00:00
|
|
|
torrent_prov.enable_scheduled_backlog = bool(check_setting_int(
|
|
|
|
CFG, prov_id_uc, prov_id + '_enable_scheduled_backlog', 1))
|
2015-08-24 23:55:23 +00:00
|
|
|
if hasattr(torrent_prov, 'search_mode'):
|
|
|
|
torrent_prov.search_mode = check_setting_str(CFG, prov_id_uc, prov_id + '_search_mode', 'eponly')
|
|
|
|
if hasattr(torrent_prov, 'search_fallback'):
|
|
|
|
torrent_prov.search_fallback = bool(check_setting_int(CFG, prov_id_uc, prov_id + '_search_fallback', 0))
|
2016-09-30 22:20:28 +00:00
|
|
|
if hasattr(torrent_prov, 'filter'):
|
|
|
|
torrent_prov.filter = check_setting_str(CFG, prov_id_uc, prov_id + '_filter', [])
|
2015-07-13 09:39:20 +00:00
|
|
|
|
|
|
|
for nzb_prov in [curProvider for curProvider in providers.sortedProviderList()
|
|
|
|
if GenericProvider.NZB == curProvider.providerType]:
|
|
|
|
prov_id = nzb_prov.get_id()
|
|
|
|
prov_id_uc = nzb_prov.get_id().upper()
|
|
|
|
nzb_prov.enabled = bool(
|
|
|
|
check_setting_int(CFG, prov_id_uc, prov_id, 0))
|
|
|
|
if hasattr(nzb_prov, 'api_key'):
|
|
|
|
nzb_prov.api_key = check_setting_str(CFG, prov_id_uc, prov_id + '_api_key', '')
|
|
|
|
if hasattr(nzb_prov, 'username'):
|
|
|
|
nzb_prov.username = check_setting_str(CFG, prov_id_uc, prov_id + '_username', '')
|
|
|
|
if hasattr(nzb_prov, 'search_mode'):
|
|
|
|
nzb_prov.search_mode = check_setting_str(CFG, prov_id_uc, prov_id + '_search_mode', 'eponly')
|
|
|
|
if hasattr(nzb_prov, 'search_fallback'):
|
|
|
|
nzb_prov.search_fallback = bool(check_setting_int(CFG, prov_id_uc, prov_id + '_search_fallback', 0))
|
|
|
|
if hasattr(nzb_prov, 'enable_recentsearch'):
|
|
|
|
nzb_prov.enable_recentsearch = bool(check_setting_int(CFG, prov_id_uc,
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
prov_id + '_enable_recentsearch', 1)) or \
|
2016-11-05 20:28:19 +00:00
|
|
|
not getattr(nzb_prov, 'supports_backlog')
|
2015-07-13 09:39:20 +00:00
|
|
|
if hasattr(nzb_prov, 'enable_backlog'):
|
|
|
|
nzb_prov.enable_backlog = bool(check_setting_int(CFG, prov_id_uc, prov_id + '_enable_backlog', 1))
|
2017-01-01 20:24:41 +00:00
|
|
|
if hasattr(nzb_prov, 'enable_scheduled_backlog'):
|
2017-02-20 17:24:33 +00:00
|
|
|
nzb_prov.enable_scheduled_backlog = bool(check_setting_int(
|
|
|
|
CFG, prov_id_uc, prov_id + '_enable_scheduled_backlog', 1))
|
2014-07-27 10:59:21 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
if not os.path.isfile(CONFIG_FILE):
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
logger.log(u'Unable to find \'%s\', all settings will be default!' % CONFIG_FILE, logger.DEBUG)
|
|
|
|
save_config()
|
|
|
|
elif update_config:
|
2014-03-10 05:18:05 +00:00
|
|
|
save_config()
|
2014-03-25 05:57:24 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
# start up all the threads
|
2016-12-09 15:41:49 +00:00
|
|
|
old_log = os.path.join(LOG_DIR, 'sickbeard.log')
|
|
|
|
if os.path.isfile(old_log):
|
|
|
|
try:
|
|
|
|
os.rename(old_log, os.path.join(LOG_DIR, logger.sb_log_instance.log_file))
|
|
|
|
except (StandardError, Exception):
|
|
|
|
pass
|
2016-11-14 21:33:15 +00:00
|
|
|
logger.sb_log_instance.init_logging(console_logging=console_logging)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
# initialize the main SB database
|
2015-07-13 09:39:20 +00:00
|
|
|
my_db = db.DBConnection()
|
|
|
|
db.MigrationCode(my_db)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
# initialize the cache database
|
2015-07-13 09:39:20 +00:00
|
|
|
my_db = db.DBConnection('cache.db')
|
|
|
|
db.upgradeDatabase(my_db, cache_db.InitialSchema)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-05-26 20:16:07 +00:00
|
|
|
# initialize the failed downloads database
|
2015-07-13 09:39:20 +00:00
|
|
|
my_db = db.DBConnection('failed.db')
|
|
|
|
db.upgradeDatabase(my_db, failed_db.InitialSchema)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
# fix up any db problems
|
2015-07-13 09:39:20 +00:00
|
|
|
my_db = db.DBConnection()
|
|
|
|
db.sanityCheckDatabase(my_db, mainDB.MainSanityCheck)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
# migrate the config if it needs it
|
|
|
|
migrator = ConfigMigrator(CFG)
|
|
|
|
migrator.migrate_config()
|
|
|
|
|
|
|
|
# initialize metadata_providers
|
|
|
|
metadata_provider_dict = metadata.get_metadata_generator_dict()
|
|
|
|
for cur_metadata_tuple in [(METADATA_XBMC, metadata.xbmc),
|
|
|
|
(METADATA_XBMC_12PLUS, metadata.xbmc_12plus),
|
|
|
|
(METADATA_MEDIABROWSER, metadata.mediabrowser),
|
|
|
|
(METADATA_PS3, metadata.ps3),
|
|
|
|
(METADATA_WDTV, metadata.wdtv),
|
|
|
|
(METADATA_TIVO, metadata.tivo),
|
2014-05-11 23:15:24 +00:00
|
|
|
(METADATA_MEDE8ER, metadata.mede8er),
|
2015-02-25 12:33:40 +00:00
|
|
|
(METADATA_KODI, metadata.kodi),
|
2015-07-13 09:39:20 +00:00
|
|
|
]:
|
2014-03-10 05:18:05 +00:00
|
|
|
(cur_metadata_config, cur_metadata_class) = cur_metadata_tuple
|
|
|
|
tmp_provider = cur_metadata_class.metadata_class()
|
|
|
|
tmp_provider.set_config(cur_metadata_config)
|
|
|
|
metadata_provider_dict[tmp_provider.name] = tmp_provider
|
|
|
|
|
2014-06-19 07:12:30 +00:00
|
|
|
# initialize schedulers
|
|
|
|
# updaters
|
|
|
|
update_now = datetime.timedelta(minutes=0)
|
2016-09-04 20:00:44 +00:00
|
|
|
versionCheckScheduler = scheduler.Scheduler(
|
|
|
|
version_checker.CheckVersion(),
|
|
|
|
cycleTime=datetime.timedelta(hours=UPDATE_FREQUENCY),
|
|
|
|
threadName='CHECKVERSION',
|
|
|
|
silent=False)
|
|
|
|
|
|
|
|
showQueueScheduler = scheduler.Scheduler(
|
|
|
|
show_queue.ShowQueue(),
|
|
|
|
cycleTime=datetime.timedelta(seconds=3),
|
|
|
|
threadName='SHOWQUEUE')
|
|
|
|
|
|
|
|
showUpdateScheduler = scheduler.Scheduler(
|
|
|
|
show_updater.ShowUpdater(),
|
|
|
|
cycleTime=datetime.timedelta(hours=1),
|
|
|
|
start_time=datetime.time(hour=SHOW_UPDATE_HOUR),
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
threadName='SHOWUPDATER',
|
2016-09-04 20:00:44 +00:00
|
|
|
prevent_cycle_run=showQueueScheduler.action.isShowUpdateRunning) # 3AM
|
2014-06-19 07:12:30 +00:00
|
|
|
|
|
|
|
# searchers
|
2016-09-04 20:00:44 +00:00
|
|
|
searchQueueScheduler = scheduler.Scheduler(
|
|
|
|
search_queue.SearchQueue(),
|
|
|
|
cycleTime=datetime.timedelta(seconds=3),
|
|
|
|
threadName='SEARCHQUEUE')
|
2014-06-19 07:12:30 +00:00
|
|
|
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
update_interval = datetime.timedelta(minutes=(RECENTSEARCH_FREQUENCY, 1)[4489 == RECENTSEARCH_FREQUENCY])
|
2016-09-04 20:00:44 +00:00
|
|
|
recentSearchScheduler = scheduler.Scheduler(
|
|
|
|
search_recent.RecentSearcher(),
|
|
|
|
cycleTime=update_interval,
|
2016-11-05 20:28:19 +00:00
|
|
|
run_delay=update_now if RECENTSEARCH_STARTUP else datetime.timedelta(minutes=5),
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
threadName='RECENTSEARCHER',
|
2016-09-04 20:00:44 +00:00
|
|
|
prevent_cycle_run=searchQueueScheduler.action.is_recentsearch_in_progress)
|
|
|
|
|
|
|
|
if [x for x in providers.sortedProviderList() if x.is_active() and
|
|
|
|
x.enable_backlog and x.providerType == GenericProvider.NZB]:
|
|
|
|
nextbacklogpossible = datetime.datetime.fromtimestamp(
|
|
|
|
search_backlog.BacklogSearcher().last_runtime) + datetime.timedelta(hours=23)
|
|
|
|
now = datetime.datetime.now()
|
|
|
|
if nextbacklogpossible > now:
|
|
|
|
time_diff = nextbacklogpossible - now
|
|
|
|
if (time_diff > datetime.timedelta(hours=12) and
|
|
|
|
nextbacklogpossible - datetime.timedelta(hours=12) > now):
|
|
|
|
time_diff = time_diff - datetime.timedelta(hours=12)
|
|
|
|
else:
|
|
|
|
time_diff = datetime.timedelta(minutes=0)
|
|
|
|
backlogdelay = helpers.tryInt((time_diff.total_seconds() / 60) + 10, 10)
|
|
|
|
else:
|
|
|
|
backlogdelay = 10
|
|
|
|
backlogSearchScheduler = search_backlog.BacklogSearchScheduler(
|
|
|
|
search_backlog.BacklogSearcher(),
|
|
|
|
cycleTime=datetime.timedelta(minutes=get_backlog_cycle_time()),
|
|
|
|
run_delay=datetime.timedelta(minutes=backlogdelay),
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
threadName='BACKLOG',
|
2016-09-04 20:00:44 +00:00
|
|
|
prevent_cycle_run=searchQueueScheduler.action.is_standard_backlog_in_progress)
|
2014-06-19 07:12:30 +00:00
|
|
|
|
2016-04-29 19:15:34 +00:00
|
|
|
propers_searcher = search_propers.ProperSearcher()
|
|
|
|
item = [(k, n, v) for (k, n, v) in propers_searcher.search_intervals if k == CHECK_PROPERS_INTERVAL]
|
|
|
|
if item:
|
|
|
|
update_interval = datetime.timedelta(minutes=item[0][2])
|
2014-06-19 07:12:30 +00:00
|
|
|
run_at = None
|
|
|
|
else:
|
|
|
|
update_interval = datetime.timedelta(hours=1)
|
|
|
|
run_at = datetime.time(hour=1) # 1 AM
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-09-04 20:00:44 +00:00
|
|
|
properFinderScheduler = scheduler.Scheduler(
|
|
|
|
propers_searcher,
|
|
|
|
cycleTime=update_interval,
|
|
|
|
run_delay=update_interval,
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
start_time=run_at,
|
|
|
|
threadName='FINDPROPERS',
|
2016-09-04 20:00:44 +00:00
|
|
|
prevent_cycle_run=searchQueueScheduler.action.is_propersearch_in_progress)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-06-19 07:12:30 +00:00
|
|
|
# processors
|
2016-09-04 20:00:44 +00:00
|
|
|
autoPostProcesserScheduler = scheduler.Scheduler(
|
|
|
|
auto_post_processer.PostProcesser(),
|
2016-11-05 20:28:19 +00:00
|
|
|
cycleTime=datetime.timedelta(minutes=AUTOPOSTPROCESSER_FREQUENCY),
|
2016-09-04 20:00:44 +00:00
|
|
|
threadName='POSTPROCESSER',
|
|
|
|
silent=not PROCESS_AUTOMATICALLY)
|
2016-11-05 20:28:19 +00:00
|
|
|
"""
|
2016-09-04 20:00:44 +00:00
|
|
|
traktCheckerScheduler = scheduler.Scheduler(
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
traktChecker.TraktChecker(), cycleTime=datetime.timedelta(hours=1),
|
|
|
|
threadName='TRAKTCHECKER', silent=not USE_TRAKT)
|
2016-11-05 20:28:19 +00:00
|
|
|
"""
|
2016-09-04 20:00:44 +00:00
|
|
|
subtitlesFinderScheduler = scheduler.Scheduler(
|
|
|
|
subtitles.SubtitlesFinder(),
|
|
|
|
cycleTime=datetime.timedelta(hours=SUBTITLES_FINDER_FREQUENCY),
|
|
|
|
threadName='FINDSUBTITLES',
|
|
|
|
silent=not USE_SUBTITLES)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-05-26 20:16:07 +00:00
|
|
|
showList = []
|
|
|
|
|
2016-09-04 20:00:44 +00:00
|
|
|
background_mapping_task = threading.Thread(name='LOAD-MAPPINGS', target=indexermapper.load_mapped_ids)
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
__INITIALIZED__ = True
|
|
|
|
return True
|
|
|
|
|
2014-08-29 05:16:25 +00:00
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
def enabled_schedulers(is_init=False):
|
|
|
|
# ([], [traktCheckerScheduler])[USE_TRAKT] + \
|
|
|
|
for s in ([], [events])[is_init] + \
|
|
|
|
[recentSearchScheduler, backlogSearchScheduler, showUpdateScheduler,
|
|
|
|
versionCheckScheduler, showQueueScheduler, searchQueueScheduler] + \
|
|
|
|
([], [properFinderScheduler])[DOWNLOAD_PROPERS] + \
|
|
|
|
([], [autoPostProcesserScheduler])[PROCESS_AUTOMATICALLY] + \
|
|
|
|
([], [subtitlesFinderScheduler])[USE_SUBTITLES] + \
|
|
|
|
([events], [])[is_init]:
|
|
|
|
yield s
|
|
|
|
|
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
def start():
|
2016-11-05 20:28:19 +00:00
|
|
|
global started
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
with INIT_LOCK:
|
|
|
|
if __INITIALIZED__:
|
2016-09-04 20:00:44 +00:00
|
|
|
# Load all Indexer mappings in background
|
2016-11-05 20:28:19 +00:00
|
|
|
indexermapper.defunct_indexer = [
|
|
|
|
i for i in indexerApi().all_indexers if indexerApi(i).config.get('defunct')]
|
2016-09-04 20:00:44 +00:00
|
|
|
indexermapper.indexer_list = [i for i in indexerApi().all_indexers]
|
|
|
|
background_mapping_task.start()
|
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
for thread in enabled_schedulers(is_init=True):
|
|
|
|
thread.start()
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
started = True
|
2014-05-12 08:52:14 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
def restart(soft=True):
|
|
|
|
if soft:
|
|
|
|
halt()
|
|
|
|
save_all()
|
|
|
|
logger.log(u'Re-initializing all data')
|
|
|
|
initialize()
|
|
|
|
else:
|
|
|
|
events.put(events.SystemEvent.RESTART)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-10-24 15:31:11 +00:00
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
def sig_handler(signum=None, _=None):
|
|
|
|
is_ctrlbreak = 'win32' == sys.platform and signal.SIGBREAK == signum
|
|
|
|
msg = u'Signal "%s" found' % (signal.SIGINT == signum and 'CTRL-C' or is_ctrlbreak and 'CTRL+BREAK' or
|
|
|
|
signal.SIGTERM == signum and 'Termination' or signum)
|
|
|
|
if None is signum or signum in (signal.SIGINT, signal.SIGTERM) or is_ctrlbreak:
|
|
|
|
logger.log('%s, saving and exiting...' % msg)
|
|
|
|
events.put(events.SystemEvent.SHUTDOWN)
|
|
|
|
else:
|
|
|
|
logger.log('%s, not exiting' % msg)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
def halt():
|
2016-10-23 02:23:44 +00:00
|
|
|
global __INITIALIZED__, started
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
with INIT_LOCK:
|
|
|
|
|
|
|
|
if __INITIALIZED__:
|
|
|
|
|
2015-07-13 09:39:20 +00:00
|
|
|
logger.log(u'Aborting all threads')
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
for thread in enabled_schedulers():
|
2016-10-23 02:23:44 +00:00
|
|
|
thread.stop.set()
|
|
|
|
|
2016-11-05 20:28:19 +00:00
|
|
|
for thread in enabled_schedulers():
|
2016-10-23 02:23:44 +00:00
|
|
|
logger.log('Waiting for the %s thread to exit' % thread.name)
|
|
|
|
try:
|
|
|
|
thread.join(10)
|
|
|
|
except RuntimeError:
|
|
|
|
pass
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-05-26 06:29:22 +00:00
|
|
|
if ADBA_CONNECTION:
|
2016-02-19 17:38:38 +00:00
|
|
|
try:
|
|
|
|
ADBA_CONNECTION.logout()
|
|
|
|
except AniDBBannedError as e:
|
|
|
|
logger.log(u'ANIDB Error %s' % ex(e), logger.DEBUG)
|
2016-11-05 20:28:19 +00:00
|
|
|
except AniDBError:
|
2016-02-19 17:38:38 +00:00
|
|
|
pass
|
2015-07-13 09:39:20 +00:00
|
|
|
logger.log(u'Waiting for the ANIDB CONNECTION thread to exit')
|
2014-05-26 06:29:22 +00:00
|
|
|
try:
|
2014-07-18 06:21:11 +00:00
|
|
|
ADBA_CONNECTION.join(10)
|
2016-11-05 20:28:19 +00:00
|
|
|
except (StandardError, Exception):
|
2014-05-26 06:29:22 +00:00
|
|
|
pass
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
__INITIALIZED__ = False
|
2014-07-02 18:51:14 +00:00
|
|
|
started = False
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-08-29 05:16:25 +00:00
|
|
|
|
2015-09-18 00:06:34 +00:00
|
|
|
def save_all():
|
2014-03-10 05:18:05 +00:00
|
|
|
global showList
|
|
|
|
|
|
|
|
# write all shows
|
2015-07-13 09:39:20 +00:00
|
|
|
logger.log(u'Saving all shows to the database')
|
2014-03-10 05:18:05 +00:00
|
|
|
for show in showList:
|
|
|
|
show.saveToDB()
|
|
|
|
|
|
|
|
# save config
|
2015-07-13 09:39:20 +00:00
|
|
|
logger.log(u'Saving config file to disk')
|
2014-03-10 05:18:05 +00:00
|
|
|
save_config()
|
|
|
|
|
2014-07-27 10:59:21 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
def save_config():
|
|
|
|
new_config = ConfigObj()
|
|
|
|
new_config.filename = CONFIG_FILE
|
2014-03-25 05:57:24 +00:00
|
|
|
|
2016-09-04 20:00:44 +00:00
|
|
|
# For passwords you must include the word `password` in the item_name and
|
|
|
|
# add `helpers.encrypt(ITEM_NAME, ENCRYPTION_VERSION)` in save_config()
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General'] = {}
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
new_config['General']['config_version'] = CONFIG_VERSION
|
2014-07-29 00:11:16 +00:00
|
|
|
new_config['General']['branch'] = BRANCH
|
2014-10-27 00:29:12 +00:00
|
|
|
new_config['General']['git_remote'] = GIT_REMOTE
|
2014-08-15 06:54:22 +00:00
|
|
|
new_config['General']['cur_commit_hash'] = CUR_COMMIT_HASH
|
2014-08-18 00:15:02 +00:00
|
|
|
new_config['General']['cur_commit_branch'] = CUR_COMMIT_BRANCH
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['encryption_version'] = int(ENCRYPTION_VERSION)
|
|
|
|
new_config['General']['log_dir'] = ACTUAL_LOG_DIR if ACTUAL_LOG_DIR else 'Logs'
|
2015-03-24 20:52:23 +00:00
|
|
|
new_config['General']['file_logging_preset'] = FILE_LOGGING_PRESET if FILE_LOGGING_PRESET else 'DB'
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['socket_timeout'] = SOCKET_TIMEOUT
|
|
|
|
new_config['General']['web_host'] = WEB_HOST
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
new_config['General']['web_port'] = WEB_PORT
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['web_ipv6'] = int(WEB_IPV6)
|
2017-02-06 13:43:06 +00:00
|
|
|
new_config['General']['web_ipv64'] = int(WEB_IPV64)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['web_log'] = int(WEB_LOG)
|
|
|
|
new_config['General']['web_root'] = WEB_ROOT
|
|
|
|
new_config['General']['web_username'] = WEB_USERNAME
|
|
|
|
new_config['General']['web_password'] = helpers.encrypt(WEB_PASSWORD, ENCRYPTION_VERSION)
|
2014-05-17 11:40:26 +00:00
|
|
|
new_config['General']['cpu_preset'] = CPU_PRESET
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['anon_redirect'] = ANON_REDIRECT
|
|
|
|
new_config['General']['use_api'] = int(USE_API)
|
|
|
|
new_config['General']['api_key'] = API_KEY
|
2014-04-28 22:22:44 +00:00
|
|
|
new_config['General']['debug'] = int(DEBUG)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['enable_https'] = int(ENABLE_HTTPS)
|
|
|
|
new_config['General']['https_cert'] = HTTPS_CERT
|
|
|
|
new_config['General']['https_key'] = HTTPS_KEY
|
2014-05-04 18:47:09 +00:00
|
|
|
new_config['General']['handle_reverse_proxy'] = int(HANDLE_REVERSE_PROXY)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['use_nzbs'] = int(USE_NZBS)
|
|
|
|
new_config['General']['use_torrents'] = int(USE_TORRENTS)
|
|
|
|
new_config['General']['nzb_method'] = NZB_METHOD
|
|
|
|
new_config['General']['torrent_method'] = TORRENT_METHOD
|
|
|
|
new_config['General']['usenet_retention'] = int(USENET_RETENTION)
|
2014-05-21 20:26:24 +00:00
|
|
|
new_config['General']['autopostprocesser_frequency'] = int(AUTOPOSTPROCESSER_FREQUENCY)
|
2014-12-22 18:30:53 +00:00
|
|
|
new_config['General']['recentsearch_frequency'] = int(RECENTSEARCH_FREQUENCY)
|
2014-05-12 10:34:18 +00:00
|
|
|
new_config['General']['backlog_frequency'] = int(BACKLOG_FREQUENCY)
|
2014-04-26 21:24:29 +00:00
|
|
|
new_config['General']['update_frequency'] = int(UPDATE_FREQUENCY)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['download_propers'] = int(DOWNLOAD_PROPERS)
|
2017-02-15 12:27:21 +00:00
|
|
|
new_config['General']['propers_webdl_onegrp'] = int(PROPERS_WEBDL_ONEGRP)
|
2014-05-14 22:23:59 +00:00
|
|
|
new_config['General']['check_propers_interval'] = CHECK_PROPERS_INTERVAL
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['allow_high_priority'] = int(ALLOW_HIGH_PRIORITY)
|
2014-12-22 18:30:53 +00:00
|
|
|
new_config['General']['recentsearch_startup'] = int(RECENTSEARCH_STARTUP)
|
2016-10-26 00:36:13 +00:00
|
|
|
new_config['General']['backlog_nofull'] = int(BACKLOG_NOFULL)
|
2014-05-17 22:14:31 +00:00
|
|
|
new_config['General']['skip_removed_files'] = int(SKIP_REMOVED_FILES)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['quality_default'] = int(QUALITY_DEFAULT)
|
|
|
|
new_config['General']['status_default'] = int(STATUS_DEFAULT)
|
2015-03-10 00:13:58 +00:00
|
|
|
new_config['General']['wanted_begin_default'] = int(WANTED_BEGIN_DEFAULT)
|
|
|
|
new_config['General']['wanted_latest_default'] = int(WANTED_LATEST_DEFAULT)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['flatten_folders_default'] = int(FLATTEN_FOLDERS_DEFAULT)
|
2014-04-27 08:17:28 +00:00
|
|
|
new_config['General']['indexer_default'] = int(INDEXER_DEFAULT)
|
2014-05-21 18:17:52 +00:00
|
|
|
new_config['General']['indexer_timeout'] = int(INDEXER_TIMEOUT)
|
2014-05-26 06:29:22 +00:00
|
|
|
new_config['General']['anime_default'] = int(ANIME_DEFAULT)
|
2014-06-02 03:43:37 +00:00
|
|
|
new_config['General']['scene_default'] = int(SCENE_DEFAULT)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['provider_order'] = ' '.join(PROVIDER_ORDER)
|
2016-11-07 13:27:49 +00:00
|
|
|
new_config['General']['provider_homes'] = '%s' % dict([(pid, v) for pid, v in PROVIDER_HOMES.items() if pid in [
|
|
|
|
p.get_id() for p in [x for x in providers.sortedProviderList() if GenericProvider.TORRENT == x.providerType]]])
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['version_notify'] = int(VERSION_NOTIFY)
|
2014-04-23 07:12:51 +00:00
|
|
|
new_config['General']['auto_update'] = int(AUTO_UPDATE)
|
2014-07-03 07:16:15 +00:00
|
|
|
new_config['General']['notify_on_update'] = int(NOTIFY_ON_UPDATE)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['naming_strip_year'] = int(NAMING_STRIP_YEAR)
|
|
|
|
new_config['General']['naming_pattern'] = NAMING_PATTERN
|
|
|
|
new_config['General']['naming_custom_abd'] = int(NAMING_CUSTOM_ABD)
|
|
|
|
new_config['General']['naming_abd_pattern'] = NAMING_ABD_PATTERN
|
2014-04-28 09:15:29 +00:00
|
|
|
new_config['General']['naming_custom_sports'] = int(NAMING_CUSTOM_SPORTS)
|
|
|
|
new_config['General']['naming_sports_pattern'] = NAMING_SPORTS_PATTERN
|
2014-10-04 05:08:48 +00:00
|
|
|
new_config['General']['naming_custom_anime'] = int(NAMING_CUSTOM_ANIME)
|
|
|
|
new_config['General']['naming_anime_pattern'] = NAMING_ANIME_PATTERN
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['naming_multi_ep'] = int(NAMING_MULTI_EP)
|
2014-09-28 09:20:42 +00:00
|
|
|
new_config['General']['naming_anime_multi_ep'] = int(NAMING_ANIME_MULTI_EP)
|
2014-05-26 06:29:22 +00:00
|
|
|
new_config['General']['naming_anime'] = int(NAMING_ANIME)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['launch_browser'] = int(LAUNCH_BROWSER)
|
|
|
|
new_config['General']['update_shows_on_start'] = int(UPDATE_SHOWS_ON_START)
|
2015-02-15 14:54:08 +00:00
|
|
|
new_config['General']['show_update_hour'] = int(SHOW_UPDATE_HOUR)
|
2014-11-05 05:36:16 +00:00
|
|
|
new_config['General']['trash_remove_show'] = int(TRASH_REMOVE_SHOW)
|
|
|
|
new_config['General']['trash_rotate_logs'] = int(TRASH_ROTATE_LOGS)
|
2014-11-22 17:02:22 +00:00
|
|
|
new_config['General']['home_search_focus'] = int(HOME_SEARCH_FOCUS)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['sort_article'] = int(SORT_ARTICLE)
|
2014-04-25 11:11:52 +00:00
|
|
|
new_config['General']['proxy_setting'] = PROXY_SETTING
|
2014-10-07 12:55:17 +00:00
|
|
|
new_config['General']['proxy_indexers'] = int(PROXY_INDEXERS)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
new_config['General']['metadata_xbmc'] = METADATA_XBMC
|
|
|
|
new_config['General']['metadata_xbmc_12plus'] = METADATA_XBMC_12PLUS
|
|
|
|
new_config['General']['metadata_mediabrowser'] = METADATA_MEDIABROWSER
|
|
|
|
new_config['General']['metadata_ps3'] = METADATA_PS3
|
|
|
|
new_config['General']['metadata_wdtv'] = METADATA_WDTV
|
|
|
|
new_config['General']['metadata_tivo'] = METADATA_TIVO
|
2014-05-11 23:15:24 +00:00
|
|
|
new_config['General']['metadata_mede8er'] = METADATA_MEDE8ER
|
2015-02-25 12:33:40 +00:00
|
|
|
new_config['General']['metadata_kodi'] = METADATA_KODI
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2014-09-15 08:57:50 +00:00
|
|
|
new_config['General']['backlog_days'] = int(BACKLOG_DAYS)
|
2015-04-05 18:12:15 +00:00
|
|
|
new_config['General']['search_unaired'] = int(SEARCH_UNAIRED)
|
2016-09-04 20:00:44 +00:00
|
|
|
new_config['General']['unaired_recent_search_only'] = int(UNAIRED_RECENT_SEARCH_ONLY)
|
2014-09-15 08:57:50 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['cache_dir'] = ACTUAL_CACHE_DIR if ACTUAL_CACHE_DIR else 'cache'
|
|
|
|
new_config['General']['root_dirs'] = ROOT_DIRS if ROOT_DIRS else ''
|
|
|
|
new_config['General']['tv_download_dir'] = TV_DOWNLOAD_DIR
|
|
|
|
new_config['General']['keep_processed_dir'] = int(KEEP_PROCESSED_DIR)
|
|
|
|
new_config['General']['process_method'] = PROCESS_METHOD
|
|
|
|
new_config['General']['move_associated_files'] = int(MOVE_ASSOCIATED_FILES)
|
2015-07-13 09:39:20 +00:00
|
|
|
new_config['General']['postpone_if_sync_files'] = int(POSTPONE_IF_SYNC_FILES)
|
2014-04-06 16:25:46 +00:00
|
|
|
new_config['General']['nfo_rename'] = int(NFO_RENAME)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['process_automatically'] = int(PROCESS_AUTOMATICALLY)
|
|
|
|
new_config['General']['unpack'] = int(UNPACK)
|
|
|
|
new_config['General']['rename_episodes'] = int(RENAME_EPISODES)
|
2014-05-14 12:33:36 +00:00
|
|
|
new_config['General']['airdate_episodes'] = int(AIRDATE_EPISODES)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['create_missing_show_dirs'] = int(CREATE_MISSING_SHOW_DIRS)
|
|
|
|
new_config['General']['add_shows_wo_dir'] = int(ADD_SHOWS_WO_DIR)
|
2016-06-14 22:09:30 +00:00
|
|
|
new_config['General']['remove_filename_chars'] = REMOVE_FILENAME_CHARS
|
2017-02-20 17:24:33 +00:00
|
|
|
new_config['General']['import_default_checked_shows'] = int(IMPORT_DEFAULT_CHECKED_SHOWS)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
new_config['General']['extra_scripts'] = '|'.join(EXTRA_SCRIPTS)
|
|
|
|
new_config['General']['git_path'] = GIT_PATH
|
|
|
|
new_config['General']['ignore_words'] = IGNORE_WORDS
|
2014-10-05 15:10:43 +00:00
|
|
|
new_config['General']['require_words'] = REQUIRE_WORDS
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['General']['calendar_unprotected'] = int(CALENDAR_UNPROTECTED)
|
|
|
|
|
|
|
|
new_config['Blackhole'] = {}
|
|
|
|
new_config['Blackhole']['nzb_dir'] = NZB_DIR
|
|
|
|
new_config['Blackhole']['torrent_dir'] = TORRENT_DIR
|
|
|
|
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
for src in [x for x in providers.sortedProviderList() if GenericProvider.TORRENT == x.providerType]:
|
|
|
|
src_id = src.get_id()
|
|
|
|
src_id_uc = src_id.upper()
|
|
|
|
new_config[src_id_uc] = {}
|
|
|
|
new_config[src_id_uc][src_id] = int(src.enabled)
|
|
|
|
if getattr(src, 'url_edit', None):
|
|
|
|
new_config[src_id_uc][src_id + '_url_home'] = src.url_home
|
|
|
|
|
|
|
|
if hasattr(src, 'password'):
|
|
|
|
new_config[src_id_uc][src_id + '_password'] = helpers.encrypt(src.password, ENCRYPTION_VERSION)
|
|
|
|
|
|
|
|
for (setting, value) in [
|
|
|
|
('%s_%s' % (src_id, k), getattr(src, k, v) if not v else helpers.tryInt(getattr(src, k, None)))
|
|
|
|
for (k, v) in [
|
|
|
|
('api_key', None), ('passkey', None), ('digest', None), ('hash', None), ('username', ''), ('uid', ''),
|
|
|
|
('minseed', 1), ('minleech', 1), ('confirmed', 1), ('freeleech', 1), ('reject_m2ts', 1),
|
|
|
|
('enable_recentsearch', 1), ('enable_backlog', 1), ('search_mode', None), ('search_fallback', 1),
|
2017-01-01 20:24:41 +00:00
|
|
|
('seed_time', None), ('enable_scheduled_backlog', 1)] if hasattr(src, k)]:
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
new_config[src_id_uc][setting] = value
|
|
|
|
|
|
|
|
if hasattr(src, '_seed_ratio'):
|
|
|
|
new_config[src_id_uc][src_id + '_seed_ratio'] = src.seed_ratio()
|
2016-09-30 22:20:28 +00:00
|
|
|
if hasattr(src, 'filter'):
|
|
|
|
new_config[src_id_uc][src_id + '_filter'] = src.filter
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
|
|
|
|
for src in [x for x in providers.sortedProviderList() if GenericProvider.NZB == x.providerType]:
|
|
|
|
src_id = src.get_id()
|
|
|
|
src_id_uc = src.get_id().upper()
|
|
|
|
new_config[src_id_uc] = {}
|
|
|
|
new_config[src_id_uc][src_id] = int(src.enabled)
|
|
|
|
|
|
|
|
for attr in [x for x in ['api_key', 'username', 'search_mode'] if hasattr(src, x)]:
|
|
|
|
new_config[src_id_uc]['%s_%s' % (src_id, attr)] = getattr(src, attr)
|
|
|
|
|
2017-01-01 20:24:41 +00:00
|
|
|
for attr in [x for x in ['enable_recentsearch', 'enable_backlog', 'search_fallback',
|
|
|
|
'enable_scheduled_backlog'] if hasattr(src, x)]:
|
Change validate and improve specific Torrent provider connections, IPT, KAT, SCC, TPB, TB, TD, TT.
Change refactor cache for torrent providers to reduce code.
Change improve search category selection BMTV, FSH, FF, TB.
Change identify more SD release qualities.
Change update SpeedCD, MoreThan, TVChaosuk.
Add torrent provider HD4Free.
Remove torrent provider BitSoup.
Change only create threads for providers needing a recent search instead of for all enabled.
Add 4489 as experimental value to "Recent search frequency" to use provider freqs instead of fixed width for all.
Fix searching nzb season packs.
Change remove some logging cruft.
2016-03-24 18:24:14 +00:00
|
|
|
new_config[src_id_uc]['%s_%s' % (src_id, attr)] = helpers.tryInt(getattr(src, attr, None))
|
2014-05-20 02:14:06 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['SABnzbd'] = {}
|
|
|
|
new_config['SABnzbd']['sab_username'] = SAB_USERNAME
|
|
|
|
new_config['SABnzbd']['sab_password'] = helpers.encrypt(SAB_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
new_config['SABnzbd']['sab_apikey'] = SAB_APIKEY
|
|
|
|
new_config['SABnzbd']['sab_category'] = SAB_CATEGORY
|
|
|
|
new_config['SABnzbd']['sab_host'] = SAB_HOST
|
|
|
|
|
|
|
|
new_config['NZBget'] = {}
|
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
new_config['NZBget']['nzbget_username'] = NZBGET_USERNAME
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['NZBget']['nzbget_password'] = helpers.encrypt(NZBGET_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
new_config['NZBget']['nzbget_category'] = NZBGET_CATEGORY
|
|
|
|
new_config['NZBget']['nzbget_host'] = NZBGET_HOST
|
2014-05-05 22:48:28 +00:00
|
|
|
new_config['NZBget']['nzbget_use_https'] = int(NZBGET_USE_HTTPS)
|
2014-08-11 20:07:02 +00:00
|
|
|
new_config['NZBget']['nzbget_priority'] = NZBGET_PRIORITY
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
new_config['TORRENT'] = {}
|
|
|
|
new_config['TORRENT']['torrent_username'] = TORRENT_USERNAME
|
|
|
|
new_config['TORRENT']['torrent_password'] = helpers.encrypt(TORRENT_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
new_config['TORRENT']['torrent_host'] = TORRENT_HOST
|
|
|
|
new_config['TORRENT']['torrent_path'] = TORRENT_PATH
|
2014-05-12 07:05:16 +00:00
|
|
|
new_config['TORRENT']['torrent_seed_time'] = int(TORRENT_SEED_TIME)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['TORRENT']['torrent_paused'] = int(TORRENT_PAUSED)
|
|
|
|
new_config['TORRENT']['torrent_high_bandwidth'] = int(TORRENT_HIGH_BANDWIDTH)
|
|
|
|
new_config['TORRENT']['torrent_label'] = TORRENT_LABEL
|
2014-05-11 07:42:53 +00:00
|
|
|
new_config['TORRENT']['torrent_verify_cert'] = int(TORRENT_VERIFY_CERT)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2016-02-19 17:38:38 +00:00
|
|
|
new_config['Emby'] = {}
|
|
|
|
new_config['Emby']['use_emby'] = int(USE_EMBY)
|
|
|
|
new_config['Emby']['emby_update_library'] = int(EMBY_UPDATE_LIBRARY)
|
|
|
|
new_config['Emby']['emby_host'] = EMBY_HOST
|
|
|
|
new_config['Emby']['emby_apikey'] = EMBY_APIKEY
|
2014-03-10 05:18:05 +00:00
|
|
|
|
2015-02-25 12:33:40 +00:00
|
|
|
new_config['Kodi'] = {}
|
|
|
|
new_config['Kodi']['use_kodi'] = int(USE_KODI)
|
|
|
|
new_config['Kodi']['kodi_always_on'] = int(KODI_ALWAYS_ON)
|
|
|
|
new_config['Kodi']['kodi_notify_onsnatch'] = int(KODI_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Kodi']['kodi_notify_ondownload'] = int(KODI_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Kodi']['kodi_notify_onsubtitledownload'] = int(KODI_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Kodi']['kodi_update_library'] = int(KODI_UPDATE_LIBRARY)
|
|
|
|
new_config['Kodi']['kodi_update_full'] = int(KODI_UPDATE_FULL)
|
|
|
|
new_config['Kodi']['kodi_update_onlyfirst'] = int(KODI_UPDATE_ONLYFIRST)
|
|
|
|
new_config['Kodi']['kodi_host'] = KODI_HOST
|
|
|
|
new_config['Kodi']['kodi_username'] = KODI_USERNAME
|
|
|
|
new_config['Kodi']['kodi_password'] = helpers.encrypt(KODI_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
|
2016-02-19 17:38:38 +00:00
|
|
|
new_config['XBMC'] = {}
|
|
|
|
new_config['XBMC']['use_xbmc'] = int(USE_XBMC)
|
|
|
|
new_config['XBMC']['xbmc_always_on'] = int(XBMC_ALWAYS_ON)
|
|
|
|
new_config['XBMC']['xbmc_notify_onsnatch'] = int(XBMC_NOTIFY_ONSNATCH)
|
|
|
|
new_config['XBMC']['xbmc_notify_ondownload'] = int(XBMC_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['XBMC']['xbmc_notify_onsubtitledownload'] = int(XBMC_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['XBMC']['xbmc_update_library'] = int(XBMC_UPDATE_LIBRARY)
|
|
|
|
new_config['XBMC']['xbmc_update_full'] = int(XBMC_UPDATE_FULL)
|
|
|
|
new_config['XBMC']['xbmc_update_onlyfirst'] = int(XBMC_UPDATE_ONLYFIRST)
|
|
|
|
new_config['XBMC']['xbmc_host'] = XBMC_HOST
|
|
|
|
new_config['XBMC']['xbmc_username'] = XBMC_USERNAME
|
|
|
|
new_config['XBMC']['xbmc_password'] = helpers.encrypt(XBMC_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['Plex'] = {}
|
|
|
|
new_config['Plex']['use_plex'] = int(USE_PLEX)
|
|
|
|
new_config['Plex']['plex_notify_onsnatch'] = int(PLEX_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Plex']['plex_notify_ondownload'] = int(PLEX_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Plex']['plex_notify_onsubtitledownload'] = int(PLEX_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Plex']['plex_update_library'] = int(PLEX_UPDATE_LIBRARY)
|
|
|
|
new_config['Plex']['plex_server_host'] = PLEX_SERVER_HOST
|
|
|
|
new_config['Plex']['plex_host'] = PLEX_HOST
|
|
|
|
new_config['Plex']['plex_username'] = PLEX_USERNAME
|
|
|
|
new_config['Plex']['plex_password'] = helpers.encrypt(PLEX_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
|
|
|
|
new_config['Growl'] = {}
|
|
|
|
new_config['Growl']['use_growl'] = int(USE_GROWL)
|
|
|
|
new_config['Growl']['growl_notify_onsnatch'] = int(GROWL_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Growl']['growl_notify_ondownload'] = int(GROWL_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Growl']['growl_notify_onsubtitledownload'] = int(GROWL_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Growl']['growl_host'] = GROWL_HOST
|
|
|
|
new_config['Growl']['growl_password'] = helpers.encrypt(GROWL_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
|
|
|
|
new_config['Prowl'] = {}
|
|
|
|
new_config['Prowl']['use_prowl'] = int(USE_PROWL)
|
|
|
|
new_config['Prowl']['prowl_notify_onsnatch'] = int(PROWL_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Prowl']['prowl_notify_ondownload'] = int(PROWL_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Prowl']['prowl_notify_onsubtitledownload'] = int(PROWL_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Prowl']['prowl_api'] = PROWL_API
|
|
|
|
new_config['Prowl']['prowl_priority'] = PROWL_PRIORITY
|
|
|
|
|
|
|
|
new_config['Twitter'] = {}
|
|
|
|
new_config['Twitter']['use_twitter'] = int(USE_TWITTER)
|
|
|
|
new_config['Twitter']['twitter_notify_onsnatch'] = int(TWITTER_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Twitter']['twitter_notify_ondownload'] = int(TWITTER_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Twitter']['twitter_notify_onsubtitledownload'] = int(TWITTER_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Twitter']['twitter_username'] = TWITTER_USERNAME
|
|
|
|
new_config['Twitter']['twitter_password'] = helpers.encrypt(TWITTER_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
new_config['Twitter']['twitter_prefix'] = TWITTER_PREFIX
|
|
|
|
|
2014-05-07 14:23:06 +00:00
|
|
|
new_config['Boxcar2'] = {}
|
|
|
|
new_config['Boxcar2']['use_boxcar2'] = int(USE_BOXCAR2)
|
|
|
|
new_config['Boxcar2']['boxcar2_notify_onsnatch'] = int(BOXCAR2_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Boxcar2']['boxcar2_notify_ondownload'] = int(BOXCAR2_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Boxcar2']['boxcar2_notify_onsubtitledownload'] = int(BOXCAR2_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Boxcar2']['boxcar2_accesstoken'] = BOXCAR2_ACCESSTOKEN
|
2015-02-13 05:28:03 +00:00
|
|
|
new_config['Boxcar2']['boxcar2_sound'] = BOXCAR2_SOUND
|
2014-05-07 14:23:06 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['Pushover'] = {}
|
|
|
|
new_config['Pushover']['use_pushover'] = int(USE_PUSHOVER)
|
|
|
|
new_config['Pushover']['pushover_notify_onsnatch'] = int(PUSHOVER_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Pushover']['pushover_notify_ondownload'] = int(PUSHOVER_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Pushover']['pushover_notify_onsubtitledownload'] = int(PUSHOVER_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Pushover']['pushover_userkey'] = PUSHOVER_USERKEY
|
2014-06-17 20:37:09 +00:00
|
|
|
new_config['Pushover']['pushover_apikey'] = PUSHOVER_APIKEY
|
2015-02-25 11:30:52 +00:00
|
|
|
new_config['Pushover']['pushover_priority'] = int(PUSHOVER_PRIORITY)
|
|
|
|
new_config['Pushover']['pushover_device'] = PUSHOVER_DEVICE
|
|
|
|
new_config['Pushover']['pushover_sound'] = PUSHOVER_SOUND
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
new_config['Libnotify'] = {}
|
|
|
|
new_config['Libnotify']['use_libnotify'] = int(USE_LIBNOTIFY)
|
|
|
|
new_config['Libnotify']['libnotify_notify_onsnatch'] = int(LIBNOTIFY_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Libnotify']['libnotify_notify_ondownload'] = int(LIBNOTIFY_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Libnotify']['libnotify_notify_onsubtitledownload'] = int(LIBNOTIFY_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
|
|
|
|
new_config['NMJ'] = {}
|
|
|
|
new_config['NMJ']['use_nmj'] = int(USE_NMJ)
|
|
|
|
new_config['NMJ']['nmj_host'] = NMJ_HOST
|
|
|
|
new_config['NMJ']['nmj_database'] = NMJ_DATABASE
|
|
|
|
new_config['NMJ']['nmj_mount'] = NMJ_MOUNT
|
|
|
|
|
|
|
|
new_config['NMJv2'] = {}
|
|
|
|
new_config['NMJv2']['use_nmjv2'] = int(USE_NMJv2)
|
|
|
|
new_config['NMJv2']['nmjv2_host'] = NMJv2_HOST
|
|
|
|
new_config['NMJv2']['nmjv2_database'] = NMJv2_DATABASE
|
|
|
|
new_config['NMJv2']['nmjv2_dbloc'] = NMJv2_DBLOC
|
|
|
|
|
|
|
|
new_config['Synology'] = {}
|
|
|
|
new_config['Synology']['use_synoindex'] = int(USE_SYNOINDEX)
|
|
|
|
|
|
|
|
new_config['SynologyNotifier'] = {}
|
|
|
|
new_config['SynologyNotifier']['use_synologynotifier'] = int(USE_SYNOLOGYNOTIFIER)
|
|
|
|
new_config['SynologyNotifier']['synologynotifier_notify_onsnatch'] = int(SYNOLOGYNOTIFIER_NOTIFY_ONSNATCH)
|
|
|
|
new_config['SynologyNotifier']['synologynotifier_notify_ondownload'] = int(SYNOLOGYNOTIFIER_NOTIFY_ONDOWNLOAD)
|
2014-03-25 05:57:24 +00:00
|
|
|
new_config['SynologyNotifier']['synologynotifier_notify_onsubtitledownload'] = int(
|
|
|
|
SYNOLOGYNOTIFIER_NOTIFY_ONSUBTITLEDOWNLOAD)
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
new_config['Trakt'] = {}
|
|
|
|
new_config['Trakt']['use_trakt'] = int(USE_TRAKT)
|
|
|
|
new_config['Trakt']['trakt_remove_watchlist'] = int(TRAKT_REMOVE_WATCHLIST)
|
2014-08-11 11:29:35 +00:00
|
|
|
new_config['Trakt']['trakt_remove_serieslist'] = int(TRAKT_REMOVE_SERIESLIST)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['Trakt']['trakt_use_watchlist'] = int(TRAKT_USE_WATCHLIST)
|
2014-07-27 10:59:21 +00:00
|
|
|
new_config['Trakt']['trakt_method_add'] = int(TRAKT_METHOD_ADD)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['Trakt']['trakt_start_paused'] = int(TRAKT_START_PAUSED)
|
2014-06-29 05:54:29 +00:00
|
|
|
new_config['Trakt']['trakt_sync'] = int(TRAKT_SYNC)
|
2014-07-24 04:44:11 +00:00
|
|
|
new_config['Trakt']['trakt_default_indexer'] = int(TRAKT_DEFAULT_INDEXER)
|
2015-11-19 22:05:19 +00:00
|
|
|
new_config['Trakt']['trakt_update_collection'] = trakt_helpers.build_config_string(TRAKT_UPDATE_COLLECTION)
|
|
|
|
new_config['Trakt']['trakt_accounts'] = TraktAPI.build_config_string(TRAKT_ACCOUNTS)
|
2016-01-08 20:57:07 +00:00
|
|
|
new_config['Trakt']['trakt_mru'] = TRAKT_MRU
|
2014-10-24 15:31:11 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['pyTivo'] = {}
|
|
|
|
new_config['pyTivo']['use_pytivo'] = int(USE_PYTIVO)
|
|
|
|
new_config['pyTivo']['pytivo_notify_onsnatch'] = int(PYTIVO_NOTIFY_ONSNATCH)
|
|
|
|
new_config['pyTivo']['pytivo_notify_ondownload'] = int(PYTIVO_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['pyTivo']['pytivo_notify_onsubtitledownload'] = int(PYTIVO_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['pyTivo']['pyTivo_update_library'] = int(PYTIVO_UPDATE_LIBRARY)
|
|
|
|
new_config['pyTivo']['pytivo_host'] = PYTIVO_HOST
|
|
|
|
new_config['pyTivo']['pytivo_share_name'] = PYTIVO_SHARE_NAME
|
|
|
|
new_config['pyTivo']['pytivo_tivo_name'] = PYTIVO_TIVO_NAME
|
|
|
|
|
|
|
|
new_config['NMA'] = {}
|
|
|
|
new_config['NMA']['use_nma'] = int(USE_NMA)
|
|
|
|
new_config['NMA']['nma_notify_onsnatch'] = int(NMA_NOTIFY_ONSNATCH)
|
|
|
|
new_config['NMA']['nma_notify_ondownload'] = int(NMA_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['NMA']['nma_notify_onsubtitledownload'] = int(NMA_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['NMA']['nma_api'] = NMA_API
|
|
|
|
new_config['NMA']['nma_priority'] = NMA_PRIORITY
|
|
|
|
|
|
|
|
new_config['Pushalot'] = {}
|
|
|
|
new_config['Pushalot']['use_pushalot'] = int(USE_PUSHALOT)
|
|
|
|
new_config['Pushalot']['pushalot_notify_onsnatch'] = int(PUSHALOT_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Pushalot']['pushalot_notify_ondownload'] = int(PUSHALOT_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Pushalot']['pushalot_notify_onsubtitledownload'] = int(PUSHALOT_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Pushalot']['pushalot_authorizationtoken'] = PUSHALOT_AUTHORIZATIONTOKEN
|
|
|
|
|
|
|
|
new_config['Pushbullet'] = {}
|
|
|
|
new_config['Pushbullet']['use_pushbullet'] = int(USE_PUSHBULLET)
|
|
|
|
new_config['Pushbullet']['pushbullet_notify_onsnatch'] = int(PUSHBULLET_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Pushbullet']['pushbullet_notify_ondownload'] = int(PUSHBULLET_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Pushbullet']['pushbullet_notify_onsubtitledownload'] = int(PUSHBULLET_NOTIFY_ONSUBTITLEDOWNLOAD)
|
2015-02-17 06:39:35 +00:00
|
|
|
new_config['Pushbullet']['pushbullet_access_token'] = PUSHBULLET_ACCESS_TOKEN
|
|
|
|
new_config['Pushbullet']['pushbullet_device_iden'] = PUSHBULLET_DEVICE_IDEN
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
new_config['Email'] = {}
|
|
|
|
new_config['Email']['use_email'] = int(USE_EMAIL)
|
2016-01-17 18:50:26 +00:00
|
|
|
new_config['Email']['email_old_subjects'] = int(EMAIL_OLD_SUBJECTS)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['Email']['email_notify_onsnatch'] = int(EMAIL_NOTIFY_ONSNATCH)
|
|
|
|
new_config['Email']['email_notify_ondownload'] = int(EMAIL_NOTIFY_ONDOWNLOAD)
|
|
|
|
new_config['Email']['email_notify_onsubtitledownload'] = int(EMAIL_NOTIFY_ONSUBTITLEDOWNLOAD)
|
|
|
|
new_config['Email']['email_host'] = EMAIL_HOST
|
|
|
|
new_config['Email']['email_port'] = int(EMAIL_PORT)
|
|
|
|
new_config['Email']['email_tls'] = int(EMAIL_TLS)
|
|
|
|
new_config['Email']['email_user'] = EMAIL_USER
|
|
|
|
new_config['Email']['email_password'] = helpers.encrypt(EMAIL_PASSWORD, ENCRYPTION_VERSION)
|
|
|
|
new_config['Email']['email_from'] = EMAIL_FROM
|
|
|
|
new_config['Email']['email_list'] = EMAIL_LIST
|
|
|
|
|
|
|
|
new_config['Newznab'] = {}
|
|
|
|
new_config['Newznab']['newznab_data'] = NEWZNAB_DATA
|
|
|
|
|
|
|
|
new_config['TorrentRss'] = {}
|
2015-06-15 19:09:01 +00:00
|
|
|
new_config['TorrentRss']['torrentrss_data'] = '!!!'.join([x.config_str() for x in torrentRssProviderList])
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
new_config['GUI'] = {}
|
|
|
|
new_config['GUI']['gui_name'] = GUI_NAME
|
2014-10-08 06:00:48 +00:00
|
|
|
new_config['GUI']['theme_name'] = THEME_NAME
|
2015-03-14 02:48:38 +00:00
|
|
|
new_config['GUI']['default_home'] = DEFAULT_HOME
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
new_config['GUI']['fanart_limit'] = FANART_LIMIT
|
|
|
|
new_config['GUI']['fanart_panel'] = FANART_PANEL
|
|
|
|
new_config['GUI']['fanart_ratings'] = '%s' % FANART_RATINGS
|
2015-03-14 02:48:38 +00:00
|
|
|
new_config['GUI']['use_imdb_info'] = int(USE_IMDB_INFO)
|
2016-04-19 22:28:44 +00:00
|
|
|
new_config['GUI']['imdb_accounts'] = IMDB_ACCOUNTS
|
2015-03-14 02:48:38 +00:00
|
|
|
new_config['GUI']['fuzzy_dating'] = int(FUZZY_DATING)
|
|
|
|
new_config['GUI']['trim_zero'] = int(TRIM_ZERO)
|
|
|
|
new_config['GUI']['date_preset'] = DATE_PRESET
|
|
|
|
new_config['GUI']['time_preset'] = TIME_PRESET_W_SECONDS
|
|
|
|
new_config['GUI']['timezone_display'] = TIMEZONE_DISPLAY
|
2016-11-05 20:28:19 +00:00
|
|
|
|
|
|
|
new_config['GUI']['show_tags'] = ','.join(SHOW_TAGS)
|
|
|
|
new_config['GUI']['showlist_tagview'] = SHOWLIST_TAGVIEW
|
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['GUI']['home_layout'] = HOME_LAYOUT
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
new_config['GUI']['poster_sortby'] = POSTER_SORTBY
|
|
|
|
new_config['GUI']['poster_sortdir'] = POSTER_SORTDIR
|
|
|
|
|
|
|
|
new_config['GUI']['display_show_viewmode'] = int(DISPLAY_SHOW_VIEWMODE)
|
|
|
|
new_config['GUI']['display_show_background'] = int(DISPLAY_SHOW_BACKGROUND)
|
|
|
|
new_config['GUI']['display_show_background_translucent'] = int(DISPLAY_SHOW_BACKGROUND_TRANSLUCENT)
|
|
|
|
new_config['GUI']['display_show_viewart'] = int(DISPLAY_SHOW_VIEWART)
|
|
|
|
new_config['GUI']['display_show_minimum'] = int(DISPLAY_SHOW_MINIMUM)
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['GUI']['display_show_specials'] = int(DISPLAY_SHOW_SPECIALS)
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
|
|
|
|
new_config['GUI']['episode_view_viewmode'] = int(EPISODE_VIEW_VIEWMODE)
|
|
|
|
new_config['GUI']['episode_view_background'] = int(EPISODE_VIEW_BACKGROUND)
|
|
|
|
new_config['GUI']['episode_view_background_translucent'] = int(EPISODE_VIEW_BACKGROUND_TRANSLUCENT)
|
2014-12-16 14:14:54 +00:00
|
|
|
new_config['GUI']['episode_view_layout'] = EPISODE_VIEW_LAYOUT
|
|
|
|
new_config['GUI']['episode_view_sort'] = EPISODE_VIEW_SORT
|
2015-03-14 02:48:38 +00:00
|
|
|
new_config['GUI']['episode_view_display_paused'] = int(EPISODE_VIEW_DISPLAY_PAUSED)
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
new_config['GUI']['episode_view_posters'] = int(EPISODE_VIEW_POSTERS)
|
2014-12-16 14:14:54 +00:00
|
|
|
new_config['GUI']['episode_view_missed_range'] = int(EPISODE_VIEW_MISSED_RANGE)
|
2014-10-26 05:42:45 +00:00
|
|
|
new_config['GUI']['poster_sortby'] = POSTER_SORTBY
|
|
|
|
new_config['GUI']['poster_sortdir'] = POSTER_SORTDIR
|
2015-04-07 03:10:50 +00:00
|
|
|
new_config['GUI']['show_tags'] = ','.join(SHOW_TAGS)
|
|
|
|
new_config['GUI']['showlist_tagview'] = SHOWLIST_TAGVIEW
|
2016-11-05 20:28:19 +00:00
|
|
|
new_config['GUI']['show_tag_default'] = SHOW_TAG_DEFAULT
|
Add fanart to Episodes View, Display Show, Edit Show, and Media Renamer page.
Add "Maximum fanart image files per show to cache" to config General/Interface.
Add populate images when the daily show updater is run with a default maximum 3 images per show.
Change force full update in a show will replace existing images with new.
Add fanart livepanel to lower right of Episodes View and Display Show page.
Add highlight panel red until button is clicked a few times.
Add flick through multiple background images on Episodes View and Display Show page.
Add persistent move poster image to right hand side or hide on Display Show page (multi-click the eye).
Add persistent translucency of background images on Episodes View and Display Show page.
Add persistent fanart rating to avoid art completely, random display, random from a group, or display fave always.
Add persistent views of the show detail on Display Show page.
Add persistent views on Episodes View.
Add persistent button to collapse and expand card images on Episode View/Layout daybyday.
Add non persistent "Open gear" and "Full fanart" image views to Episodes View and Display Show page.
Add "smart" selection of fanart image to display on Episode view.
Change insert [!] and change text shade of ended shows in drop down show list on Display Show page.
Change button graphic for next and previous show of show list on Display Show page.
Add logic to hide some livepanel buttons until artwork becomes available or in other circumstances.
Add "(Ended)" where appropriate to show title on Display Show page.
Add links to fanart.tv where appropriate on Display Show page.
Change use tense for label "Airs" or "Aired" depending on if show ended.
Change display "No files" instead of "0 files" and "Upgrade once" instead of "End upgrade on first match".
Add persistent button to newest season to "Show all" episodes.
Add persistent button to all shown seasons to "Hide most" episodes.
Add button to older seasons to toggle "Show Season n" or "Show Specials" with "Hide..." episodes.
Add season level status counts next to each season header on display show page
Add sorting to season table headers on display show page
Add filename and size to quality badge on display show page, removed its redundant "downloaded" text
Remove redundant "Add show" buttons
Change combine the NFO and TBN columns into a single Meta column
Change reduce screen estate used by episode numbers columns
Change improve clarity of text on Add Show page.
Add "Reset fanart ratings" to show Edit/Other tab.
Add fanart usage to show Edit/Other tab.
Add fanart keys guide to show Edit/Other tab.
Change add placeholder tip to "Alternative release name(s)" on show Edit.
Change add placeholder tip to search box on shows Search.
Change hide Anime tips on show Edit when selecting its mutually exclusive options.
Change label "End upgrade on first match" to "Upgrade once" on show Edit.
Change improve performance rendering displayShow.
Add total episodes to start of show description (excludes specials if those are hidden).
Add "Add show" actions i.e. "Search", "Trakt cards", "IMDb cards", and "Anime" to Shows menu.
Add "Import (existing)" action to Tools menu.
Change SD quality from red to dark green, 2160p UHD 4K is red.
Change relocate the functions of Logs & Errors to the right side Tools menu -> View Log File.
Add warning indicator to the Tools menu in different colour depending on error count (green through red).
Change View Log error item output from reversed to natural order.
Change View Log add a typeface and some colour to improve readability.
Change View Log/Errors only display "Clear Errors" button when there are errors to clear.
Change improve performance of View Log File.
2016-02-28 23:43:40 +00:00
|
|
|
new_config['GUI']['history_layout'] = HISTORY_LAYOUT
|
2014-03-10 05:18:05 +00:00
|
|
|
|
|
|
|
new_config['Subtitles'] = {}
|
|
|
|
new_config['Subtitles']['use_subtitles'] = int(USE_SUBTITLES)
|
|
|
|
new_config['Subtitles']['subtitles_languages'] = ','.join(SUBTITLES_LANGUAGES)
|
|
|
|
new_config['Subtitles']['SUBTITLES_SERVICES_LIST'] = ','.join(SUBTITLES_SERVICES_LIST)
|
|
|
|
new_config['Subtitles']['SUBTITLES_SERVICES_ENABLED'] = '|'.join([str(x) for x in SUBTITLES_SERVICES_ENABLED])
|
|
|
|
new_config['Subtitles']['subtitles_dir'] = SUBTITLES_DIR
|
|
|
|
new_config['Subtitles']['subtitles_default'] = int(SUBTITLES_DEFAULT)
|
|
|
|
new_config['Subtitles']['subtitles_history'] = int(SUBTITLES_HISTORY)
|
|
|
|
new_config['Subtitles']['subtitles_finder_frequency'] = int(SUBTITLES_FINDER_FREQUENCY)
|
|
|
|
|
2014-03-25 05:57:24 +00:00
|
|
|
new_config['FailedDownloads'] = {}
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config['FailedDownloads']['use_failed_downloads'] = int(USE_FAILED_DOWNLOADS)
|
|
|
|
new_config['FailedDownloads']['delete_failed'] = int(DELETE_FAILED)
|
|
|
|
|
2014-05-26 06:29:22 +00:00
|
|
|
new_config['ANIDB'] = {}
|
2014-07-27 10:59:21 +00:00
|
|
|
new_config['ANIDB']['use_anidb'] = int(USE_ANIDB)
|
2014-05-26 06:29:22 +00:00
|
|
|
new_config['ANIDB']['anidb_username'] = ANIDB_USERNAME
|
|
|
|
new_config['ANIDB']['anidb_password'] = helpers.encrypt(ANIDB_PASSWORD, ENCRYPTION_VERSION)
|
2014-07-27 10:59:21 +00:00
|
|
|
new_config['ANIDB']['anidb_use_mylist'] = int(ANIDB_USE_MYLIST)
|
2014-05-26 06:29:22 +00:00
|
|
|
|
|
|
|
new_config['ANIME'] = {}
|
2014-11-17 09:32:57 +00:00
|
|
|
new_config['ANIME']['anime_treat_as_hdtv'] = int(ANIME_TREAT_AS_HDTV)
|
2014-05-26 06:29:22 +00:00
|
|
|
|
2014-03-10 05:18:05 +00:00
|
|
|
new_config.write()
|
|
|
|
|
|
|
|
|
2015-09-18 00:06:34 +00:00
|
|
|
def launch_browser(start_port=None):
|
2015-07-13 09:39:20 +00:00
|
|
|
if not start_port:
|
|
|
|
start_port = WEB_PORT
|
2016-11-14 01:06:28 +00:00
|
|
|
browser_url = 'http%s://localhost:%d%s' % (('s', '')[not ENABLE_HTTPS], start_port, WEB_ROOT)
|
2014-03-10 05:18:05 +00:00
|
|
|
try:
|
2015-07-13 09:39:20 +00:00
|
|
|
webbrowser.open(browser_url, 2, 1)
|
2016-11-05 20:28:19 +00:00
|
|
|
except (StandardError, Exception):
|
2014-03-10 05:18:05 +00:00
|
|
|
try:
|
2015-07-13 09:39:20 +00:00
|
|
|
webbrowser.open(browser_url, 1, 1)
|
2016-11-05 20:28:19 +00:00
|
|
|
except (StandardError, Exception):
|
|
|
|
logger.log('Unable to launch a browser', logger.ERROR)
|