Skip to content

Commit

Permalink
Fix some indents
Browse files Browse the repository at this point in the history
  • Loading branch information
ScratMan committed Feb 4, 2023
1 parent 02a21a3 commit 50edef3
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions custom_components/linkplay/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ async def async_call_linkplay_httpapi(self, cmd, jsn):
return False

finally:
await websession.close()
await websession.close()

if response.status == HTTPStatus.OK:
if jsn:
Expand Down Expand Up @@ -2734,12 +2734,12 @@ async def async_tracklist_via_upnp(self, media):

trackq = []
for playlist in xml_tree:
for tracks in playlist:
for track in tracks:
if track.tag == 'URL':
if rootdir in track.text:
tracku = track.text.replace(rootdir, '')
trackq.append(tracku)
for tracks in playlist:
for track in tracks:
if track.tag == 'URL':
if rootdir in track.text:
tracku = track.text.replace(rootdir, '')
trackq.append(tracku)

if len(trackq) > 0:
self._trackq = trackq
Expand Down

0 comments on commit 50edef3

Please sign in to comment.