[WS] Libro.fm (Audiobooks)

Website: Libro.fm For audiobooks

Usage: Search by album.

This is particularly useful for audiobooks that are not in audible, but not limited to this.

You can try it and make suggestions, find bugs, or tell me how to improve it. Enjoy!

Libro.fm#Json_Search by Album[v.16.05.2024].src (5.8 KB)

[23.09.2023]
NEW: complete rework of the album part using json
[16.05.2024]
FIX: quick fix in index, so its works again.

html versions

Libro.fm#Search by Album[v.02.07.2023].src (5.8 KB)

V.02 - Initial.
v.03 - Improved Index and Improve comments.(Thank you Florian)
v.05 - Index: Remove publicity titles, add Not yet released in Length. Album: add more narrator's.
v.06 - Fix date when it as no minutes. Fix Genre when there were no genre.
v.07 [28.11.2021] - Change search results to 10.
v.02.07.2023 - Complete rework as html changed.

1 Like

Nice work on the new tag source! Thanks for your contribution.

I had a quick look and had no success with searching for Cory Doctorow's new audio book "Attack Surface".

The problem seems to be
joinuntil "aria-label=\"Pagination\""
which can be replaced by
joinuntil "<!--close #search-content -->"
to produce a valid index.

I've also noticed the various replace commands to remove HTML from the comment. You can use this snippet instead (the regular expression is inspired by @pone, it also removes <em>):

# Description
outputto "Comment"
findline "Description</h2>"
findline "<div itemprop=\"description\""
joinuntil "</div>"
regexpreplace "<[^>]+>" ""
sayrest

Thank you Florian for the tips, it takes me more time to do the index than the rest, the do ..while, i struggle.

v.02.07.2023 - Complete rework as html changed.

file on first post.

Hi. I just thought I'd check in here. I get most of my audiobooks from Libro.fm and I use mp3tag to tag them all for plex. Unfortunately, when I added this source to the software, it didn't find anything. I know the books in question are on Libro.fm, as I got them from there. Unfortunately, I don't know where the error might be or what I might be doing wrong. I followed the directions to add the file, so I don't think that's the issue. I've tried both the html file and the json file with no luck. They will show up in my tag sources and let me start a search but they don't return any data. I've tried with multiple books that I know are available from Libro.fm, so I'm not sure if I'm doing something wrong, or if something has changed that has caused the scraper to stop working.

Thanks

Try this:
change line 36:

to this:

joinuntil "<footer id="footer">"

new file in index.

That does not work for me. As it is I cannot find a single book using this source.

Hi. Just thought I would let you know, this scraper doesn’t seem to be working any more. Any time I try to use it I get an Error connecting to server message 200: Accepted.

1 Like