bookwyrm
bookwyrm copied to clipboard
Check HTTP status codes on file links
When an edition has a link out to a copy of the book, it would be great to automatically check that the link isn't returning a 404 or error type status code. I think this can be a HEAD
request. I'm not sure when the best time to do it is.
Hello, I'll try and attempt this issue for you.
Wonderful! Let me know if you need anything
Hello! So I've came up with a python class to check for link status, however, I can't seem to locate where to add this class? Can you point me to where the link requests are being handled? Thanks.
I think you're looking for the django view for adding links: https://github.com/bookwyrm-social/bookwyrm/blob/main/bookwyrm/views/books/links.py#L68. Does that help clarify?
Hi @m1del, do you still work on a solution? While working on issue #1850 and #1899, I also got the idea how to include a solution to this issue. If you want, I can show you my approach.
Hi, I'm from Codeday and I want to work on this issue.