XBMC Metadata .nfo generation
This commit is contained in:
@@ -44,12 +44,10 @@ class Library(Entity):
|
||||
status = ManyToOne('Status')
|
||||
movies = OneToMany('Movie')
|
||||
titles = OneToMany('LibraryTitle')
|
||||
genres = ManyToMany('LibraryGenre')
|
||||
files = ManyToMany('File')
|
||||
info = OneToMany('LibraryInfo')
|
||||
|
||||
def title(self):
|
||||
return self.titles[0]['title']
|
||||
|
||||
|
||||
class LibraryInfo(Entity):
|
||||
""""""
|
||||
@@ -71,6 +69,14 @@ class LibraryTitle(Entity):
|
||||
libraries = ManyToOne('Library')
|
||||
|
||||
|
||||
class LibraryGenre(Entity):
|
||||
""""""
|
||||
|
||||
name = Field(Unicode)
|
||||
|
||||
libraries = ManyToMany('Library')
|
||||
|
||||
|
||||
class Language(Entity):
|
||||
""""""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user