Browse Source

Fork for micropoc

master
Bandie 2 years ago
parent
commit
38f657f753
Signed by: Bandie <bandie@chaospott.de> GPG Key ID: C1E133BC65A822DD
2 changed files with 7 additions and 12 deletions
  1. 5
    10
      README.md
  2. 2
    2
      micropoc_xml2vcard

+ 5
- 10
README.md View File

@@ -1,16 +1,11 @@
1 1
 # epvpn\_xml2vcard
2
-For [EPVPN](https://www.eventphone.de): Takes the XML file you've downloaded before and generates a vCard (makes sense for Android and stuff).
2
+For [micropoc](https://micropoc.de): Takes the XML file you've downloaded before and generates a vCard (makes sense for Android and stuff).
3 3
 
4 4
 
5 5
 ## Usage
6 6
 
7
-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`.
8
-2. If not already done, set executable rights for the program through `chmod +x epvpn_xml2vcard`.
9
-3. Run `./epvpn_xml2vcard -i phonebook.xml -o epvpn.vcf`.
10
-4. Now you have a file named `epvpn.vcf` ready to import to Android™®©đ€¶@ŋŧ¶ or somewhere else.
7
+1. Get your brandnew™ XML file from the [micropoc Phonebook](https://micropoc.de/phonebook.xml). Maybe save it as `phonebook.xml`.
8
+2. If not already done, set executable rights for the program through `chmod +x micropoc_xml2vcard`.
9
+3. Run `./micropoc_xml2vcard -i phonebook.xml -o micropoc.vcf`.
10
+4. Now you have a file named `micropoc.vcf` ready to import to Android™®©đ€¶@ŋŧ¶ or somewhere else.
11 11
 
12
-
13
-## FAQ
14
-
15
-- Q: Why?
16
-  - A: I am too impatient to wait for Eventphone changing things. They're busy enough.

epvpn_xml2vcard → micropoc_xml2vcard View File

@@ -51,9 +51,9 @@ def doEet(infile, outfile):
51 51
         counter+=1
52 52
         tel = c.find('extension').text
53 53
         name = c.find('name').text
54
-        loc = c.find('location').text
54
+#        loc = c.find('location').text
55 55
 
56
-        entry = "BEGIN:vCard\nVERSION:3.0\nN:{}\nTEL;type=voice:{}\nCATEGORIES:EPVPN\nNOTE:Location: {}\nEND:vCard\n\n".format(name, tel, loc)
56
+        entry = "BEGIN:vCard\nVERSION:3.0\nN:{}\nTEL;type=voice:{}\nCATEGORIES:micropoc\nEND:vCard\n\n".format(name, tel)
57 57
 
58 58
         f.write(entry)
59 59
     

Loading…
Cancel
Save