X-Git-Url: https://piware.de/gitweb/?a=blobdiff_plain;f=vcard2gnokii;h=f3cef82ccf258d50f1a8d1b111b44c636278d083;hb=73f39f614bd2ef7c96785b37b75c3e9a5ae15c21;hp=4b7ef99378d02e7f4daa5df222ee7a7498f41e1c;hpb=5ad9b48f12e88a604592db9d293c1ba6311d0f84;p=bin.git diff --git a/vcard2gnokii b/vcard2gnokii index 4b7ef99..f3cef82 100755 --- a/vcard2gnokii +++ b/vcard2gnokii @@ -20,11 +20,11 @@ def output_info(info, pos): kf = k.split(';') type = 0 if len(kf) > 1: - if kf[1].startswith('TYPE=HOME'): + if 'TYPE=HOME' in k: type = 2 - elif kf[1].startswith('TYPE=CELL'): + elif 'TYPE=CELL' in k: type = 3 - elif kf[1].startswith('TYPE=WORK'): + elif 'TYPE=WORK' in k: type = 6 if kf[0] == 'ADR':