mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
FB_CALLMONITOR: removed klicktel.de for reverse search as the service is not available anymore (Forum: #83358)
git-svn-id: https://svn.fhem.de/fhem/trunk@17966 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
993b738964
commit
d5bc1d1172
@ -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.
|
||||||
|
- change: 72_FB_CALLMONITOR: removed klicktel.de for reverse search, as
|
||||||
|
the service is not available anymore
|
||||||
- bugfix: 49_SSCam: fix in autocreateCams and take snapshot
|
- bugfix: 49_SSCam: fix in autocreateCams and take snapshot
|
||||||
- feature: 98_MediaList.pm: new readings: sortby and status for better
|
- feature: 98_MediaList.pm: new readings: sortby and status for better
|
||||||
integration in FTUI
|
integration in FTUI
|
||||||
|
@ -741,47 +741,8 @@ FB_CALLMONITOR_reverseSearch($$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Ask klicktel.de
|
|
||||||
if($method eq "klicktel.de")
|
|
||||||
{
|
|
||||||
unless(($number =~ /^0?[1-9]/ and $country_code eq "0049") or $number =~ /^0049/)
|
|
||||||
{
|
|
||||||
Log3 $name, 4, "FB_CALLMONITOR ($name) - skip using klicktel.de for reverse search of $number because of non-german number";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$number =~ s/^0049/0/; # remove country code
|
|
||||||
Log3 $name, 1, "FB_CALLMONITOR ($name) - WARNING: using klicktel.de for reverse search is DEPRECATED please use dasoertliche.de instead";
|
|
||||||
Log3 $name, 4, "FB_CALLMONITOR ($name) - using klicktel.de for reverse search of $number";
|
|
||||||
|
|
||||||
$result = GetFileFromURL("http://openapi.klicktel.de/searchapi/invers?key=0de6139a49055c37b9b2d7bb3933cb7b&number=".$number, 5, undef, 1);
|
|
||||||
|
|
||||||
if(not defined($result))
|
|
||||||
{
|
|
||||||
if(AttrVal($name, "reverse-search-cache", "0") eq "1")
|
|
||||||
{
|
|
||||||
$status = "timeout";
|
|
||||||
undef($result);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if($result =~ /"displayname":"([^"]*?)"/)
|
|
||||||
{
|
|
||||||
$invert_match = $1;
|
|
||||||
$invert_match = FB_CALLMONITOR_html2txt($invert_match);
|
|
||||||
FB_CALLMONITOR_writeToCache($hash, $number, $invert_match);
|
|
||||||
undef($result);
|
|
||||||
return $invert_match;
|
|
||||||
}
|
|
||||||
|
|
||||||
$status = "unknown";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Ask dasoertliche.de
|
# Ask dasoertliche.de
|
||||||
elsif($method eq "dasoertliche.de")
|
if($method eq "dasoertliche.de")
|
||||||
{
|
{
|
||||||
unless(($number =~ /^0?[1-9]/ and $country_code eq "0049") or $number =~ /^0049/)
|
unless(($number =~ /^0?[1-9]/ and $country_code eq "0049") or $number =~ /^0049/)
|
||||||
{
|
{
|
||||||
@ -1025,8 +986,6 @@ FB_CALLMONITOR_reverseSearch($$)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Log3 $name, 3, "FB_CALLMONITOR ($name) - unknown reverse search method $method";
|
Log3 $name, 3, "FB_CALLMONITOR ($name) - unknown reverse search method $method";
|
||||||
|
Loading…
Reference in New Issue
Block a user