EOD commit (WIP). So close to writing tv objects to database but too tired to finish. Currently storing a show as a movie using imdb metadata. Added another search button beside movie button
This commit is contained in:
1 parent
fb579561de
commit
31cd993506
9 files changed
+277
-26
No files matched your search
@@ -20,7 +20,7 @@ class LibraryPlugin(Plugin):
|
||||
addEvent('library.update', self.update)
|
||||
addEvent('library.update_release_date', self.updateReleaseDate)
|
||||
|
||||
def add(self, attrs = {}, update_after = True):
|
||||
def add(self, attrs = {}, update_after = True, type='movie'):
|
||||
|
||||
db = get_session()
|
||||
|
||||
@@ -28,6 +28,7 @@ class LibraryPlugin(Plugin):
|
||||
if not l:
|
||||
status = fireEvent('status.get', 'needs_update', single = True)
|
||||
l = Library(
|
||||
type = type,
|
||||
year = attrs.get('year'),
|
||||
identifier = attrs.get('identifier'),
|
||||
plot = toUnicode(attrs.get('plot')),
|
||||
|
||||
Reference in new issue
Block a user