mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
check the view_list is not none
This commit is contained in:
parent
cb5fe7a354
commit
6a6578b711
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ class Embydb_Functions():
|
||||||
log.info("Error getting views: " + str(error))
|
log.info("Error getting views: " + str(error))
|
||||||
view_list = []
|
view_list = []
|
||||||
|
|
||||||
|
if view_list is None:
|
||||||
|
view_list = []
|
||||||
|
|
||||||
for view in view_list:
|
for view in view_list:
|
||||||
|
|
||||||
if view['Type'] == "CollectionFolder":
|
if view['Type'] == "CollectionFolder":
|
||||||
|
|
Loading…
Reference in a new issue