Skip to content

Commit

Permalink
Merge pull request google#94 from AntonKast/master
Browse files Browse the repository at this point in the history
Correct undefined rdf_prefix.
  • Loading branch information
rsuderman committed Jun 9, 2016
2 parents 32f4483 + 0332da3 commit 2f7b8a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spatialmedia/metadata_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ def parse_spherical_xml(contents, console):
index = contents.find("<rdf:SphericalVideo")
if index != -1:
index += len("<rdf:SphericalVideo")
contents = contents[:index] + rdf_prefix + contents[index:]
contents = contents[:index] + RDF_PREFIX + contents[index:]
parsed_xml = xml.etree.ElementTree.XML(contents)
console("\t\tWarning missing rdf prefix:", rdf_prefix)
console("\t\tWarning missing rdf prefix:", RDF_PREFIX)
except xml.etree.ElementTree.ParseError as e:
console("\t\tParser Error on XML")
console(e)
Expand Down

0 comments on commit 2f7b8a5

Please sign in to comment.