Commit e5d71776 authored by Alessandro CERIONI's avatar Alessandro CERIONI
Browse files

Making the fix_links util repair KML links, too.

parent 8bd12302
......@@ -35,7 +35,8 @@ def fix_links( links ):
# fixed_links[k]['protocol'] = 'HTML'
# FIX links in which the declared protocol is as bizarre as "WWW:LINK-1.0-http--link"
if 'protocol' in link.keys() and any( [x in link['protocol'] for x in ['WWW'] ] ):
# The KML protocol needs also to be fixed.
if 'protocol' in link.keys() and any( [x in link['protocol'] for x in ['WWW', 'kml'] ] ):
try:
# let's try getting the information from the Web Server...
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment