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
0b5dbd20
Commit
0b5dbd20
authored
Apr 29, 2012
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
Return more info for in_wanted and in_library. fixes #175
parent
f6a7655f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
couchpotato/core/plugins/movie/static/search.js
+2
-2
2 additions, 2 deletions
couchpotato/core/plugins/movie/static/search.js
couchpotato/core/providers/movie/_modifier/main.py
+2
-2
2 additions, 2 deletions
couchpotato/core/providers/movie/_modifier/main.py
with
4 additions
and
4 deletions
couchpotato/core/plugins/movie/static/search.js
+
2
−
2
View file @
0b5dbd20
...
...
@@ -326,9 +326,9 @@ Block.Search.Item = new Class({
'
src
'
:
self
.
info
.
images
.
poster
[
0
]
})
:
null
,
self
.
info
.
in_wanted
?
new
Element
(
'
span.in_wanted
'
,
{
'
text
'
:
'
Already in wanted list:
'
+
self
.
info
.
in_wanted
.
label
'
text
'
:
'
Already in wanted list:
'
+
self
.
info
.
in_wanted
.
profile
.
label
})
:
(
self
.
info
.
in_library
?
new
Element
(
'
span.in_library
'
,
{
'
text
'
:
'
Already in library:
'
+
self
.
info
.
in_library
.
label
'
text
'
:
'
Already in library:
'
+
self
.
info
.
in_library
.
profile
.
label
})
:
null
),
self
.
title_select
=
new
Element
(
'
select
'
,
{
'
name
'
:
'
title
'
...
...
This diff is collapsed.
Click to expand it.
couchpotato/core/providers/movie/_modifier/main.py
+
2
−
2
View file @
0b5dbd20
...
...
@@ -55,11 +55,11 @@ class MovieResultModifier(Plugin):
for
movie
in
l
.
movies
:
if
movie
.
status_id
==
active_status
[
'
id
'
]:
temp
[
'
in_wanted
'
]
=
movie
.
profile
.
to_dict
(
)
temp
[
'
in_wanted
'
]
=
fireEvent
(
'
movie.get
'
,
movie
.
id
,
single
=
True
)
for
release
in
movie
.
releases
:
if
release
.
status_id
==
done_status
[
'
id
'
]:
temp
[
'
in_library
'
]
=
release
.
quality
.
to_dict
(
)
temp
[
'
in_library
'
]
=
fireEvent
(
'
movie.get
'
,
movie
.
id
,
single
=
True
)
except
:
log
.
error
(
'
Tried getting more info on searched movies: %s
'
%
traceback
.
format_exc
())
...
...
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