Permalink
Browse files

Workaround for mpylayer issue 13

  • Loading branch information...
1 parent a89f5c8 commit 64dddf9dcafed0042faa568dbbdf66518d7d5062 @dbrgn committed Apr 2, 2013
Showing with 5 additions and 2 deletions.
  1. +5 −2 client.py
View
@@ -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)

0 comments on commit 64dddf9

Please sign in to comment.