Эх сурвалжийг харах

Try harder to pause/play Plex

Zachary Kotlarek 13 жил өмнө
parent
commit
e1451461c9
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      dmx/rifftrax.pl

+ 2 - 1
dmx/rifftrax.pl

@@ -501,5 +501,6 @@ sub parseConfig($$) {
 # The UDP listener would be more portable, but I already know how to do this
 # The PMS playback API would work too, but this script currently knows nothing of the PMS
 sub playPausePlex() {
-	Audio::runApplescript('tell application "System Events" to key code 49');
+	my @cmd = ('tell application "Plex" to activate', 'tell application "System Events" to key code 49');
+	Audio::runApplescript(join("\n", @cmd));
 }