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
442e2233
Commit
442e2233
authored
Apr 24, 2012
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup
parent
7b716f3b
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
couchpotato/core/plugins/library/main.py
+3
-4
3 additions, 4 deletions
couchpotato/core/plugins/library/main.py
with
3 additions
and
4 deletions
couchpotato/core/plugins/library/main.py
+
3
−
4
View file @
442e2233
from
couchpotato
import
get_session
from
couchpotato.core.event
import
addEvent
,
fireEventAsync
,
fireEvent
from
couchpotato.core.helpers.encoding
import
toUnicode
,
simplifyString
,
\
tryUrlencode
from
couchpotato.core.helpers.encoding
import
toUnicode
,
simplifyString
from
couchpotato.core.helpers.variable
import
mergeDicts
from
couchpotato.core.logger
import
CPLog
from
couchpotato.core.plugins.base
import
Plugin
...
...
@@ -19,7 +18,7 @@ class LibraryPlugin(Plugin):
def
__init__
(
self
):
addEvent
(
'
library.add
'
,
self
.
add
)
addEvent
(
'
library.update
'
,
self
.
update
)
addEvent
(
'
library.update_release_date
'
,
self
.
updateReleaseDate
s
)
addEvent
(
'
library.update_release_date
'
,
self
.
updateReleaseDate
)
def
add
(
self
,
attrs
=
{},
update_after
=
True
):
...
...
@@ -123,7 +122,7 @@ class LibraryPlugin(Plugin):
return
library_dict
def
updateReleaseDate
s
(
self
,
identifier
):
def
updateReleaseDate
(
self
,
identifier
):
db
=
get_session
()
library
=
db
.
query
(
Library
).
filter_by
(
identifier
=
identifier
).
first
()
...
...
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