Author Topic: problem modifying the title display to show albumartist  (Read 1743 times)

stormwatch

  • Newbie
  • *
  • Posts: 16
    • View Profile
problem modifying the title display to show albumartist
« on: September 05, 2013, 10:21:11 »
I've modifed this message to display %A: the albumartist instead of artist

diff --git a/gmusicbrowser_layout.pm b/gmusicbrowser_layout.pm
index 96fd21e..44d338d 100644
--- a/gmusicbrowser_layout.pm
+++ b/gmusicbrowser_layout.pm
@@ -256,7 +256,7 @@ our %Widgets=
        Title_by =>
        {       class   => 'Layout::Label',
                parent  => 'Title',
-               markup  => ::__x(_"{song} by {artist}",song => "<b><big>%S</big></b>%V", artist => "<b>%a</b>"),
+               markup  => ::__x(_"{song} by {artist}",song => "<b><big>%S</big></b>%V", artist => "<b>%A</b>"),
        },
        Artist =>
        {       class   => 'Layout::Label',

And I remember seeing it worked before but it isn't working right now.

I must be confused or missing something because even after triying to bisect and checking out the first commit known to work, I cannot see the "by <albumartist>" string appended to the title


What I am seeing:

<title>

What I expect to see:

<title> by <albumartist>

Quentin Sculo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1082
    • View Profile
Re: problem modifying the title display to show albumartist
« Reply #1 on: September 28, 2013, 02:35:38 »
Sorry for not replying earlier.
You've modified the Title_by widget, which is rarely used in layouts, most often the layouts use the Title widget (just above in the file). So I guess you've changed the wrong widget.