57_Calendar.pm: add quirk for Google compatibility (interims)

git-svn-id: https://svn.fhem.de/fhem/trunk@18709 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen
2019-02-24 09:55:48 +00:00
parent 45bcbc43ad
commit 56e1a254aa

View File

@@ -2484,8 +2484,11 @@ sub Calendar_GetUpdate($$$;$) {
return;
}
my @ti = localtime;
my $url= ResolveDateWildcards($hash->{".fhem"}{url}, @ti);
my $url = $hash->{".fhem"}{url};
unless (AttrVal($name,'quirks','') =~ /noWildcards/) {
my @ti = localtime;
$url = ResolveDateWildcards($hash->{".fhem"}{url}, @ti);
}
if($url ne $hash->{".fhem"}{lasturl}) {
$hash->{".fhem"}{lasturl} = $url;