Option to disable direct searching on adding. closes #2054
This commit is contained in:
1 parent
62c6fd2e40
commit
8bfd206578
2 files changed
+9
No files matched your search
@@ -378,6 +378,7 @@ class MovieBase(MovieTypeBase):
|
|||||||
m = db.query(Movie).filter_by(library_id = library.get('id')).first()
|
m = db.query(Movie).filter_by(library_id = library.get('id')).first()
|
||||||
added = True
|
added = True
|
||||||
do_search = False
|
do_search = False
|
||||||
|
search_after = search_after and self.conf('search_on_add', section = 'moviesearcher')
|
||||||
if not m:
|
if not m:
|
||||||
m = Movie(
|
m = Movie(
|
||||||
library_id = library.get('id'),
|
library_id = library.get('id'),
|
||||||
|
|||||||
@@ -32,6 +32,14 @@ config = [{
|
|||||||
'type': 'bool',
|
'type': 'bool',
|
||||||
'description': 'Force run the searcher after (re)start.',
|
'description': 'Force run the searcher after (re)start.',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'name': 'search_on_add',
|
||||||
|
'label': 'Search after add',
|
||||||
|
'advanced': True,
|
||||||
|
'default': 1,
|
||||||
|
'type': 'bool',
|
||||||
|
'description': 'Disable this to only search for movies on cron.',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
'name': 'cron_day',
|
'name': 'cron_day',
|
||||||
'migrate_from': 'searcher',
|
'migrate_from': 'searcher',
|
||||||
|
|||||||
Reference in new issue
Block a user