mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
Merge pull request #3655 from aereaux/add_parentwork_date
Get the date of the parentwork, which may be different from the date of the child work.
This commit is contained in:
commit
32e54a29fa
3 changed files with 9 additions and 2 deletions
|
|
@ -131,6 +131,8 @@ class ParentWorkPlugin(BeetsPlugin):
|
||||||
if artist['type'] == 'composer':
|
if artist['type'] == 'composer':
|
||||||
parent_composer.append(artist['artist']['name'])
|
parent_composer.append(artist['artist']['name'])
|
||||||
parent_composer_sort.append(artist['artist']['sort-name'])
|
parent_composer_sort.append(artist['artist']['sort-name'])
|
||||||
|
if 'end' in artist.keys():
|
||||||
|
parentwork_info["parentwork_date"] = artist['end']
|
||||||
|
|
||||||
parentwork_info['parent_composer'] = u', '.join(parent_composer)
|
parentwork_info['parent_composer'] = u', '.join(parent_composer)
|
||||||
parentwork_info['parent_composer_sort'] = u', '.join(
|
parentwork_info['parent_composer_sort'] = u', '.join(
|
||||||
|
|
@ -207,4 +209,4 @@ add one at https://musicbrainz.org/recording/{}', item, item.mb_trackid)
|
||||||
item, fields=['parentwork', 'parentwork_disambig',
|
item, fields=['parentwork', 'parentwork_disambig',
|
||||||
'mb_parentworkid', 'parent_composer',
|
'mb_parentworkid', 'parent_composer',
|
||||||
'parent_composer_sort', 'work_date',
|
'parent_composer_sort', 'work_date',
|
||||||
'parentwork_workid_current'])
|
'parentwork_workid_current', 'parentwork_date'])
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,10 @@ New features:
|
||||||
* :doc:`/plugins/lyrics`: Improved searching Genius backend when artist
|
* :doc:`/plugins/lyrics`: Improved searching Genius backend when artist
|
||||||
contained special characters.
|
contained special characters.
|
||||||
:bug:`3634`
|
:bug:`3634`
|
||||||
|
* :doc:`/plugins/parentwork`: Also get the composition date of the parent work,
|
||||||
|
instead of just the child work.
|
||||||
|
Thanks to :user:`aereaux`.
|
||||||
|
:bug:`3650`
|
||||||
|
|
||||||
Fixes:
|
Fixes:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ At any later run of ``beet parentwork`` it will check if the tags
|
||||||
not the case, it means the work has changed and all the tags need to be
|
not the case, it means the work has changed and all the tags need to be
|
||||||
fetched again.
|
fetched again.
|
||||||
|
|
||||||
This plugin adds six tags:
|
This plugin adds seven tags:
|
||||||
|
|
||||||
- **parentwork**: The title of the parent work.
|
- **parentwork**: The title of the parent work.
|
||||||
- **mb_parentworkid**: The MusicBrainz id of the parent work.
|
- **mb_parentworkid**: The MusicBrainz id of the parent work.
|
||||||
|
|
@ -38,6 +38,7 @@ This plugin adds six tags:
|
||||||
- **parentwork_workid_current**: The MusicBrainz id of the work as it was when
|
- **parentwork_workid_current**: The MusicBrainz id of the work as it was when
|
||||||
the parentwork was retrieved. This tag exists only for internal bookkeeping,
|
the parentwork was retrieved. This tag exists only for internal bookkeeping,
|
||||||
to keep track of recordings whose works have changed.
|
to keep track of recordings whose works have changed.
|
||||||
|
- **parentwork_date**: The composition date of the parent work.
|
||||||
|
|
||||||
To use the ``parentwork`` plugin, enable it in your configuration (see
|
To use the ``parentwork`` plugin, enable it in your configuration (see
|
||||||
:ref:`using-plugins`).
|
:ref:`using-plugins`).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue