From 8654e2db202245c271d1b66be9f7a9140b0aeff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 15 Oct 2011 13:07:22 +0300 Subject: Trivial code cleanup. --- vdradmind.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vdradmind.pl b/vdradmind.pl index 76ae450..4145f02 100755 --- a/vdradmind.pl +++ b/vdradmind.pl @@ -6991,12 +6991,12 @@ sub getSupportedFeatures { if ($FEATURES{VDRVERSION} >= 10331) { command($this, "plug"); while ($_ = readoneline($this)) { - if ($_ =~ /^epgsearch v(\d+)\.(\d+)\.(\d+)([^ ]*)/) { + if (/^epgsearch v(\d+)\.(\d+)\.(\d+)([^ ]*)/) { $FEATURES{EPGSEARCH} = 1; $FEATURES{EPGSEARCH_VERSION} = ($1 * 10000 + $2 * 100 + $3); $FEATURES{EPGSEARCH_VERSION_HR} = "$1.$2.$3$4"; } - if ($_ =~ /^streamdev-server(?:\s+v(\S+))?/) { + elsif (/^streamdev-server(?:\s+v(\S+))?/) { $FEATURES{STREAMDEV} = 1; $FEATURES{STREAMDEV_VERSION_HR} = $1; } -- cgit v1.2.3