mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-12 04:15:08 +00:00
Merge pull request #366 from oddstr13/pr-json-filter-1
Filter keys containing None values from dictionaries returned from the server
This commit is contained in:
commit
4e2c8a0af3
20 changed files with 214 additions and 26 deletions
|
@ -191,13 +191,13 @@ class Movies(KodiDb):
|
|||
if validate_dvd_dir(obj['Path'] + obj['Filename']):
|
||||
obj['Path'] = obj['Path'] + obj['Filename'] + '/VIDEO_TS/'
|
||||
obj['Filename'] = 'VIDEO_TS.IFO'
|
||||
LOG.debug("DVD directry %s",obj['Path'])
|
||||
LOG.debug("DVD directry %s", obj['Path'])
|
||||
|
||||
'''check bluray directries and point it to ./BDMV/index.bdmv'''
|
||||
if validate_bluray_dir(obj['Path'] + obj['Filename']):
|
||||
obj['Path'] = obj['Path'] + obj['Filename'] + '/BDMV/'
|
||||
obj['Filename'] = 'index.bdmv'
|
||||
LOG.debug("Bluray directry %s",obj['Path'])
|
||||
LOG.debug("Bluray directry %s", obj['Path'])
|
||||
|
||||
else:
|
||||
obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue