File: added-attribute.patch

package info (click to toggle)
libaudio-mpd-common-perl 2.003-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 252 kB
  • sloc: perl: 438; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 1,041 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: mpd 0.24 added an "added" attribute
Origin: vendor
Bug: https://bugs.debian.org/1101587
Bug-Upstream: https://rt.cpan.org/Ticket/Display.html?id=163619
Forwarded: https://rt.cpan.org/Ticket/Display.html?id=163619
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2025-04-11

--- a/lib/Audio/MPD/Common/Item/Song.pm
+++ b/lib/Audio/MPD/Common/Item/Song.pm
@@ -50,6 +50,7 @@
         I => sub { $_[0]->musicbrainz_albumartistid },
         B => sub { $_[0]->musicbrainz_albumid },
         E => sub { $_[0]->musicbrainz_artistid },
+        o => sub { $_[0]->added },
     },
 };
 
@@ -92,6 +93,7 @@
 has musicbrainz_albumartistid  => ( rw, isa => Str );
 has musicbrainz_albumid        => ( rw, isa => Str );
 has musicbrainz_artistid       => ( rw, isa => Str );
+has added         => ( rw, isa => Str );
 
 # -- public methods
 
@@ -205,6 +207,10 @@
 
 Length of the song in seconds. (format code: %l)
 
+=head2 added
+
+Shows when song was added to the database. (format code: %o)
+
 =head1 METHODS
 
 =head2 as_string