Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Workaround for mpylayer issue 13

  • Loading branch information...
commit 64dddf9dcafed0042faa568dbbdf66518d7d5062 1 parent a89f5c8
@dbrgn authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 client.py
View
7 client.py
@@ -2,6 +2,7 @@
from __future__ import print_function, division, absolute_import, unicode_literals
import os
+import time
from string import Template
import requests
@@ -76,5 +77,7 @@ def env(key):
print('Now playing "{track[name]}" by "{track[performer]}"...'.format(track=track))
mp = mpylayer.MPlayerControl()
mp.loadfile(track['url'])
-mp.pause() # Play track
-import ipdb; ipdb.set_trace()
+time.sleep(1)
+mp.pause() # Start playback
+time.sleep(1)
+time.sleep(mp.length - 1)
Please sign in to comment.
Something went wrong with that request. Please try again.