mirror of
https://github.com/Kozea/Radicale.git
synced 2025-07-02 16:58:30 +00:00
Assume that the collection is an addressbook when "carddav" is in URL
This commit is contained in:
parent
faa331ccc3
commit
3e3f07a6de
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ class Collection(object):
|
|||
try:
|
||||
tag = open(self.path).readlines()[0][6:].rstrip()
|
||||
except IOError:
|
||||
if self.path.endswith(".vcf"):
|
||||
if self.path.endswith(".vcf") or "carddav" in self.path:
|
||||
props["tag"] = "VADDRESSBOOK"
|
||||
else:
|
||||
props["tag"] = "VCALENDAR"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue