File tree Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Expand file tree Collapse file tree 3 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ Changelog
6
6
7
7
Features:
8
8
9
- * It is now possible to set fields to certain values during import, using
10
- either the ` importer.set_fields ` dictionary in the config file, or by
11
- passing one or more ` --set field=value ` options on the command-line .
12
- : bug: `1881 `
9
+ * You can now set fields to certain values during :ref: ` import-cmd ` , using
10
+ either a `` --set field=value `` command-line flag or a new :ref: ` set_fields `
11
+ configuration option under the ` importer ` section .
12
+ Thanks to :user: ` bartkl `. : bug: `1881 ` :bug: ` 2581 `
13
13
* :ref: `Date queries <datequery >` can now include times, so you can filter
14
14
your music down to the second. Thanks to :user: `discopatrick `. :bug: `2506 `
15
15
:bug: `2528 `
Original file line number Diff line number Diff line change @@ -138,16 +138,13 @@ Optional command flags:
138
138
searching for other candidates by using the ``--search-id SEARCH_ID `` option.
139
139
Multiple IDs can be specified by simply repeating the option several times.
140
140
141
- * You can supply ``--set `` options with `` field=value `` pairs to assign to
142
- those fields the specified values on import, in addition to such field/value
143
- pairs defined in the `` importer. set_fields `` dictionary in the configuration
144
- file. Make sure to use an option per field/value pair , like so::
141
+ * You can supply ``--set field=value `` to assign ` field ` to ` value ` on import.
142
+ These assignments will merge with (and possibly override) the
143
+ :ref: ` set_fields ` configuration dictionary. You can use the option multiple
144
+ times on the command line , like so::
145
145
146
146
beet import --set genre="Alternative Rock" --set mood="emotional"
147
147
148
- Note that values for the fields specified on the command-line override the
149
- ones defined for those fields in the configuration file.
150
-
151
148
.. _rarfile : https://pypi.python.org/pypi/rarfile/2.2
152
149
153
150
.. only :: html
Original file line number Diff line number Diff line change @@ -591,18 +591,15 @@ Default: ``no``.
591
591
set_fields
592
592
~~~~~~~~~~
593
593
594
- A dictionary of field/value pairs, each one used to set a field to the
595
- corresponding value during import.
596
-
597
- Example: ::
594
+ A dictionary indicating fields to set to values for newly imported music.
595
+ Here's an example::
598
596
599
597
set_fields:
600
598
genre: 'To Listen'
601
599
collection: 'Unordered'
602
600
603
- Note that field/value pairs supplied via ``--set `` options on the
604
- command-line are processed in addition to those specified here. Those values
605
- override the ones defined here in the case of fields with the same name.
601
+ Other field/value pairs supplied via the ``--set `` option on the command-line
602
+ override any settings here for fields with the same name.
606
603
607
604
Default: ``{} `` (empty).
608
605
You can’t perform that action at this time.
0 commit comments