version 1.40.0
Edit Book: Check Book: Add checks for links whose fragment (the part after the #) points to a location that does not exist
calibredb: Fix set_metadata not working for the series_index field. Fixes #1329724 [Calibredb setting of series_index does not work](https://bugs.launchpad.net/calibre/+bug/1329724)
pep8