Skip to main content

A media file organiser

Project description

pypi travis_ci coverage licence style black

mnamer

mnamer (media renamer) is an intelligent and highly configurable media organization utility. It parses media filenames for metadata, searches the web to fill in the blanks, and then renames and moves them.

Currently it has integration support with TVDb and TvMaze for television episodes and TMDb and OMDb for movies.

Installation

$ pip3 install mnamer

Usage

USAGE: mnamer [preferences] [directives] target [targets ...]

POSITIONAL:
  [TARGET,...]: media file file path(s) to process

PARAMETERS:
  The following flags can be used to customize mnamer's behaviour. Their long
  forms may also be set in a '.mnamer-v2.json' config file, in which case cli
  arguments will take precedence.

  -b, --batch: process automatically without interactive prompts
  -l, --lower: rename files using lowercase characters
  -r, --recurse: search for files within nested directories
  -s, --scene: use dots in place of alphanumeric chars
  -v, --verbose: increase output verbosity
  --hits=<NUMBER>: limit the maximum number of hits for each query
  --ignore=<PATTERN,...>: ignore files matching these regular expressions
  --mask=<EXTENSION,...>: only process given file types
  --no-cache: disable and clear request cache
  --no-guess: disable best guess; e.g. when no matches or network down
  --no-overwrite: prevent relocation if it would overwrite a file
  --no-style: print to stdout without using colour or unicode chars
  --movie-api={*tmdb,omdb}: set movie api provider
  --movie-directory: set movie relocation directory
  --movie-format: set movie renaming format specification
  --episode-api={tvdb,*tvmaze}: set episode api provider
  --episode-directory: set episode relocation directory
  --episode-format: set episode renaming format specification

DIRECTIVES:
  Directives are one-off arguments that are used to perform secondary tasks
  like overriding media detection. They can't be used in '.mnamer-v2.json'.

  -V, --version: display the running mnamer version number
  --config-dump: prints current config JSON to stdout then exits
  --config-ignore: skips loading config file for session
  --id-imdb=<ID>: specify an IMDb movie id override
  --id-tmdb=<ID>: specify a TMDb movie id override
  --id-tvdb=<ID>: specify a TVDb series id override
  --id-tvmaze=<ID>: specify a TvMaze series id override
  --media={movie,episode}: override media detection
  --test: mocks the renaming and moving of files

Documentation

See mnamer's wiki page for full documentation.

Contributions

Community contributions are a welcome addition to the project. In order to be merged upsteam any additions will need to be consistent with black style formatting for consistency with the rest of the project and pass the continuous integration tests run against each PR. Before introducing any major features or changes to the configuration api please consider opening an issue to outline your proposal.

Bug reports are also welcome on the issue page. Please include any generated crash reports if applicable. Feature requests are welcome but consider checking out if it is in the works first to avoid duplication.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mnamer-2.3.0.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

mnamer-2.3.0-py2.py3-none-any.whl (28.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mnamer-2.3.0.tar.gz.

File metadata

  • Download URL: mnamer-2.3.0.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1

File hashes

Hashes for mnamer-2.3.0.tar.gz
Algorithm Hash digest
SHA256 c10f7e44927f7dbc5e66c266cc0a74b4ff80b9242617eeaf2cbf9262ee64a2f7
MD5 3842cf1dacd51048e22b9afe52d98782
BLAKE2b-256 72b7d2883a2fa2214982cae40cde1df4ccae726890e97af7b5230946105b166b

See more details on using hashes here.

File details

Details for the file mnamer-2.3.0-py2.py3-none-any.whl.

File metadata

  • Download URL: mnamer-2.3.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 28.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for mnamer-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4c8f30bef8322fdd20e14de3b531551443dfe3a74c73be004eb2b3d42b5ddbb0
MD5 056fb850d9fadf75284215d0d99776da
BLAKE2b-256 8ee47a3af92ea7c59958e79cef27c804758f01fd6a6b3a443666e23f0fa01d92

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page