if there is only one media folder, return list_indexes() directly
This commit is contained in:
parent
7d26333ce0
commit
3ed7b231cc
8
main.py
8
main.py
|
@ -862,9 +862,11 @@ def list_folders(params):
|
||||||
}
|
}
|
||||||
listing.append(entry)
|
listing.append(entry)
|
||||||
|
|
||||||
return plugin.create_listing(
|
if len(listing) == 1:
|
||||||
listing
|
plugin.log('One single Media Folder found; do return listing from list_indexes()...')
|
||||||
)
|
return list_indexes(params)
|
||||||
|
else:
|
||||||
|
return plugin.create_listing(listing)
|
||||||
|
|
||||||
def get_entry_playlist(item,params):
|
def get_entry_playlist(item,params):
|
||||||
image = connection.getCoverArtUrl(item.get('coverArt'))
|
image = connection.getCoverArtUrl(item.get('coverArt'))
|
||||||
|
|
Loading…
Reference in New Issue