Roland0 wrote: 
> What's the exact output?
> 
> 
> 
> After
> #!/bin/bash
> add
> > 
Code:
--------------------
  >   > shopt -s extglob
--------------------
> > 
> then you can use pattern lists like this:
> > 
Code:
--------------------
  >   > TRIGGER="@(*pattern1*|*pattern2)"
--------------------
> > 

Sorry I forgot to paste the output.
-- This time I did test it with an actual radio station, not Deezer. The
output difference is that after unmute no volume level is printed, but
audio came back.
-- I couldn't make the wildcard part work.

[99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old: [] ): changed
match trigger -> mute
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): unchanged
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] (old:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): unchanged
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG: [ ] (old:
[Tok%20Tok%20Tok%20-%20Lewis%20%26%20Ruth ] ): changed
mute on -> unmute (vol=)
P: 99%3A22%3A09%3Af2%3A5f%3A77 CS: 1
P: [99%3A22%3A09%3Af2%3A5f%3A77] CSONG: [Norah%20Jones%20-%20Carry%20On
] (old: [ ] ): changed


------------------------------------------------------------------------
mkkyah's Profile: http://forums.slimdevices.com/member.php?userid=58652
View this thread: http://forums.slimdevices.com/showthread.php?t=106244

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to