Changeset 11 for vcard/trunk/vcard.py


Ignore:
Timestamp:
08/10/08 15:28:01 (4 years ago)
Author:
christian
Message:

xing changed its vcard format, I'll follow.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vcard/trunk/vcard.py

    r1 r11  
    33 
    44def downloadAndConvert(l): 
    5         url = l[10:] 
     5        url = l[16:] 
    66        print "Fetching " + url 
    77        req = urllib2.Request(url) 
     
    1616        for line in fin: 
    1717                tmp = line 
    18                 if line.startswith('PHOTO;URI='): 
     18                if line.startswith('PHOTO;VALUE=URI:'): 
    1919                        tmp = downloadAndConvert(line) 
    2020                fout.write(tmp) 
Note: See TracChangeset for help on using the changeset viewer.