Fix channels
root doesn't have an item id - viewname defaults to none.
This commit is contained in:
parent
c1abe5d004
commit
a7f70a3145
1 changed files with 2 additions and 1 deletions
|
@ -509,6 +509,7 @@ def BrowseContent(viewname, type="", folderid=""):
|
||||||
if view.get("name") == viewname.decode('utf-8'):
|
if view.get("name") == viewname.decode('utf-8'):
|
||||||
folderid = view.get("id")
|
folderid = view.get("id")
|
||||||
|
|
||||||
|
if viewname is not None:
|
||||||
utils.logMsg("BrowseContent","viewname: %s - type: %s - folderid: %s - filter: %s" %(viewname.decode('utf-8'), type.decode('utf-8'), folderid.decode('utf-8'), filter.decode('utf-8')))
|
utils.logMsg("BrowseContent","viewname: %s - type: %s - folderid: %s - filter: %s" %(viewname.decode('utf-8'), type.decode('utf-8'), folderid.decode('utf-8'), filter.decode('utf-8')))
|
||||||
#set the correct params for the content type
|
#set the correct params for the content type
|
||||||
#only proceed if we have a folderid
|
#only proceed if we have a folderid
|
||||||
|
|
Loading…
Reference in a new issue