2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

FB_CALLMONITOR: fix reverse search for dasoertliche.de (Forum: #96666)

git-svn-id: https://svn.fhem.de/fhem/trunk@23263 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
markusbloch 2020-11-30 20:28:38 +00:00
parent 4bc1553518
commit a03e6cc3e8
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
# 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.
- bugfix: 72_FB_CALLMONITOR: fix reverse search for dasoertliche.de
- bugfix: 49_SSCam: fix cannot send snaps/recs if snapTelegramTxt +
snapChatTxt and no cacheType (cacheType=internal) is set
- bugfix: 50_SSChatBot: fix cannot send after receiving anything

View File

@ -810,7 +810,7 @@ FB_CALLMONITOR_reverseSearch($$)
$number =~ s/^0049/0/; # remove country code
Log3 $name, 4, "FB_CALLMONITOR ($name) - using dasoertliche.de for reverse search of $number";
$result = GetFileFromURL("http://www1.dasoertliche.de/?form_name=search_inv&ph=".$number, 5, undef, 1);
$result = GetFileFromURL("https://www.dasoertliche.de/?form_name=search_inv&ph=".$number, 3, undef, 1);
if(not defined($result))
{
if(AttrVal($name, "reverse-search-cache", "0") eq "1")
@ -822,7 +822,7 @@ FB_CALLMONITOR_reverseSearch($$)
else
{
#Debug($result);
if($result =~ m,<a href="[^"]*form_name=detail[^"]*".+?class="name ".+?><span class="">(.+?)</span>,)
if($result =~ m,<span class="st-treff-name">(.+?)</span>,)
{
$invert_match = $1;
$invert_match = FB_CALLMONITOR_html2txt($invert_match);