Skip to content

Instantly share code, notes, and snippets.

@mrbusche
Created December 14, 2024 17:19
Show Gist options
  • Save mrbusche/3576103583bcc65273eae3e8e1cab728 to your computer and use it in GitHub Desktop.
Save mrbusche/3576103583bcc65273eae3e8e1cab728 to your computer and use it in GitHub Desktop.
Bridges download

Download bridges audiobook

Run from loans page

Via https://gist.github.com/ping/b58ae66359691db1d08f929a9e57a03d

$('a[data-format-id="audiobook-overdrive"]').each(function () {
  var listenBtn = $(this);
  if (listenBtn.hasClass("script-added")) {
    listenBtn.remove();
    return;
  }
  var dlBtn = listenBtn.clone();
  dlBtn.attr(
    "class",
    "loan-button-nonkindle button radius primary downloadButton script-added"
  );
  dlBtn.attr(
    "href",
    dlBtn.attr("href").replace("/audiobook-overdrive/", "/audiobook-mp3/")
  );
  dlBtn.html('<b>Download</b><br/><span class="dl-text">MP3 audiobook</span>');
  dlBtn.attr("target", "");
  listenBtn.parent().append(dlBtn);
});

Download via odmpy

Via https://github.com/jordkh/odmpy

  1. Navigate to Downloads directory
  2. odmpy dl ${file_name}.odm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment