From 38f657f75300d5ff9328e11d2f676b56a6538deb Mon Sep 17 00:00:00 2001 From: Bandie Date: Sat, 12 May 2018 03:40:54 +0200 Subject: [PATCH] Fork for micropoc --- README.md | 15 +++++---------- epvpn_xml2vcard => micropoc_xml2vcard | 4 ++-- 2 files changed, 7 insertions(+), 12 deletions(-) rename epvpn_xml2vcard => micropoc_xml2vcard (92%) diff --git a/README.md b/README.md index 5450e4f..85ed8ae 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,11 @@ # epvpn\_xml2vcard -For [EPVPN](https://www.eventphone.de): Takes the XML file you've downloaded before and generates a vCard (makes sense for Android and stuff). +For [micropoc](https://micropoc.de): Takes the XML file you've downloaded before and generates a vCard (makes sense for Android and stuff). ## Usage -1. Get your brandnew™ EPVPN-XML file from the [EPVPN Phonebook](https://www.eventphone.de/guru2/epvpn/phonebook?format=xml). Maybe save it as `phonebook.xml`. -2. If not already done, set executable rights for the program through `chmod +x epvpn_xml2vcard`. -3. Run `./epvpn_xml2vcard -i phonebook.xml -o epvpn.vcf`. -4. Now you have a file named `epvpn.vcf` ready to import to Android™®©đ€¶@ŋŧ¶ or somewhere else. +1. Get your brandnew™ XML file from the [micropoc Phonebook](https://micropoc.de/phonebook.xml). Maybe save it as `phonebook.xml`. +2. If not already done, set executable rights for the program through `chmod +x micropoc_xml2vcard`. +3. Run `./micropoc_xml2vcard -i phonebook.xml -o micropoc.vcf`. +4. Now you have a file named `micropoc.vcf` ready to import to Android™®©đ€¶@ŋŧ¶ or somewhere else. - -## FAQ - -- Q: Why? - - A: I am too impatient to wait for Eventphone changing things. They're busy enough. diff --git a/epvpn_xml2vcard b/micropoc_xml2vcard similarity index 92% rename from epvpn_xml2vcard rename to micropoc_xml2vcard index fc4abf3..b2c7a7f 100755 --- a/epvpn_xml2vcard +++ b/micropoc_xml2vcard @@ -51,9 +51,9 @@ def doEet(infile, outfile): counter+=1 tel = c.find('extension').text name = c.find('name').text - loc = c.find('location').text +# loc = c.find('location').text - entry = "BEGIN:vCard\nVERSION:3.0\nN:{}\nTEL;type=voice:{}\nCATEGORIES:EPVPN\nNOTE:Location: {}\nEND:vCard\n\n".format(name, tel, loc) + entry = "BEGIN:vCard\nVERSION:3.0\nN:{}\nTEL;type=voice:{}\nCATEGORIES:micropoc\nEND:vCard\n\n".format(name, tel) f.write(entry)