Skip to content
Snippets Groups Projects
Commit e5d71776 authored by Alessandro Cerioni's avatar Alessandro Cerioni
Browse files

Making the fix_links util repair KML links, too.

parent 8bd12302
No related branches found
No related tags found
No related merge requests found
......@@ -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...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment