Giter Club home page Giter Club logo

overdrive-dl's Introduction

overdrive-dl

Command-line tool to download audiobooks from OverDrive

Download an OverDrive file (.odm) from your library (e.g. book.odm) and then call python3 overdrive-dl.py book.odm to download that book as mp3s.

Includes functionality for updating ID3 tags, changing the owner and group of the files (assuming a Unix-based OS), and printing the metadata from an ODM file without downloading anything.

You can specify a config file in TOML format to set a download location, whether to make filenames lowercase, how you would like to update the ID3 tags, and what user and group ownership you would like set for the downloaded files. Check out the config.toml.example file as an example.

Requires:

python3 overdrive-dl.py --help
usage: overdrive-dl [-h] [-d] [-t] [-o] [-s] [-f] [-c CONFIG] [-m] filename

positional arguments:
  filename

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           print debug messages
  -t, --tags            Update ID3 tags according to configuration
  -o, --owner           Update file owner according to configuration
  -s, --skip-download   Skip downloading files. This option is only valid when
                        updating tags or owner, in which case it is assumed
                        the expected files already exist
  -f, --force           Ignore whether audiobook files already exist and
                        download all files, replacing any existing files
  -c CONFIG, --config CONFIG
                        Specify configuration file in TOML format (see
                        https://github.com/toml-lang/toml). Without specifying
                        this flag, overdrive-dl will look for file named
                        config.toml to read configuration
  -m, --print-metadata  Print metadata from specified ODM file and exit

Wrote this to scratch my own itch. Inspired in parts by https://github.com/chbrown/overdrive and https://github.com/jvolkening/gloc

overdrive-dl's People

Contributors

davideg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.