mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-07-31 02:36:31 +00:00
add support for box sets
This commit is contained in:
parent
c9fb82cf3c
commit
ccf77f3be2
3 changed files with 108 additions and 0 deletions
|
@ -164,6 +164,14 @@ class LibrarySync():
|
|||
total = len(allMB3Movies) + 1
|
||||
count = 1
|
||||
|
||||
# process box sets - TODO cope with movies removed from a set
|
||||
boxsets = ReadEmbyDB().getBoxSets()
|
||||
for boxset in boxsets:
|
||||
boxsetMovies = ReadEmbyDB().getMoviesInBoxSet(boxset["Id"])
|
||||
WriteKodiDB().addBoxsetToKodiLibrary(boxset)
|
||||
for boxsetMovie in boxsetMovies:
|
||||
WriteKodiDB().updateBoxsetToKodiLibrary(boxsetMovie,boxset)
|
||||
|
||||
#process updates
|
||||
allKodiMovies = ReadKodiDB().getKodiMovies(True)
|
||||
for item in allMB3Movies:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue