belaudiobooks / website

Catalog of belarusian audiobooks
GNU General Public License v3.0
33 stars 6 forks source link

Auto-discover links #77

Open nbeloglazov opened 1 year ago

nbeloglazov commented 1 year ago

Today we need to add links to the books manually. Audiobook usually becomes available on different platforms at different times. Keeping up with manually is hard. We can automate it by implementing a job that runs regularly and checks whether a book became available. We can start supporting only books which are distributed via Findaway: if a book contains a link for Kobo - it is distributed via Findaway. For such books we can check whether it's available on Google Play Books, audiobooks.com, Spotify and Apple Books.

nbeloglazov commented 1 year ago

Added a button to the narration page that looks up whether a given book is available on Apple Books. It doesn't work 100% of times: it doesn't handle books in Russian and doesn't handle titles with special characters.

Further improvements could be to add an API endpoint which, given a book title or id, returns a list of links discovered for that book.