|
0 |
Description: support more song tags and metadata
|
|
1 |
Newer mpd will send more details. A way to support arbitrary tags would
|
|
2 |
probably be useful...
|
|
3 |
Author: Florian Schlichting <fsfs@debian.org>
|
|
4 |
Bug-Upstream: https://github.com/jquelin/audio-mpd-common/issues/2
|
|
5 |
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919731
|
|
6 |
Forwarded: https://github.com/jquelin/audio-mpd-common/pull/4
|
|
7 |
|
|
8 |
--- a/lib/Audio/MPD/Common/Item/Song.pm
|
|
9 |
+++ b/lib/Audio/MPD/Common/Item/Song.pm
|
|
10 |
@@ -22,12 +22,17 @@
|
|
11 |
codes => {
|
|
12 |
A => sub { $_[0]->albumartist },
|
|
13 |
a => sub { $_[0]->artist },
|
|
14 |
+ b => sub { $_[0]->albumsort },
|
|
15 |
C => sub { $_[0]->composer },
|
|
16 |
+ c => sub { $_[0]->comment },
|
|
17 |
D => sub { $_[0]->disc },
|
|
18 |
d => sub { $_[0]->album },
|
|
19 |
+ e => sub { $_[0]->label },
|
|
20 |
+ F => sub { $_[0]->format },
|
|
21 |
f => sub { $_[0]->file },
|
|
22 |
g => sub { $_[0]->genre },
|
|
23 |
i => sub { $_[0]->id },
|
|
24 |
+ L => sub { $_[0]->duration },
|
|
25 |
l => sub { $_[0]->time },
|
|
26 |
M => sub { $_[0]->date },
|
|
27 |
m => sub { $_[0]->last_modified },
|
|
28 |
@@ -35,9 +40,12 @@
|
|
29 |
n => sub { $_[0]->track },
|
|
30 |
P => sub { $_[0]->performer },
|
|
31 |
p => sub { $_[0]->pos },
|
|
32 |
+ r => sub { $_[0]->range },
|
|
33 |
t => sub { $_[0]->title },
|
|
34 |
s => sub { $_[0]->artistsort },
|
|
35 |
S => sub { $_[0]->albumartistsort },
|
|
36 |
+ W => sub { $_[0]->musicbrainz_workid },
|
|
37 |
+ R => sub { $_[0]->musicbrainz_releasetrackid },
|
|
38 |
T => sub { $_[0]->musicbrainz_trackid },
|
|
39 |
I => sub { $_[0]->musicbrainz_albumartistid },
|
|
40 |
B => sub { $_[0]->musicbrainz_albumid },
|
|
41 |
@@ -57,21 +65,29 @@
|
|
42 |
has album => ( rw, isa => Str );
|
|
43 |
has albumartist => ( rw, isa => Str );
|
|
44 |
has artist => ( rw, isa => Str );
|
|
45 |
+has albumsort => ( rw, isa => Str );
|
|
46 |
has composer => ( rw, isa => Str );
|
|
47 |
+has comment => ( rw, isa => Str );
|
|
48 |
has date => ( rw, isa => Str );
|
|
49 |
has disc => ( rw, isa => Str );
|
|
50 |
has file => ( rw, isa => Str, required );
|
|
51 |
+has label => ( rw, isa => Str );
|
|
52 |
+has format => ( rw, isa => Str );
|
|
53 |
has genre => ( rw, isa => Str );
|
|
54 |
has last_modified => ( rw, isa => Str );
|
|
55 |
has id => ( rw, isa => Int );
|
|
56 |
has name => ( rw, isa => Str );
|
|
57 |
has pos => ( rw, isa => Int );
|
|
58 |
has performer => ( rw, isa => Str );
|
|
59 |
+has range => ( rw, isa => Str );
|
|
60 |
has title => ( rw, isa => Str );
|
|
61 |
has track => ( rw, isa => Str );
|
|
62 |
+has duration => ( rw, isa => Str );
|
|
63 |
has time => ( rw, isa => Int );
|
|
64 |
has artistsort => ( rw, isa => Str );
|
|
65 |
has albumartistsort => ( rw, isa => Str );
|
|
66 |
+has musicbrainz_workid => ( rw, isa => Str );
|
|
67 |
+has musicbrainz_releasetrackid => ( rw, isa => Str );
|
|
68 |
has musicbrainz_trackid => ( rw, isa => Str );
|
|
69 |
has musicbrainz_albumartistid => ( rw, isa => Str );
|
|
70 |
has musicbrainz_albumid => ( rw, isa => Str );
|