mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-22 22:23:36 -07:00
settings addition
This commit is contained in:
parent
09c7c36c02
commit
f329f960cb
3 changed files with 12 additions and 0 deletions
|
@ -126,6 +126,15 @@
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">Set your preferred time format. <a href="javascript:void(0)" data-target="#dateTimeOptionsModal" data-toggle="modal">Click here</a> to see the parameter list.</p>
|
<p class="help-block">Set your preferred time format. <a href="javascript:void(0)" data-target="#dateTimeOptionsModal" data-toggle="modal">Click here</a> to see the parameter list.</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group advanced-setting">
|
||||||
|
<label for="date_based_tv_show_format">Date Based TV Show Format</label>
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-4">
|
||||||
|
<input type="text" class="form-control" id="date_based_tv_show_format" name="date_based_tv_show_format" value="${config['date_based_tv_show_format']}" data-parsley-trigger="change" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="help-block">Set your preferred display format for date based tv shows.</p>
|
||||||
|
</div>
|
||||||
<div class="checkbox advanced-setting">
|
<div class="checkbox advanced-setting">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="week_start_monday" name="week_start_monday" value="1" ${config['week_start_monday']}> Week Starting on Monday
|
<input type="checkbox" id="week_start_monday" name="week_start_monday" value="1" ${config['week_start_monday']}> Week Starting on Monday
|
||||||
|
|
|
@ -50,6 +50,7 @@ FILENAME = "config.ini"
|
||||||
_CONFIG_DEFINITIONS = {
|
_CONFIG_DEFINITIONS = {
|
||||||
'ALLOW_GUEST_ACCESS': (int, 'General', 0),
|
'ALLOW_GUEST_ACCESS': (int, 'General', 0),
|
||||||
'DATE_FORMAT': (str, 'General', 'YYYY-MM-DD'),
|
'DATE_FORMAT': (str, 'General', 'YYYY-MM-DD'),
|
||||||
|
'DATE_BASED_TV_SHOW_FORMAT': (str, 'Advanced', 'YYYY·MM·DD'),
|
||||||
'PMS_CLIENT_ID': (str, 'PMS', ''),
|
'PMS_CLIENT_ID': (str, 'PMS', ''),
|
||||||
'PMS_IDENTIFIER': (str, 'PMS', ''),
|
'PMS_IDENTIFIER': (str, 'PMS', ''),
|
||||||
'PMS_IP': (str, 'PMS', '127.0.0.1'),
|
'PMS_IP': (str, 'PMS', '127.0.0.1'),
|
||||||
|
@ -244,6 +245,7 @@ SETTINGS = [
|
||||||
'CLOUDINARY_API_SECRET',
|
'CLOUDINARY_API_SECRET',
|
||||||
'CLOUDINARY_CLOUD_NAME',
|
'CLOUDINARY_CLOUD_NAME',
|
||||||
'DATE_FORMAT',
|
'DATE_FORMAT',
|
||||||
|
'DATE_BASED_TV_SHOW_FORMAT',
|
||||||
'EXPORT_DIR',
|
'EXPORT_DIR',
|
||||||
'GIT_BRANCH',
|
'GIT_BRANCH',
|
||||||
'GIT_PATH',
|
'GIT_PATH',
|
||||||
|
|
|
@ -420,6 +420,7 @@ def clean_filename(filename, replace='_'):
|
||||||
return cleaned_filename
|
return cleaned_filename
|
||||||
|
|
||||||
def format_date_based_show(date):
|
def format_date_based_show(date):
|
||||||
|
# logger.info(plexpy.CONFIG.DATE_BASED_TV_SHOW_FORMAT)
|
||||||
return str(date).replace('-', html.unescape('·'))
|
return str(date).replace('-', html.unescape('·'))
|
||||||
|
|
||||||
def split_strip(s, delimiter=','):
|
def split_strip(s, delimiter=','):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue