Skip to content

Commit 8eeea55

Browse files
committed
fixing code formatting
1 parent b605e23 commit 8eeea55

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

spotifycli/spotifycli.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
import lyricwikia
1010
from subprocess import Popen, PIPE, check_output
1111

12+
1213
def main():
1314
if len(sys.argv) == 1:
1415
start_shell()
1516
return 0
16-
17+
1718
global client
1819
args = add_arguments()
1920
client = args.client
@@ -121,6 +122,7 @@ def show_status():
121122
artist, title = get_song()
122123
print(f'{artist} - {title}')
123124

125+
124126
def show_status_short():
125127
artist, title = get_song()
126128
artist = artist[:15] + (artist[15:] and '...')
@@ -173,10 +175,12 @@ def show_album():
173175
album = metadata['xesam:album']
174176
print(f'{album}')
175177

178+
176179
def show_art_url():
177180
metadata = get_spotify_property("Metadata")
178181
print("%s" % metadata['mpris:artUrl'])
179182

183+
180184
def get_spotify_property(spotify_property):
181185
try:
182186
session_bus = dbus.SessionBus()
@@ -195,8 +199,8 @@ def get_spotify_property(spotify_property):
195199

196200

197201
def perform_spotify_action(spotify_command):
198-
Popen('dbus-send --print-reply --dest=org.mpris.MediaPlayer2."%s" ' %
199-
client +
202+
Popen('dbus-send --print-reply --dest=org.mpris.MediaPlayer2."%s" ' %
203+
client +
200204
'/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player."%s"' %
201205
spotify_command, shell=True, stdout=PIPE)
202206

0 commit comments

Comments
 (0)