Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CouchPotatoServer
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
CouchPotatoServer
Commits
61a3a038
"README.md" did not exist on "4ac548b443b9bc31900a7693043087556cdcca10"
Commit
61a3a038
authored
Oct 21, 2012
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
Search after added all movies. fix #702
parent
7b1f17c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
couchpotato/core/plugins/automation/main.py
+8
-1
8 additions, 1 deletion
couchpotato/core/plugins/automation/main.py
with
8 additions
and
1 deletion
couchpotato/core/plugins/automation/main.py
+
8
−
1
View file @
61a3a038
...
@@ -18,9 +18,16 @@ class Automation(Plugin):
...
@@ -18,9 +18,16 @@ class Automation(Plugin):
def
addMovies
(
self
):
def
addMovies
(
self
):
movies
=
fireEvent
(
'
automation.get_movies
'
,
merge
=
True
)
movies
=
fireEvent
(
'
automation.get_movies
'
,
merge
=
True
)
movie_ids
=
[]
for
imdb_id
in
movies
:
for
imdb_id
in
movies
:
prop_name
=
'
automation.added.%s
'
%
imdb_id
prop_name
=
'
automation.added.%s
'
%
imdb_id
added
=
Env
.
prop
(
prop_name
,
default
=
False
)
added
=
Env
.
prop
(
prop_name
,
default
=
False
)
if
not
added
:
if
not
added
:
fireEvent
(
'
movie.add
'
,
params
=
{
'
identifier
'
:
imdb_id
},
force_readd
=
False
)
added_movie
=
fireEvent
(
'
movie.add
'
,
params
=
{
'
identifier
'
:
imdb_id
},
force_readd
=
False
,
search_after
=
False
,
single
=
True
)
movie_ids
.
append
(
added_movie
[
'
id
'
])
Env
.
prop
(
prop_name
,
True
)
Env
.
prop
(
prop_name
,
True
)
for
movie_id
in
movie_ids
:
movie_dict
=
fireEvent
(
'
movie.get
'
,
movie_id
,
single
=
True
)
fireEvent
(
'
searcher.single
'
,
movie_dict
)
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
register
or
sign in
to comment