2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

FB_CALLMONITOR: fixing not working company numbers reverse search for search.ch

git-svn-id: https://svn.fhem.de/fhem/trunk@7191 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2014-12-12 17:11:44 +00:00
parent 357eb6624a
commit 66286cc6b6
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,7 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
# Do not insert empty lines here, update check depends on it. # Do not insert empty lines here, update check depends on it.
- bugfix: FB_CALLMONITOR: fixing not working company numbers
reverse search for search.ch
- bugfix: 70_PushNotifier repair set function (xusader) - bugfix: 70_PushNotifier repair set function (xusader)
- bugfix: PRESENCE: fixing not working timer, when using set [...] statusRequest - bugfix: PRESENCE: fixing not working timer, when using set [...] statusRequest
- bugfix: FB_CALLMONITOR: fixing reverse search for klicktel.de - bugfix: FB_CALLMONITOR: fixing reverse search for klicktel.de

View File

@ -486,7 +486,7 @@ FB_CALLMONITOR_reverseSearch($$)
{ {
Log3 $name, 4, "FB_CALLMONITOR ($name) - using search.ch for reverse search of $number"; Log3 $name, 4, "FB_CALLMONITOR ($name) - using search.ch for reverse search of $number";
$result = GetFileFromURL("http://tel.search.ch/?tel=".$number, 5, undef, 1); $result = GetFileFromURL("http://tel.search.ch/?was=".$number, 5, undef, 1);
if(not defined($result)) if(not defined($result))
{ {
if(AttrVal($name, "reverse-search-cache", "0") eq "1") if(AttrVal($name, "reverse-search-cache", "0") eq "1")
@ -499,7 +499,7 @@ FB_CALLMONITOR_reverseSearch($$)
else else
{ {
#Log 2, $result; #Log 2, $result;
if($result =~ /<h5><a href=".*?" class="fn">(.+?)<\/a><\/h5>/) if($result =~ /<h5><a href=".*?" class="fn(?: org)?">(.+?)<\/a><\/h5>/)
{ {
$invert_match = $1; $invert_match = $1;
$invert_match = FB_CALLMONITOR_html2txt($invert_match); $invert_match = FB_CALLMONITOR_html2txt($invert_match);