mirror of
https://github.com/janeczku/calibre-web
synced 2024-09-28 23:10:48 +00:00
Handle moly_hu book identifier
https://moly.hu/ is a books site with extensive metadata for books in hungarian language. The identifier is used by the calibre Moly.hu metadata source: https://www.mobileread.com/forums/showthread.php?t=193302
This commit is contained in:
parent
fdd1410b06
commit
b8aac2b929
@ -134,10 +134,12 @@ class Identifiers(Base):
|
|||||||
return "ISSN"
|
return "ISSN"
|
||||||
elif format_type == "isfdb":
|
elif format_type == "isfdb":
|
||||||
return "ISFDB"
|
return "ISFDB"
|
||||||
if format_type == "lubimyczytac":
|
elif format_type == "lubimyczytac":
|
||||||
return "Lubimyczytac"
|
return "Lubimyczytac"
|
||||||
if format_type == "databazeknih":
|
elif format_type == "databazeknih":
|
||||||
return "Databáze knih"
|
return "Databáze knih"
|
||||||
|
elif format_type == "moly_hu":
|
||||||
|
return "Moly.hu"
|
||||||
else:
|
else:
|
||||||
return self.type
|
return self.type
|
||||||
|
|
||||||
@ -171,6 +173,8 @@ class Identifiers(Base):
|
|||||||
return "http://www.isfdb.org/cgi-bin/pl.cgi?{0}".format(self.val)
|
return "http://www.isfdb.org/cgi-bin/pl.cgi?{0}".format(self.val)
|
||||||
elif format_type == "databazeknih":
|
elif format_type == "databazeknih":
|
||||||
return "https://www.databazeknih.cz/knihy/{0}".format(self.val)
|
return "https://www.databazeknih.cz/knihy/{0}".format(self.val)
|
||||||
|
elif format_type == "moly_hu":
|
||||||
|
return "https://moly.hu/konyvek/{0}".format(self.val)
|
||||||
elif self.val.lower().startswith("javascript:"):
|
elif self.val.lower().startswith("javascript:"):
|
||||||
return quote(self.val)
|
return quote(self.val)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user