Skip to content

Commit

Permalink
fix: 🚑 hotfix for german systems
Browse files Browse the repository at this point in the history
  • Loading branch information
ChildishGiant committed Aug 25, 2021
1 parent abba7c3 commit fe641a4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/Digest.vala
Original file line number Diff line number Diff line change
Expand Up @@ -64,23 +64,23 @@ public static Response[] digester () {
);

Regex id_pattern = new Regex (
"Sink Input #(.*)",
"(?:Sink Input|Ziel-Eingabe) #(\\d*)",
RegexCompileFlags.MULTILINE
);
Regex stereo_pattern = new Regex (
"Volume:.* (\\d{1,3})%.* (\\d{1,3})%",
"(?:Volume|Lautstärke):.* (\\d{1,3})%.* (\\d{1,3})%",
RegexCompileFlags.MULTILINE
);
Regex mono_pattern = new Regex (
"Volume: .* (\\d{1,3})%",
"(?:Volume|Lautstärke):.* (\\d{1,3})%",
RegexCompileFlags.MULTILINE
);
Regex balance_pattern = new Regex (
"balance (-?\\d\\.\\d\\d)",
"(?:balance|Verteilung) (-?\\d\\.\\d\\d)",
RegexCompileFlags.MULTILINE
);
Regex muted_pattern = new Regex (
"Mute: ([a-z]*)",
"(?:Mute|Stumm): ([a-z]*)",
RegexCompileFlags.MULTILINE
);
Regex icon_name_pattern = new Regex (
Expand All @@ -92,7 +92,7 @@ public static Response[] digester () {
RegexCompileFlags.MULTILINE
);
Regex sink_pattern = new Regex (
"Sink: (\\d*)",
"(?:Sink|Ziel): (\\d*)",
RegexCompileFlags.MULTILINE
);

Expand Down Expand Up @@ -150,7 +150,7 @@ public static Response[] digester () {
if (muted_pattern.match (line, 0, out match_muted)) {
var muted = match_muted.fetch (1);

if (muted == "yes") {
if (muted == "yes" || muted == "ja") {
apps[apps.length - 1].muted = true;
} else {
apps[apps.length - 1].muted = false;
Expand Down

0 comments on commit fe641a4

Please sign in to comment.