Changes between Version 1 and Version 2 of VcardConverter


Ignore:
Timestamp:
08/10/08 15:35:38 (2 years ago)
Author:
christian
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VcardConverter

    v1 v2  
    1111 
    1212def downloadAndConvert(l): 
    13         url = l[10:] 
     13        url = l[16:] 
    1414        content = urllib2.urlopen(url).read() 
    1515        enc = base64.encodestring(content).replace("\n", " ") 
     
    2121        for line in fin: 
    2222                tmp = line 
    23                 if line.startswith('PHOTO;URI='): 
     23                if line.startswith('PHOTO;VALUE=URI:'): 
    2424                        tmp = downloadAndConvert(line) 
    2525                fout.write(tmp)