Quellcode durchsuchen

Try harder to pause/play Plex

Zachary Kotlarek vor 13 Jahren
Ursprung
Commit
e1451461c9
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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));
 }