Skip to main content

beets plugin to copy non-music files to import path

Project description

This is a fork of copyartifacts, which was created in its entirety by Sami Barakat. It includes Python 3 fixes and has been published to PyPI as beets-copyartifacts3.

copyartifacts plugin for beets

https://travis-ci.org/adammillerio/beets-copyartifacts.svg?branch=master

A plugin that moves non-music files during the import process.

This is a plugin for beets: a music library manager and much more.

Installing

Stable

The stable version of the plugin is available from PyPI. Installation can be done using pip:

pip install beets-copyartifacts3

If you get permission errors try running it with sudo

Development

The development version can be installed from GitHub by using these commands:

git clone https://github.com/adammillerio/beets-copyartifacts.git
cd beets-copyartifacts
python setup.py install

If you get permission errors try running it with sudo

Configuration

You will need to enable the plugin in beets’ config.yaml

plugins: copyartifacts

It can copy files by file extenstion:

copyartifacts:
    extensions: .cue .log

Or copy all non-music files (it does this by default):

copyartifacts:
    extensions: .*

It can also print what got left:

copyartifacts:
    print_ignored: yes

Renaming files

Renaming works in much the same way as beets Path Formats with the following limitations: - The fields available are $artist, $albumartist, $album and $albumpath. - The full set of built in functions are also supported, with the exception of %aunique - which will return an empty string.

Each template string uses a query syntax for each of the file extensions. For example the following template string will be applied to .log files:

paths:
    ext:log: $albumpath/$artist - $album

This will rename a log file to: ~/Music/Artist/2014 - Album/Artist - Album.log

Example config

plugins: copyartifacts

paths:
    default: $albumartist/$year - $album/$track - $title
    singleton: Singletons/$artist - $title
    ext:log: $albumpath/$artist - $album
    ext:cue: $albumpath/$artist - $album
    ext:jpg: $albumpath/cover

copyartifacts:
    extensions: .cue .log .jpg
    print_ignored: yes

Thanks

copyartifacts was built in its entirety by Sami Barakat. This fork is simply a Python 3 compatible version published to PyPI.

copyartifacts was built on top of the hard work already done by Adrian Sampson and the larger community on beets. We have also benefited from the work of our contributors.

This plugin was built out of necessity and to scratch an itch. It has gained a bit of attention, so I intend to maintain it where I can, however I doubt I will be able to spend large amount of time on it. Please report any issues you may have and feel free to contribute.

License

Copyright (c) 2015-2017 Sami Barakat Copyright (c) 2020 Adam Miller

Licensed under the MIT license.

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

beets-copyartifacts3-0.1.5.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

beets_copyartifacts3-0.1.5-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file beets-copyartifacts3-0.1.5.tar.gz.

File metadata

  • Download URL: beets-copyartifacts3-0.1.5.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.1

File hashes

Hashes for beets-copyartifacts3-0.1.5.tar.gz
Algorithm Hash digest
SHA256 522996017cd922f920d1c30963531d493e122c5366ad08f254f3245ea7489028
MD5 f60690a10f6a5f0cf2f28bf1be5892f8
BLAKE2b-256 49256f14be0af374199a2ea362dae3675fe92acb89580442dab81887ff7e50ee

See more details on using hashes here.

File details

Details for the file beets_copyartifacts3-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for beets_copyartifacts3-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2494f838598a5e70d264a78691bae6502513e0262b89a1891f8ea2b9d81e66ee
MD5 0a121128e6b667537bc64a0efdf9abc0
BLAKE2b-256 c2d630aa4f267ba646c748bfdf575ac1934acf5075176ccab38acb877a980d8b

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