mirror of
https://github.com/gordielachance/plugin.audio.subsonic
synced 2025-02-18 04:30:59 +01:00
if there is only one media folder, return list_indexes() directly
This commit is contained in:
parent
7d26333ce0
commit
3ed7b231cc
10
main.py
10
main.py
@ -861,10 +861,12 @@ 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…
x
Reference in New Issue
Block a user