From 595e71a7d8edcf55c857c3a795c4e5cdaef80c9f Mon Sep 17 00:00:00 2001 From: markusbloch Date: Thu, 2 Jan 2014 15:36:11 +0000 Subject: [PATCH] YAMAHA_AVR: using GetFileFromURL as CustomGetFileFromURL is deprecated git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@4531 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/71_YAMAHA_AVR.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/71_YAMAHA_AVR.pm b/fhem/FHEM/71_YAMAHA_AVR.pm index 13504e281..97efbe807 100755 --- a/fhem/FHEM/71_YAMAHA_AVR.pm +++ b/fhem/FHEM/71_YAMAHA_AVR.pm @@ -635,7 +635,7 @@ YAMAHA_AVR_SendCommand($$;$) # In case any URL changes must be made, this part is separated in this function". - $response = CustomGetFileFromURL(0, "http://".$address."/YamahaRemoteControl/ctrl", AttrVal($name, "request-timeout", 4) , "".$command, 0, ($hash->{helper}{AVAILABLE} ? undef : 5)); + $response = GetFileFromURL("http://".$address."/YamahaRemoteControl/ctrl", AttrVal($name, "request-timeout", 4) , "".$command, 0, ($hash->{helper}{AVAILABLE} ? undef : 5)); Log3 $name, 5, "YAMAHA_AVR: got response for $name: $response" if(defined($response)); @@ -817,7 +817,7 @@ sub YAMAHA_AVR_getModel($) } # query the description url which contains all zones - $response = CustomGetFileFromURL(0, "http://".$address.$desc_url, AttrVal($name, "request-timeout", 4), undef, 0, ($hash->{helper}{AVAILABLE} ? undef : 5)); + $response = GetFileFromURL("http://".$address.$desc_url, AttrVal($name, "request-timeout", 4), undef, 0, ($hash->{helper}{AVAILABLE} ? undef : 5)); Log3 $name, 3, "YAMAHA_AVR: could not get unit description from device $name. Please turn on the device or check for correct hostaddress!" if (not defined($response) and defined($hash->{helper}{AVAILABLE}) and $hash->{helper}{AVAILABLE} eq 1);