Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
bed33d60
Commit
bed33d60
authored
Sep 21, 2015
by
Nils
Committed by
Nils Vogels
Sep 21, 2015
Browse files
Options
Downloads
Patches
Plain Diff
Moving all data files in a seperate data/ dir
parent
f0252497
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+2
-0
2 additions, 0 deletions
.gitignore
SickBeard.py
+1
-1
1 addition, 1 deletion
SickBeard.py
sickbeard/__init__.py
+2
-2
2 additions, 2 deletions
sickbeard/__init__.py
with
5 additions
and
3 deletions
.gitignore
+
2
−
0
View file @
bed33d60
# SR User Related #
######################
cache*/
data*/
Logs/
restore/
backup*/
...
...
@@ -16,6 +17,7 @@ server.key
######################
/tests/Logs/*
/tests/cache/*
/tests/data*/
/tests/sickbeard.db*
/tests/cache.db*
/tests/failed.db
...
...
This diff is collapsed.
Click to expand it.
SickBeard.py
+
1
−
1
View file @
bed33d60
...
...
@@ -142,7 +142,7 @@ class SickRage(object):
sickbeard
.
MY_FULLNAME
=
os
.
path
.
normpath
(
os
.
path
.
abspath
(
__file__
))
sickbeard
.
MY_NAME
=
os
.
path
.
basename
(
sickbeard
.
MY_FULLNAME
)
sickbeard
.
PROG_DIR
=
os
.
path
.
dirname
(
sickbeard
.
MY_FULLNAME
)
sickbeard
.
DATA_DIR
=
sickbeard
.
PROG_DIR
sickbeard
.
DATA_DIR
=
sickbeard
.
PROG_DIR
+
os
.
sep
+
"
data
"
sickbeard
.
MY_ARGS
=
sys
.
argv
[
1
:]
sickbeard
.
SYS_ENCODING
=
None
...
...
This diff is collapsed.
Click to expand it.
sickbeard/__init__.py
+
2
−
2
View file @
bed33d60
...
...
@@ -648,7 +648,7 @@ def initialize(consoleLogging=True):
DEFAULT_PAGE
=
check_setting_str
(
CFG
,
'
General
'
,
'
default_page
'
,
'
home
'
)
ACTUAL_LOG_DIR
=
check_setting_str
(
CFG
,
'
General
'
,
'
log_dir
'
,
'
Logs
'
)
LOG_DIR
=
os
.
path
.
normpath
(
os
.
path
.
join
(
DATA
_DIR
,
ACTUAL_LOG_DIR
))
LOG_DIR
=
os
.
path
.
normpath
(
os
.
path
.
join
(
LOG
_DIR
,
ACTUAL_LOG_DIR
))
LOG_NR
=
check_setting_int
(
CFG
,
'
General
'
,
'
log_nr
'
,
5
)
#Default to 5 backup file (sickrage.log.x)
LOG_SIZE
=
check_setting_int
(
CFG
,
'
General
'
,
'
log_size
'
,
1048576
)
#Default to max 1MB per logfile
fileLogging
=
True
...
...
@@ -1622,7 +1622,7 @@ def save_config():
new_config
[
'
General
'
][
'
config_version
'
]
=
CONFIG_VERSION
new_config
[
'
General
'
][
'
encryption_version
'
]
=
int
(
ENCRYPTION_VERSION
)
new_config
[
'
General
'
][
'
encryption_secret
'
]
=
ENCRYPTION_SECRET
new_config
[
'
General
'
][
'
log_dir
'
]
=
ACTUAL_LOG_DIR
if
ACTUAL_LOG_DIR
else
'
L
ogs
'
new_config
[
'
General
'
][
'
log_dir
'
]
=
ACTUAL_LOG_DIR
if
ACTUAL_LOG_DIR
else
'
l
ogs
'
new_config
[
'
General
'
][
'
log_nr
'
]
=
int
(
LOG_NR
)
new_config
[
'
General
'
][
'
log_size
'
]
=
int
(
LOG_SIZE
)
new_config
[
'
General
'
][
'
socket_timeout
'
]
=
SOCKET_TIMEOUT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment