mirror of
https://github.com/gordielachance/plugin.audio.subsonic
synced 2025-01-07 13:51:53 +01:00
Clean up main.py
This commit is contained in:
parent
1703d433a3
commit
2efa209227
14
main.py
14
main.py
@ -1440,10 +1440,8 @@ def walk_directory(directory_id):
|
||||
"""
|
||||
Request a Subsonic music directory and iterate over each item.
|
||||
"""
|
||||
#directory_id = 16906
|
||||
response = connection.getMusicDirectory(directory_id)
|
||||
xbmc.log(directory_id,xbmc.LOGINFO)
|
||||
#xbmc.log(str(response),xbmc.LOGINFO)
|
||||
|
||||
try:
|
||||
for child in response["directory"]["child"]:
|
||||
if child.get("isDir"):
|
||||
@ -1548,13 +1546,3 @@ if __name__ == "__main__":
|
||||
# Map actions
|
||||
# Note that we map callable objects without brackets ()
|
||||
plugin.run()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user