| 1 |
Missing Plugin |
| 2 |
============== |
| 3 |
|
| 4 |
This plugin adds a new command, ``missing`` or ``miss``, which finds and lists |
| 5 |
missing tracks for albums in your collection. Each album requires one network |
| 6 |
call to album data source. |
| 7 |
|
| 8 |
Usage |
| 9 |
----- |
| 10 |
|
| 11 |
The ``beet missing`` command fetches album information from the origin data |
| 12 |
source and lists names of the **tracks** that are missing from your library. |
| 13 |
Track-level checks use the album's stored ``data_source`` and fall back to |
| 14 |
``MusicBrainz`` when no source is stored. |
| 15 |
|
| 16 |
It can also list the names of missing **albums** for each artist, although this |
| 17 |
is limited to albums from the MusicBrainz data source only. |
| 18 |
|
| 19 |
You can customize the output format, show missing counts instead of track |
| 20 |
titles, or display the total number of missing entities across your entire |
| 21 |
library: |
| 22 |
|
| 23 |
:: |
| 24 |
|
| 25 |
-f FORMAT, --format=FORMAT |
| 26 |
print with custom FORMAT |
| 27 |
-c, --count count missing tracks per album |
| 28 |
-t, --total count totals across the entire library |
| 29 |
-a, --album show missing albums for artist instead of tracks for album |
| 30 |
--release-type show only missing albums of specified release type. |
| 31 |
You can provide this argument multiple times to |
| 32 |
specify multiple release types to filter to. If not |
| 33 |
provided, defaults to just the "album" release type. |
| 34 |
provided, it uses the configured |
| 35 |
``missing.release_type`` (default: "album"). |
| 36 |
|
| 37 |
…or by editing the corresponding configuration options. |
| 38 |
|
| 39 |
.. warning:: |
| 40 |
|
| 41 |
Option ``-c`` is ignored when used with ``-a``, and ``--release-type`` is |
| 42 |
ignored when not used with ``-a``. Valid release types can be shown by |
| 43 |
running ``beet missing -h``. |
| 44 |
|
| 45 |
Configuration |
| 46 |
------------- |
| 47 |
|
| 48 |
To configure the plugin, make a ``missing:`` section in your configuration file. |
| 49 |
The available options are: |
| 50 |
|
| 51 |
- **count**: Print a count of missing tracks per album, with the global |
| 52 |
``format_album`` used for formatting. Default: ``no``. |
| 53 |
- **total**: Print a single count of missing tracks in all albums. Default: |
| 54 |
``no``. |
| 55 |
|
| 56 |
Formatting |
| 57 |
~~~~~~~~~~ |
| 58 |
|
| 59 |
- This plugin uses global formatting options from the main configuration; see |
| 60 |
:ref:`format_item` and :ref:`format_album`: |
| 61 |
- :ref:`format_item`: Used when listing missing tracks (default item format). |
| 62 |
- :ref:`format_album`: Used when showing counts (``-c``) or missing albums |
| 63 |
(``-a``). |
| 64 |
|
| 65 |
Here's an example |
| 66 |
|
| 67 |
:: |
| 68 |
|
| 69 |
format_album: $albumartist - $album |
| 70 |
format_item: $artist - $album - $title |
| 71 |
missing: |
| 72 |
count: no |
| 73 |
total: no |
| 74 |
|
| 75 |
Template Fields |
| 76 |
--------------- |
| 77 |
|
| 78 |
With this plugin enabled, the ``$missing`` template field expands to the number |
| 79 |
of tracks missing from each album. |
| 80 |
|
| 81 |
Examples |
| 82 |
-------- |
| 83 |
|
| 84 |
List all missing tracks in your collection: |
| 85 |
|
| 86 |
:: |
| 87 |
|
| 88 |
beet missing |
| 89 |
|
| 90 |
List all missing albums in your collection: |
| 91 |
|
| 92 |
:: |
| 93 |
|
| 94 |
beet missing -a |
| 95 |
|
| 96 |
List all missing tracks from 2008: |
| 97 |
|
| 98 |
:: |
| 99 |
|
| 100 |
beet missing year:2008 |
| 101 |
|
| 102 |
Print out a unicode histogram of the missing track years using spark_: |
| 103 |
|
| 104 |
:: |
| 105 |
|
| 106 |
beet missing -f '$year' | spark |
| 107 |
▆▁▆█▄▇▇▄▇▇▁█▇▆▇▂▄█▁██▂█▁▁██▁█▂▇▆▂▇█▇▇█▆▆▇█▇█▇▆██▂▇ |
| 108 |
|
| 109 |
Print out a listing of all albums with missing tracks, and respective counts: |
| 110 |
|
| 111 |
:: |
| 112 |
|
| 113 |
beet missing -c |
| 114 |
|
| 115 |
Print out a count of the total number of missing tracks: |
| 116 |
|
| 117 |
:: |
| 118 |
|
| 119 |
beet missing -t |
| 120 |
|
| 121 |
List all missing albums of release type "compilation" in your collection: |
| 122 |
|
| 123 |
:: |
| 124 |
|
| 125 |
beet missing -a --release-type compilation |
| 126 |
|
| 127 |
List all missing albums of release type "compilation" and album in your |
| 128 |
collection: |
| 129 |
|
| 130 |
:: |
| 131 |
|
| 132 |
beet missing -a --release-type compilation --release-type album |
| 133 |
|
| 134 |
Call this plugin from other beet commands: |
| 135 |
|
| 136 |
:: |
| 137 |
|
| 138 |
beet ls -a -f '$albumartist - $album: $missing' |
| 139 |
|
| 140 |
.. _spark: https://github.com/holman/spark |