mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-29 19:18:33 -07:00
Make export threads advanced config setting
This commit is contained in:
parent
57d08e231c
commit
ab75628cf7
2 changed files with 2 additions and 1 deletions
|
@ -97,6 +97,7 @@ _CONFIG_DEFINITIONS = {
|
||||||
'DO_NOT_OVERRIDE_GIT_BRANCH': (int, 'General', 0),
|
'DO_NOT_OVERRIDE_GIT_BRANCH': (int, 'General', 0),
|
||||||
'ENABLE_HTTPS': (int, 'General', 0),
|
'ENABLE_HTTPS': (int, 'General', 0),
|
||||||
'EXPORT_DIR': (str, 'General', ''),
|
'EXPORT_DIR': (str, 'General', ''),
|
||||||
|
'EXPORT_THREADS': (int, 'Advanced', 8),
|
||||||
'FIRST_RUN_COMPLETE': (int, 'General', 0),
|
'FIRST_RUN_COMPLETE': (int, 'General', 0),
|
||||||
'FREEZE_DB': (int, 'General', 0),
|
'FREEZE_DB': (int, 'General', 0),
|
||||||
'GET_FILE_SIZES': (int, 'General', 0),
|
'GET_FILE_SIZES': (int, 'General', 0),
|
||||||
|
|
|
@ -1660,7 +1660,7 @@ class Export(object):
|
||||||
method = getattr(self.obj, self.export_type)
|
method = getattr(self.obj, self.export_type)
|
||||||
items = method()
|
items = method()
|
||||||
|
|
||||||
pool = ThreadPool(processes=4)
|
pool = ThreadPool(processes=plexpy.CONFIG.EXPORT_THREADS)
|
||||||
items = [ExportObject(self, item) for item in items]
|
items = [ExportObject(self, item) for item in items]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue