From: martin@piware.de <> Date: Thu, 1 Jan 2009 12:47:23 +0000 (+0100) Subject: vcard2gnokii: fix phone numbers X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=07975105217b619534358579d7fdea888f10cd64;p=bin.git vcard2gnokii: fix phone numbers --- 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':