Update edit identifiers

This commit is contained in:
Ozzie Isaacs
2023-07-29 11:10:54 +02:00
parent cce538d5a7
commit df74fdb4d1
3 changed files with 8 additions and 2 deletions

View File

@@ -173,6 +173,9 @@ class Identifiers(Base):
return "https://www.databazeknih.cz/knihy/{0}".format(self.val)
elif self.val.lower().startswith("javascript:"):
return quote(self.val)
elif self.val.lower().startswith("data:"):
link , __, __ = str.partition(self.val, ",")
return link
else:
return "{0}".format(self.val)